Php browser issue
Posted: Wed Aug 04, 2010 3:19 am
Hey, recently written a little piece of code to generate pieces of text with the click of a link, but for some reason, I doesn't seem to be working in Opera.
Any of you guys had this problem? Or know know how to go about fixing this. I origionaly thought it was a chache issue, but doesn't seem to be the case. Error reporting also shows nothing. So I'm a little stumped.
thanks for any advice.
Thanks for any help.
Any of you guys had this problem? Or know know how to go about fixing this. I origionaly thought it was a chache issue, but doesn't seem to be the case. Error reporting also shows nothing. So I'm a little stumped.
thanks for any advice.
Code: Select all
<?php
if($_GET['act'] == "generate_quotes") {
$db = mysql_connect("*", "*", "*") or die ("Unable to connect to database.");
mysql_select_db("quote") or die ("Unable to select database.");
$result = mysql_query( " SELECT * FROM `quote` ORDER BY RAND() LIMIT 0,1 " );
$fetch = mysql_fetch_array($result);
echo "<blockquote>".$fetch['q_quote'];
mysql_close($db);
echo "</blockquote>";
} else {
echo "<img src=\"1.png\">";
}
?>
<a href='gengen.php?act=generate_quotes'>Generate</a>
Thanks for any help.