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
ThePiston
Worker
Worker



Joined: Dec 22, 2004
Posts: 135

PostPosted: Sat Oct 08, 2005 1:17 am Reply with quote

I have manually added some entries into "editinfo" but when I click "save" the info gets altered. I'm guessing I have to keep the same sequence in this code
Code:
$db->sql_query("UPDATE ".$user_prefix."_users SET name='$
for everything to work out ok. Is this correct?
 
View user's profile Send private message
Raven
Site Admin/Owner



Joined: Aug 27, 2002
Posts: 17088

PostPosted: Sat Oct 08, 2005 8:01 am Reply with quote

No. There is no required order to the UPDATE statement. In other words, this all would save the data correctly.

$db->sql_query("UPDATE ".$user_prefix."_YOURTABLE SET col1='$data1', col2='$data2', col99='$data99'");

$db->sql_query("UPDATE ".$user_prefix."_YOURTABLE SET col2='$data2', col99='$data99', col1='$data1'");

$db->sql_query("UPDATE ".$user_prefix."_YOURTABLE SET col99='$data99', col2='$data2', col1='$data1'");
 
View user's profile Send private message
ThePiston







PostPosted: Sat Oct 08, 2005 9:22 am Reply with quote

What do I need to do to get rid of some of the "edituser" items such as ICQ, AIM, etc. I put // in front of all the lines. Should I delete them from "saveuser" function as well? Anything I'm forgetting?
 
ThePiston







PostPosted: Sat Oct 08, 2005 9:48 am Reply with quote

nm, got it... getting the hang of this stuff
 
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 ©