Quantcast
Channel: VBForums
Viewing all articles
Browse latest Browse all 42373

newest 5 tutorials

$
0
0
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

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";

?>

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.
Attached Images
 

Viewing all articles
Browse latest Browse all 42373

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>