vBadvanced Forums  
Go Back   vBadvanced Forums > vBadvanced Products > vBadvanced CMPS > vBa CMPS v2.0 Support > "How Do I..." Questions

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 02-17-2007, 08:18 PM
Eple Eple is offline
Junior Member
 
Join Date: Feb 2007
Posts: 9
Default Using $_get variables

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?
Reply With Quote
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Additional CSS Variables. MjrGaelic "How Do I..." Questions 3 02-06-2007 06:43 PM
VB variables? interfx "How Do I..." Questions 5 11-12-2006 03:13 PM
Using variables from vb ? LoOnEyToOnZ "How Do I..." Questions 1 12-30-2005 04:10 PM
Passing variables? cookie "How Do I..." Questions 3 09-22-2005 11:51 AM
Passing $_GET variables 1.x style doesn't seem to work in 2.x CareCureJeff "How Do I..." Questions 9 06-22-2005 10:39 AM


All times are GMT -4. The time now is 09:00 PM.

Forums Powered by vBulletin, Copyright ©2000-2009, Jelsoft Enterprises Ltd.
Please note that vBadvanced is in no way affiliated with Jelsoft Enterprises Ltd, nor will Jelsoft be able to provide any support for our products.