<?php
echo "HI " . $name;
$result = mysql_query("SE LECT * FROM album WHERE username='{$nam e}'");
while ($next_row = mysql_fetch_arr ay($result)) {
$album_name = $next_row['name'];
echo "<a href=\"main.php ?album=$album_n ame\"><font size=\"+1\"
color=\"#FFFFFF \">
$album_name
</font></a><br/>";
}
?>
This gives me a Warning that mysql_fetch_arr ay isn't getting a valid MySQL
resource, but it has the right value in $name and doesn't have an obvious
problem, any debugging insight?
Thanks,
RG
echo "HI " . $name;
$result = mysql_query("SE LECT * FROM album WHERE username='{$nam e}'");
while ($next_row = mysql_fetch_arr ay($result)) {
$album_name = $next_row['name'];
echo "<a href=\"main.php ?album=$album_n ame\"><font size=\"+1\"
color=\"#FFFFFF \">
$album_name
</font></a><br/>";
}
?>
This gives me a Warning that mysql_fetch_arr ay isn't getting a valid MySQL
resource, but it has the right value in $name and doesn't have an obvious
problem, any debugging insight?
Thanks,
RG
Comment