Sr. PHP Programmer Question: Download Questions PDF
How to execute an sql query? How to fetch its result?
Answer:
$my_qry = mysql_query("SELECT * FROM `users` WHERE `u_id`='1'; ");
$result = mysql_fetch_array($my_qry);
echo $result['First_name'];
$result = mysql_fetch_array($my_qry);
echo $result['First_name'];
Download Senior PHP Programmer Interview Questions And Answers
PDF
Previous Question | Next Question |
Tell me how to declare an array in php? | How to set a page as a home page in a php based site? |