PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
Moderator: General Moderators
Jay87
Forum Commoner
Posts: 61 Joined: Thu Jan 07, 2010 5:22 am
Post
by Jay87 » Mon Mar 08, 2010 6:44 am
I get this error:
PHP Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /var/www/helpdesk-dev/edit_priority.php on line 11
on this line:
Code: Select all
If ($_POST) {mssql_query("UPDATE faultlog SET enduser='" . $_POST['user'] . "', description='" . $_POST['desc'] "', priority='" . $_POST['pri'] . "', chargable='" . $_POST['charge'] . "' WHERE faultlog.id_prefix='" . $_GET['pfx'] . "' AND faultlog.id=" . $_GET['id'],$db)};
I can't see the syntax error
Help?
requinix
Spammer :|
Posts: 6617 Joined: Wed Oct 15, 2008 2:35 am
Location: WA, USA
Post
by requinix » Mon Mar 08, 2010 6:50 am
Jay87 wrote: I can't see the syntax error
Look harder: you're missing a .
Jay87
Forum Commoner
Posts: 61 Joined: Thu Jan 07, 2010 5:22 am
Post
by Jay87 » Mon Mar 08, 2010 6:53 am
can you tell me where please?
i've been staring at this code all morning and its making me
Jay87
Forum Commoner
Posts: 61 Joined: Thu Jan 07, 2010 5:22 am
Post
by Jay87 » Mon Mar 08, 2010 6:57 am
Oh ok think i spotted it:
Code: Select all
If ($_POST) {mssql_query("UPDATE faultlog SET enduser='" . $_POST['user'] . "', description='" . $_POST['desc'] . "', priority='" . $_POST['pri'] . "', chargable='" . $_POST['charge'] . "' WHERE faultlog.id_prefix='" . $_GET['pfx'] . "' AND faultlog.id=" . $_GET['id'],$db)};
but now i get: syntax error, unexpected '}' in /var/www/helpdesk-dev/edit_priority.php on line 11
should the } not be after the database reference?