Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> MySQL
Author Message
Bigboy177
Worker
Worker



Joined: Jul 07, 2004
Posts: 192

PostPosted: Sun Aug 08, 2004 6:23 am Reply with quote

I've got a table called _user_temp... And In it I've only got one Column, it's called tpid... I would like it to be just a temp table so I don't want any new records in it, just this one field...

Why isn't this queery working... Any suggestions might help...

Code:


$db->sql_query("update ".$prefix."_user_temp set tpid='29'");
 
View user's profile Send private message
Raven
Site Admin/Owner



Joined: Aug 27, 2002
Posts: 17088

PostPosted: Sun Aug 08, 2004 8:39 am Reply with quote

When you run the query in phpmyadmin's SQL window, what does phpMyAdmin tell you? That's the fastest way to find errors. Or, add this statement right after that one.
Code:
die('MySQL said: '.mysql_error());
That will print out an error, if there is one, and stop your script. On the surface it looks ok, but you may be trying to set a value that conflicts with the auto_increment value, assuming there is one.
 
View user's profile Send private message
Bigboy177







PostPosted: Sun Aug 08, 2004 8:51 am Reply with quote

OK... Thanks for help... I fixed it... And now it's working... But still I can't figure out why the variables aren't passed onto my function... Sad
I know you can't help... So I must find a way to figure it out my self... Thanks for all the patience and help, you gave me... Wink
You are THE BEST... !!!!!!!!!
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> MySQL

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©