View Single Post
Old 04-22-2012, 02:13 AM   #1
Join Date: Oct 2010
Posts: 340
Default from mysql table

I have a mysql table which I am trying to pull results from. The idea is the user can select an article from another page and be redirected to a modify page. The table is:


the rows in it are:

article_id user_id title content date

The code ive used is:

$article = "SELECT * FROM article WHERE article_id = $_GET[id]";
$result = mysql_query($article);
$news = mysql_fetch_array($result);

I can see the problem is with my sql command, but I cant work out where. I have used var_dump() which has returned NULL
tony09uk is offline   Reply With Quote