Mysql Error :b PHP /
#1

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'].'); 
Reply
#2

Hmm, I thought I was visiting SA:MP related forum
Reply
#3

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.
Reply
#4

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
Reply
#5

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

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.
Reply
#7

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.
Reply
#8



That should have been a hint, surely?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)