Site Owners Forums - Webmaster Forums

Site Owners Forums - Webmaster Forums (http://siteownersforums.com/index.php)
-   PHP / mySQL (http://siteownersforums.com/forumdisplay.php?f=10)
-   -   How to execute an sql query? How to fetch its result ? (http://siteownersforums.com/showthread.php?t=149122)

Eastman 12-09-2014 02:01 AM

How to execute an sql query? How to fetch its result ?
 
How to execute an sql query? How to fetch its result ?

george.web13 12-10-2014 10:56 AM

example :
$q=mysql_query("SELECT id,username FROM users");
while ($res=mysql_fetch_array($q)){
echo $res['username']."
";
}

Umar Farooque k 02-07-2015 01:17 PM

You can use mysql_query function to execute mysql query.

kathyrose 03-05-2015 12:13 AM

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.