Google

NukeCoder


View next topic
View previous topic
Post new topic   Reply to topic
Author Message
floppy




Joined: Nov 29, 2006
Posts: 85
Location: Jackson, Mississippi

PostPosted: Sat Dec 30, 2006 10:21 pm
Reply with quote

Is this the wrong syntax to do so?

Code:
$db->sql_query("RENAME TABLE {$prefix}_croster_ribbons_$ribtitle2 TO {$prefix}_croster_ribbons_$ribtitle") OR die("Could not rename table");


I will google some more resources later Crying or Very sad
 
View user's profile Send private message Visit poster's website MSN Messenger
gotcha
Site Admin
Site Admin



Joined: Oct 25, 2004
Posts: 921

PostPosted: Sat Dec 30, 2006 11:14 pm
Reply with quote

Try this instead...

Code:
$db->sql_query("RENAME TABLE ".$prefix."_croster_ribbons_$ribtitle2 TO ".$prefix."_croster_ribbons_$ribtitle") OR die("Could not rename table");
 
View user's profile Send private message Visit poster's website
floppy




Joined: Nov 29, 2006
Posts: 85
Location: Jackson, Mississippi

PostPosted: Sun Dec 31, 2006 2:45 pm
Reply with quote

well snap...

That worked. It amazes me sometimes how the fix is so simple. I am not sure I would of ever even tried that or why the other doesn't work.

Thanks,
gotcha
 
View user's profile Send private message Visit poster's website MSN Messenger
Display posts from previous:       
Post new topic   Reply to topic

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 cannot attach files in this forum
You cannot download files in this forum


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