LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
LinkBack Search this Thread
Old 10-17-2004, 04:43 AM   #1
NeoSephiroth
LQ Newbie
 
Registered: Oct 2004
Location: Tokyo, Japan
Distribution: Red Hat 9, SuSE 9.1, Slackware 10
Posts: 4

Rep: Reputation: 0
PHP Programming Help


i keep getting this error

Quote:
Parse error: parse error, unexpected ',' in c:\program files\easyphp1-7\www\phpbb2\admin\admin_users.php on line 779
heres the line

Code:
	SET " . $username_sql . $passwd_sql . "user_email = '" . str_replace("\'", "''", $email) . "', user_icq = '" . str_replace("\'", "''", $icq) . "', user_website = '" . str_replace("\'", "''", $website) . "', user_occ = '" . str_replace("\'", "''", $occupation) . "', user_from = '" . str_replace("\'", "''", $location) . "', user_interests = '" . str_replace("\'", "''", $interests) . "', user_sig = '" . str_replace("\'", "''", $signature) . "', user_viewemail = $viewemail, user_aim = '" . str_replace("\'", "''", $aim) . "', user_yim = '" . str_replace("\'", "''", $yim) . "', user_msnm = '" . str_replace("\'", "''", $msn) . "', user_attachsig = $attachsig, user_sig_bbcode_uid = '$signature_bbcode_uid', user_allowsmile = $allowsmilies, user_allowhtml = $allowhtml, user_allowavatar = $user_allowavatar, user_allowbbcode = $allowbbcode, user_allow_viewonline = $allowviewonline, user_notify = $notifyreply, user_allow_pm = $user_allowpm, user_notify_pm = $notifypm, user_popup_pm = $popuppm, user_lang = '" . str_replace("\'", "''", $user_lang) . "', user_style = $user_style, user_timezone = $user_timezone, user_dateformat = '" . str_replace("\'", "''", $user_dateformat) . "', user_active = $user_status, user_rank = $user_rank",user_in_rpg = '$in_rpg', user_rpgname = '" . str_replace("\'", "''", $rpgname) . "', user_gender = '" . str_replace("\'", "''", $gender) . "', user_race = '" . str_replace("\'", "''", $race) . "',  user_job = '" . str_replace("\'", "''", $job) . "',  user_element = '" . str_replace("\'", "''", $element) . "',  user_alignment = '" . str_replace("\'", "''", $alignment) . "', user_exp = '$exp', user_hp = '$hp', user_max_hp = '$max_hp', user_mp = '$mp', user_max_mp = '$max_mp', user_pp = '$pp', user_max_pp = '$max_pp', user_lvl = '$lvl', user_atk = '$atk', user_def = '$def', user_mgatk = '$mgatk', user_mgdef = '$mgdef', user_rpg_avatar = '" . str_replace("\'", "''", $rpg_avatar) . "', user_rpg_desc = '" . str_replace("\'", "''", $rpg_desc) . "', user_max_items = '$max_items', user_lchar = '" . str_replace("\'", "''", $lchar) . "', user_rchar = '" . str_replace("\'", "''", $rchar) . "', user_bgmusic = '$bgmusic', user_limit = '$limit', user_special_move = '" . str_replace("\'", "''", $special_move) . "', user_bwins = '$bwins', user_bloses = '$bloses' . $avatar_sql . "
 
Old 10-17-2004, 06:49 AM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 64
Try removing the " after $user_rank

You'll find it much easier to debug if you split long statements like that over multiple lines.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Starting php programming jagman Programming 8 09-02-2005 04:27 AM
programming PHP JROCK1980 Programming 2 04-15-2004 06:02 AM
programming php in linux niehls Programming 13 07-31-2003 03:07 PM
PHP programming!!!! InSane103 Programming 6 07-12-2003 01:25 PM
PHP programming on X cathodion Linux - Software 6 05-17-2002 03:00 AM


All times are GMT -5. The time now is 05:26 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration