To register for an Internet.com membership to receive newsletters and white papers, use the Register button ABOVE.
To participate in the message forums BELOW, click here
PHPBuilder.com  
 

 

Go Back   PHPBuilder.com > Tools > Dreamweaver

Dreamweaver In need of help with Dreamweaver?

Reply
 
Thread Tools Rate Thread Display Modes
Old 06-21-2003, 10:57 AM   #1
sxrxnrr
Junior Member
 
Join Date: Jun 2003
Location: Colombia
Posts: 2
Record Store tutorial

I'm doing the Record Store tutorial found at the Macromedia web site but I'm having some trouble with the $HTTP_GET_VARS statement.
I'm using PHP 4.2.3


I've made a link to a PHP page like this: info.php?AlbumID=<?php echo $row_catalog['AlbumID']?>;

with 'AlbumID' coming from a recordset.
When I pass mouse pointer on the link, in the explorer status bar i can see the correct link (i.e.:http://localhost/RecordStorePHPStart/info.php?AlbumID=6) but when I try to acces it always sends me to the default value page.

In info.php page i've a recordset with SQL code:

SELECT *
FROM album, artist
WHERE album.ArtistID = artist.ArtistID AND AlbumID=colname

where colname is a variable defined with the following statement:

Name: colname
Default: 1
Runtime: $HTTP_GET_VARS['AlbumID']
sxrxnrr is offline   Reply With Quote
Old 06-27-2003, 02:48 PM   #2
Muntjewerf
Member
 
Join Date: Jan 2003
Location: Netherlands
Posts: 33
Eyz,
$HTTP_GET_VARS will not work unless you have register_globals set to ON in your php.ini (not recommended though). Since PHP version 4.1.0 $_GET was introduced, so try to use $_GET instead of $HTTP_GET_VARS.
__________________
JuRe
Muntjewerf is offline   Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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 Off
HTML code is Off
Forum Jump


All times are GMT -4. The time now is 09:29 AM.






Acceptable Use Policy

internet.comMediabistrojusttechjobs.comGraphics.com

WebMediaBrands Corporate Info


Advertise | Newsletters | Feedback | Submit News

Legal Notices | Licensing | Permissions | Privacy Policy


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.