PDA

View Full Version : Using $_get variables


Eple
02-17-2007, 08:18 PM
I'm having some troubles using PHP $_get[] variables on a page. Let's use article as an example..

I've added article.php to vBadvanced and got the url index.php?page=Articles

The problem is that I need to pass on a variable with it so the script can pass it on to the SQL database.

I.eg like this index.php?page=Articles?articleID=200

Since I have this code:
$articleID = mysql_real_escape_string($_GET['articleID']);
$resource = mysql_query('SELECT * FROM articles where articleID = '.$articleID.'',$dbb) OR die(mysql_error());

Any ideas? :)

Eple
02-18-2007, 02:20 PM
Nevermind. Just delete or close the post.
I've sorted it out myself :)