Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> General/Other Stuff
Author Message
hicuxunicorniobestbuildpc
The Mouse Is Extension Of Arm



Joined: Aug 13, 2009
Posts: 1122

PostPosted: Sat Sep 28, 2013 4:16 am Reply with quote

Hi Guys

I was trying to convert this line to single quotes but I get an error.

Original

Code:
$result = $db->sql_query("SELECT * FROM ".$prefix."_bbprivmsgs ORDER BY privmsgs_id DESC LIMIT $eu,$perpage");


My Convertion.

Code:
$result = $db->sql_query('SELECT * FROM `' . $prefix . '_bbprivmsgs` ORDER BY `privmsgs_id` DESC LIMIT ' . $eu . ',' . $perpage . '');


I guess I am missing something in the last code but I am very sure you know it better. Thanks in advance.

Question
 
View user's profile Send private message
hicuxunicorniobestbuildpc







PostPosted: Sat Sep 28, 2013 4:25 am Reply with quote

I solved it myself, thanks anyway

Code:
$result = $db->sql_query('SELECT * FROM `' . $prefix . '_bbprivmsgs` ORDER BY `privmsgs_id` DESC LIMIT ' . $eu . ',' . $perpage . '');
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> General/Other Stuff

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 ©