View Single Post
  #4 (permalink)  
Old 02-22-2008, 05:36 PM
Jordan's Avatar   
Jordan Jordan is offline
Administrator
 
Join Date: Nov 2005
Location: Hendersonville, NC
Age: 26
Posts: 5,980
Last Blog:
SAP, ERP and EDI
Rep Power: 20
Jordan has much to be proud ofJordan has much to be proud ofJordan has much to be proud ofJordan has much to be proud ofJordan has much to be proud ofJordan has much to be proud ofJordan has much to be proud ofJordan has much to be proud ofJordan has much to be proud of
Send a message via ICQ to Jordan Send a message via AIM to Jordan Send a message via MSN to Jordan
Default

With MySQL I generally leave out most of the ` symbols:

PHP Code:
$sql "SELECT * FROM articles WHERE ID= '" mysql_real_escape_string $_GET['ID'] ) . "'"
If that doesn't work do

PHP Code:
echo $sql
right after that line. Then copy/paste that info into MySQL directly. You will generally get a more descriptive error (you can use PHPMyAdmin or MySQL from the console for this).
__________________
CodeCall Blog | CodeCall Wiki | Shareware Site | Linux Forum | Write a Blog
Don't hesitate to ask any questions that you have! Check out our ASCII Calculator!
Reply With Quote