ok so what i want this to do is to get the gallery name, then place it in a hyperlink, with the href including the gallery name so on the page im re-directing to i can use $_GET and get some information without a session etc. But there is nothing displayed its just a blank screen!
and here is the code:
<?php
SESSION_start();
$username = $_SESSION['username'];
include("dbcon.php");
dbcon();
$result = mysql_query("SELECT * FROM gallery
WHERE username='$username' AND name='yes'") or die(mysql_error());
while($row = mysql_fetch_array( $result )) {
echo '<a href="upload.php?gall=';
echo '$row[gallery]">';
echo '$row[gallery]</a>';
}
?>
any help will be much appreciated,
many thanks,
jakx12