Forum Moderators: coopster

Message Too Old, No Replies

Mdb code - mysql code

         

adamnichols45

11:43 am on Apr 7, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Could some body be so kind to convert the following code so that it works with mysql

<?php

$sql="SELECT * FROM Admin";
$rs=odbc_exec($conn,$sql);
if(!$rs)
{
exit("Could not retrieve script settings.");
}
odbc_fetch_row($rs, 0);

?>

I have tried but keep getting errors

coopster

12:43 pm on Apr 7, 2006 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Our PHP Forum Library [webmasterworld.com] has a number of topics that are good reading, one of which is a Basics of extracting data from MySQL [webmasterworld.com] that might help.