SA-MP Forums Archive
Mysql Error :b PHP / - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Other (https://sampforum.blast.hk/forumdisplay.php?fid=7)
+--- Forum: Everything and Nothing (https://sampforum.blast.hk/forumdisplay.php?fid=23)
+--- Thread: Mysql Error :b PHP / (/showthread.php?tid=247043)



Mysql Error :b PHP / - Xivop. - 07.04.2011

Hello, i have an PHP Error with a Mysql Syntax, i hope you can help me (:

The Error was :

PHP код:
Parse errorsyntax errorunexpected T_STRING in /var/www/vhosts/gtarealworld.com/subdomains/cp/httpdocs/ueberweisen.php on line 204 
Here the Line 204 :

PHP код:
$sql "INSERT INTO players (`buchung1`) VALUES ("Ьberweisung $"'.$_POST['betrag'].'" an "'.$_POST['ankommen'].'); 



Re: Mysql Error :b PHP / - Sergei - 07.04.2011

Hmm, I thought I was visiting SA:MP related forum


Re: Mysql Error :b PHP / - Mrkrabz - 07.04.2011

Last time i had a T_STRING Error it was because I forgot or misplaced a " somewhere. Hence some text going red/blue


@
Quote:
Originally Posted by Sergei
Посмотреть сообщение
Hmm, I thought I was visiting SA:MP related forum
This is Everything and nothing.


Re: Mysql Error :b PHP / - Sergei - 07.04.2011

Quote:
Originally Posted by Mrkrabz
Посмотреть сообщение
This is Everything and nothing.
You have 47867986789 webmaster forums, you have 457568678989 forums dedicated to PHP and you have 36475867867 forums dedicated to MySQL. This is definitely not a good excuse.

And since you support him. Do you know what will happen when he will have another problem? He will open another topic, and another and another until someone will tell him this is SA:MP forum.

If you don't believe that is going to happen ... there's already a live proof!
https://sampforum.blast.hk/showthread.php?tid=190812


Re: Mysql Error :b PHP / - XFlawless - 07.04.2011

This is San Andreas Multiplayer related forums, and this is not a php help forum. Try this .


Re: Mysql Error :b PHP / - mamorunl - 07.04.2011

Quote:
Originally Posted by Xivop.
Посмотреть сообщение
Hello, i have an PHP Error with a Mysql Syntax, i hope you can help me (:

The Error was :

PHP код:
Parse errorsyntax errorunexpected T_STRING in /var/www/vhosts/gtarealworld.com/subdomains/cp/httpdocs/ueberweisen.php on line 204 
Here the Line 204 :

PHP код:
$sql "INSERT INTO players (`buchung1`) VALUES ("Ьberweisung $"'.$_POST['betrag'].'" an "'.$_POST['ankommen'].'); 
If you check the second (your code) then you should already see your fault:

VALUES ("

But you are opening your SQL string with a double quote as well.


Re: Mysql Error :b PHP / - Mrkrabz - 07.04.2011

Quote:
Originally Posted by mamorunl
Посмотреть сообщение
If you check the second (your code) then you should already see your fault:

VALUES ("

But you are opening your SQL string with a double quote as well.
Ah yeah, I only had a quick check of it, run through and make sure you close them all.


Re: Mysql Error :b PHP / - Westie - 07.04.2011



That should have been a hint, surely?