che_anj
08-29-2007, 10:30 AM
Hello,
anyone has an example of mysql query using OOP?
example..
$query="select * from users where user_id='$userid'";
$result=mysql_query($query);
$row=mysql_fetch_array($result);
echo $row[name];
how to convert that into oop approach?
thanks...
anyone has an example of mysql query using OOP?
example..
$query="select * from users where user_id='$userid'";
$result=mysql_query($query);
$row=mysql_fetch_array($result);
echo $row[name];
how to convert that into oop approach?
thanks...