Current location: Hot Scripts Forums » Programming Languages » PHP » run 2 queries at the same time


run 2 queries at the same time

Reply
  #1 (permalink)  
Old 07-13-03, 11:55 PM
superman's Avatar
superman superman is offline
Newbie Coder
 
Join Date: Jun 2003
Posts: 59
Thanks: 0
Thanked 0 Times in 0 Posts
run 2 queries at the same time

thanx a lot, i've solved the problem.

can php run two queries at the same time?
for example, i insert the record to the table B, then delete from the table A.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #2 (permalink)  
Old 07-14-03, 09:17 PM
SleeperZ SleeperZ is offline
Newbie Coder
 
Join Date: Jun 2003
Posts: 65
Thanks: 0
Thanked 0 Times in 0 Posts
why don't you just run 2 queries?

The time difference between Query 1 & Query 2 is a fraction of a second... (depending on size of query of course)
__________________
***Expect the Unexpected***
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #3 (permalink)  
Old 07-14-03, 11:54 PM
ridwank's Avatar
ridwank ridwank is offline
Newbie Coder
 
Join Date: Jun 2003
Location: Indonesia
Posts: 47
Thanks: 0
Thanked 0 Times in 0 Posts
offcourse

I think it's about MySQL query, is'n it ?

Yes right, more than just one,two, or more mysql query could be execute in just one single webpage.
... event query in the same table

for ex :
mysql_query("INSERT INTO table1 (name,email) VALUES ('ridwank','my@mail.com')");

mysql_query("INSERT INTO table1 (name,email) VALUES ('jerry','jerry@mail.com')");

mysql_query("UPDATE table1 SET email='your@mail.com' WHERE name='ridwank'");

mysql_query("DELETE FROM table1 WHERE name='jerry'");
__________________
-=ridwank=-

<b><a style='text-decoration:none' href="http://www.ridwank.com">CLICK : ridwank.com : PHP SCRIPT CENTER</a></b>

Last edited by ridwank; 07-15-03 at 12:00 AM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #4 (permalink)  
Old 07-15-03, 02:56 AM
superman's Avatar
superman superman is offline
Newbie Coder
 
Join Date: Jun 2003
Posts: 59
Thanks: 0
Thanked 0 Times in 0 Posts
thanx a lot
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
Reply

Bookmarks


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

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
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Is Experince by time ? NeverMind Polls 15 06-26-10 01:38 AM
time Alii Script Requests 2 03-20-04 12:31 PM
TIME LIMITED SPECIAL OFFER: 50gb b/w only $20/£12 per month in October retroweb General Advertisements 8 10-26-03 09:04 PM
I am not getting time even i set date propery to date/time skchakri ASP 3 09-30-03 05:47 PM
How many mySQL queries is too much? extremesportsonly PHP 40 07-03-03 07:55 AM


All times are GMT -5. The time now is 12:24 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.