I´m quite a newbie (to the forum and programming), i would need some help if possible to the following.
I wrote this VERY simple .php to display some text.
<?php
mysql_connect("localhost", "root", "root") or die(mysql_error());
mysql_select_db("jacket") or die(mysql_error());
$result = mysql_query("SELECT * FROM quote
WHERE id='1'") or die(mysql_error());
$row = mysql_fetch_array( $result );
echo $row['frase'];
?>
I would like if you could give me some guidance with the following:
The WHERE id= should a ramdom id selected from the ones available in the mysql table.
Can somebody guide me in right direction?
Thanks in advice!
Juan


Sign In
Create Account

Back to top









