Click to See Complete Forum and Search --> : mysqli_result


robmann
12-20-2005, 04:26 PM
how do I change this code

$admin=mysql_result($admin,0);

to use the mysqli, does not work if I

$admin=mysqli_result($admin,0);

I get the following error

undefined function mysqli_result()

rincewind456
12-20-2005, 04:38 PM
That's because there is not a mysqli_result() function!

robmann
12-20-2005, 04:46 PM
I understand that but how do I change it to work with mysqli?

thorpe
12-20-2005, 05:01 PM
there isn't really an equivelent. your better of using something like the fetch_assoc (http://au3.php.net/manual/en/function.mysqli-fetch-assoc.php)() method anyways.

robmann
12-21-2005, 06:13 PM
thanks