Im not sure what im doing wrong, it keeps returning Select Failed! every time. Can you help me fix the problem thanks!
PHP Code:<?
mysql_connect("localhost","username","password")
or die("Unable to connect to SQL server");
mysql_select_db("jokes")
or die("Unable to select database");
$query = "SELECT * FROM jokes";
$joke = mysql_query($query) or die("Select Failed!");
?>
<?php echo $joke['JokeText'];?>




Reply With Quote