The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
WHERE `id` = 'a-number-here' problem
Hi, I have a problem:
PHP Code:
PHP Code:
You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '?id? = '16'' at line 1 What am i doing wrong? |
#2
|
||||
|
||||
What are those funny characters around page and id, try removing them.
|
#3
|
|||
|
|||
nope same thing. Ive had this problem before. It only occurs when the value contains numbers. Am I the only one with this problem? :S
|
#4
|
|||
|
|||
try removing the space id='$id'
|
#5
|
|||
|
|||
You somehow managed to use front ticks. Here's how I'd rewrite it (fix + my style):
$sql = 'SELECT * FROM `page` WHERE `id` = "' . $id . '"'; |
#6
|
|||
|
|||
very very strange....i changed:
PHP Code:
PHP Code:
Thanks for all the help guys! |
#7
|
||||
|
||||
$_POST is from forms where the method is set to post. $_GET is from the query string (showthread.php?t=5), and $_REQUEST combines the two, as well as a few others.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|