PHP Web Host - Quality Web Hosting For All PHP Applications Just Great Software
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
Post new topic   Reply to topic
Author Message
jackel
Worker
Worker


Joined: Jan 15, 2009
Posts: 145
Location: Iowa, USA

PostPosted: Sat Mar 21, 2009 2:15 pm Reply with quote Back to top

Code:
 $result = $db->sql_query("SELECT modulename, auto_start, picture, picture_dir, defpicture, nopicture_name FROM ".$prefix."_internet_radio_settings", $sql );
  list($modulename, $auto_start, $picture, $picture_dir, $defpicture, $nopicture_name) = mysql_fetch_row ($result, $sql);


Whats wrong with this? can you help please

Thanks
View user's profile Send private message
duck
Involved
Involved


Joined: Jul 03, 2006
Posts: 267

PostPosted: Sat Mar 21, 2009 2:18 pm Reply with quote Back to top

remove the comma $sql from both lines

oh and turn Mysql_fetch_row to $db->sql_fetchrow
View user's profile Send private message
jackel
Worker
Worker


Joined: Jan 15, 2009
Posts: 145
Location: Iowa, USA

PostPosted: Sat Mar 21, 2009 2:22 pm Reply with quote Back to top

Parse error: syntax error, unexpected T_VARIABLE on line 36
Line 36

Code:

$result = $db->sql_query("SELECT radio_id, radio_name, radio_language FROM ".$prefix."_internet_radio ORDER BY radio_name ASC" $sql );
View user's profile Send private message
jackel
Worker
Worker


Joined: Jan 15, 2009
Posts: 145
Location: Iowa, USA

PostPosted: Sat Mar 21, 2009 2:41 pm Reply with quote Back to top

ok I added
Code:
$db->sql_fetchrow
but it still needed the comma
View user's profile Send private message
Palbin
Site Admin


Joined: Mar 30, 2006
Posts: 2456
Location: Pittsburgh, Pennsylvania

PostPosted: Sat Mar 21, 2009 4:28 pm Reply with quote Back to top

Read the sticky.
View user's profile Send private message
duck
Involved
Involved


Joined: Jul 03, 2006
Posts: 267

PostPosted: Sat Mar 21, 2009 4:48 pm Reply with quote Back to top

Shoudl look like this:

Code:
 $result = $db->sql_query("SELECT modulename, auto_start, picture, picture_dir, defpicture, nopicture_name FROM ".$prefix."_internet_radio_settings");
  list($modulename, $auto_start, $picture, $picture_dir, $defpicture, $nopicture_name) = $db->sql_fetchrow ($result);
View user's profile Send private message
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
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2011 by Raven

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::
:: fisubice Theme Modified by the RavenNuke™ Team ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum