logo-dw

Go Back   Dreamweaver Club Forums > Hand Coders Forum > PHP
Register FAQ Members List Search Today's Posts Mark Forums Read

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old 04-22-2012, 02:13 AM   #1
tony09uk
 
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:

article

the rows in it are:

article_id user_id title content date

The code ive used is:

if(!isset($_POST['submit'])){
$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
 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 10:18 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Copyright 2006 DreamweaverClub.com