Forums

PHP

This topic is locked

Record Store tutorial

Posted 21 Jun 2003 15:44:14
1
has voted
21 Jun 2003 15:44:14 Juan Cordoba posted:
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.: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']

Reply to this topic