| | |
Unexpected error that doesn't exist
Please support our PHP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Sep 2007
Posts: 2
Reputation:
Solved Threads: 0
Hi all, newbie here but I've got a question and HOPEFULLY someone can assist me here. I'm getting an error that says its on the LAST LINE of my code. Here's the error:
Now here's the final lines of the code where this error should be.
I put line 113 in bold so you all knew. It's hard to see since the only thing on the line is a "(". Seriously, there is no ";" in the area. What's the deal?
•
•
•
•
Parse error: syntax error, unexpected ';' in /home/editedreg.php on line 113
$answer = $tSQL->Query("SELECT * FROM `players` WHERE `username` = '" . $username . "' AND `password` = '" . $password . "';");
if (intval($answer[0]) > 0)
{
return true;
}
else
{
return false;
}
$tSQL->Disconnect();
unset($tSQL);
}
if ($qresult) Stop("You successfully got registered");
else echo Stop("Some mistake with writing to DB");
(
?>I put line 113 in bold so you all knew. It's hard to see since the only thing on the line is a "(". Seriously, there is no ";" in the area. What's the deal?
Looks to me like an extra end brace here, but it is difficult to say since you only posted a fragment of the code Side note: proper indentation of your code blocks would help you spot these things more easily.
PHP Syntax (Toggle Plain Text)
} $tSQL->Disconnect(); unset($tSQL); }
![]() |
Similar Threads
- Please Will Someone Help Me (Viruses, Spyware and other Nasties)
- Reply - new hijack this file - error came up (Viruses, Spyware and other Nasties)
- A agntsrvc.exe file error (Viruses, Spyware and other Nasties)
- An unexpected error has been detected by HotSpot Virtual Machine:? (Java)
- Missing bridge.dll error and automatic shutdown (Viruses, Spyware and other Nasties)
- Hotoffers and Error #317 (Viruses, Spyware and other Nasties)
- getline() error when cin is redirected (C++)
- HijackThis error? (Viruses, Spyware and other Nasties)
- Error: illegal target of jump or branch (JSP)
- Errors in My XP Error Log. (Windows NT / 2000 / XP)
Other Threads in the PHP Forum
- Previous Thread: CGI Script needed to collect data/comments
- Next Thread: download pdf file, convert to html, in PHP since working in Linux
Views: 1154 | Replies: 3
| Thread Tools | Search this Thread |
Tag cloud for PHP
.htaccess access ajax apache api array beginner binary broken cakephp checkbox class cms code cron curl database date datepart directory display download dynamic echo email error file files folder form forms function functions google href htaccess html image include insert integration ip java javascript joomla jquery limit link list login loop mail menu methods mlm mod_rewrite multiple mysql oop parse password paypal pdf php problem query radio random recursion regex remote script search select seo server sessions sms soap source space speed sql structure syntax system table tutorial update updates upload url validation validator variable video web webdesign xml youtube






