MySQL problem
#6

Quote:
Originally Posted by Virtual1ty
Посмотреть сообщение
For starters the syntax is wrong, I mean, drop the ' around integer values, '' are used to enclose strings, just use %i, or %d. Then print the ID to see if there's anything wrong that might set the same values for every user.
Oh and, stop using static keyword for mysql queries, use new to declare a new variable.
No, the syntax is not wrong. To set values you must use '.
And I prefer using static when messing around with strings.
Reply


Messages In This Thread
MySQL problem - by FireCat - 28.07.2012, 15:56
Re: MySQL problem - by Sanady - 28.07.2012, 16:00
Re: MySQL problem - by FireCat - 28.07.2012, 16:01
Re: MySQL problem - by Sanady - 28.07.2012, 16:05
Re: MySQL problem - by Virtual1ty - 28.07.2012, 16:10
Re: MySQL problem - by FireCat - 28.07.2012, 16:13
Re: MySQL problem - by Virtual1ty - 28.07.2012, 16:14
Re: MySQL problem - by FireCat - 28.07.2012, 16:17
Re: MySQL problem - by Virtual1ty - 28.07.2012, 16:20

Forum Jump:


Users browsing this thread: 2 Guest(s)