hey guys just wondering if you can help me once again please?
i'm trying to display my 5 latest tutorials this is the code i use
it's not showing any errors and isn't showing any of the tutorials either
i have attached an image of my database to see if any of you can help me get the above code to work please.
any help is appreciated thanks for taken the time to read my post.
i'm trying to display my 5 latest tutorials this is the code i use
PHP Code:
<?php
require ("scripts/connect.php");
$query = mysql_query("SELECT * FROM tutorials WHERE id='$id And title='$title' ORDER BY id DESC LIMIT 5");
$numrows = mysql_num_rows($query);
if ($numrows > 0){
while($row = mysql_fetch_assoc($query)){
$id = $row['id'[;
$title = $row['title'];
}
}
else
echo "NO tutorials were found";
?>
i have attached an image of my database to see if any of you can help me get the above code to work please.
any help is appreciated thanks for taken the time to read my post.