Jump to content

go2go

New Members
  • Posts

    2
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

go2go's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Thanks for your guide. I created a file called test.php as below: [code] <? // file test.php $db=mysql_connect('localhost','user','pass'); mysql_select_db('database',$db); $sql = "SELECT * FROM Table_NAME order by round() limit 5"; $result=mysql_query($sql)or die("query round problam"); ?> [/code] The code seems to be working. BUT there was no display of records!! I need to incorporate a template to display the 5 random records. Any idea, please.
  2. Can someone please help me creating a php file for the following codes: $sql = 'SELECT * FROM library ORDER BY RAND() limit 5;'; where Database is: localhost Database name is: lib user: guest2 pass: guest2 Thanks
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.