I just started to work on informix.( I have been using mysql all my life)
how i substitute mysql_fetch_assoc for informix.
Lets say I want to display one item at a time.normally in mysql i would run a while loop like this:
while($row=mysql_fetch_assoc($sql))
{
echo $row['name'];
echo $row['number'];
}
How do i do that for informix?
$sql="select * employee";
$result=$dbh->dbRequest("$sql")
I would suggest using PDO with the informix driver. The manual has plenty of examples of executing and returning data from queries using PDO.
PDO Informix driver – http://php.net/manual/en/ref.pdo-informix.php
PDO prepare – http://www.php.net/manual/en/pdo.prepare.php