![]() |
How to execute an sql query? How to fetch its result ?
How to execute an sql query? How to fetch its result ?
|
example :
$q=mysql_query("SELECT id,username FROM users"); while ($res=mysql_fetch_array($q)){ echo $res['username']." "; } |
You can use mysql_query function to execute mysql query.
|
Learn oracle or mysql for database management and making quarries.
|
All times are GMT -7. The time now is 05:32 AM. |
Powered by vBulletin Copyright © 2020 vBulletin Solutions, Inc.