Go Back   Site Owners Forums - Webmaster Forums > Web Programming > Programming General > PHP / mySQL

Notices


Reply
 
Thread Tools Rate Thread Display Modes
Old 12-09-2014, 02:01 AM   #1
Eastman
Registered User
 
Join Date: Oct 2014
Location: Ludhiana
Posts: 11
How to execute an sql query? How to fetch its result ?

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

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.



To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.



To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
Eastman is offline   Reply With Quote

Old 12-10-2014, 10:56 AM   #2
george.web13
Registered User
 
Join Date: Jul 2014
Location: Athens, Greece
Posts: 462
example :
$q=mysql_query("SELECT id,username FROM users");
while ($res=mysql_fetch_array($q)){
echo $res['username']."<br/>";
}
__________________

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
george.web13 is offline   Reply With Quote
Old 02-07-2015, 01:17 PM   #3
Umar Farooque k
Registered User
 
Join Date: Feb 2015
Posts: 29
You can use mysql_query function to execute mysql query.
__________________

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.



To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
Umar Farooque k is offline   Reply With Quote
Old 03-05-2015, 12:13 AM   #4
kathyrose
Registered User
 
Join Date: Feb 2015
Posts: 126
Learn oracle or mysql for database management and making quarries.
__________________

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
kathyrose is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to Fix SQL Injection and Change Result internetwork PHP / mySQL 0 11-02-2013 07:28 PM
How to prevent SQL injection in PHP? Jack Hard PHP / mySQL 0 05-06-2013 04:46 AM
Windows Hosting on IIS 8 Server with Free SQL 2012 Database thewebhosting Web Promotion 1 04-04-2013 08:53 AM
SQL Server and PHP williamcastro22 PHP / mySQL 16 06-04-2012 02:14 AM
Why do I get two different result sets? bobo.cx Google 0 02-08-2012 07:13 AM


All times are GMT -7. The time now is 03:57 AM.


Powered by vBulletin Copyright © 2020 vBulletin Solutions, Inc.