Hi guys, been trying to get this to work:
$checkwishlist = mysqli_query($link, "SELECT moviename FROM movies WHERE wishlist='1' AND userid='$userid'");
$result = mysqli_num_rows($checkwishlist);
if (!$result)
{
$wishlist = '0';
}
else
{
$wishlist = '1';
$wishlist = mysqli_query($link, "SELECT movies.moviename, genres.genre_abbreviation FROM movies INNER JOIN genres ON movies.genreid=genres.id AND movies.wishlist=1 AND movies.userid='$userid'");
while ($row = mysqli_fetch_assoc($wishlist)) {
NO IDEA HOW TO HANDLE THIS PART
}
then in my display .php page I have:
if ($wishlist == '1')
{
echo 'test';
}
that part works fine and the code above it to handle $wishlist works great too. ‘test’ obviously just there to make sure it works. but I want to display movies that are tagged ‘1’ in the wishlist column like so:
movie genre
movie genre
movie genre
Anyone have any good tips on how to learn arrays for this kind of stuff? This is where I always get stuck: displaying my information/stats etc. and it’s becoming very frustrating.