Title should be 'PHP not working in Opera'
Hey guys, I have some code which validates fine with the w3c validator, but still refuses to work in opera...
Wondered if anyone could maybe tell wny this code works in every browser but opera? I'm stumped.
<?php
if($_GET['act'] == "generate_quotes") {
$con = mysql_connect("*", "*", "*");
if (!$con)
{
die('Could not connect: ' . mysql_error());
}
mysql_select_db("quote", $con);
$result = mysql_query( ' SELECT * FROM `quote` ORDER BY RAND() LIMIT 0,1 ' );
while($row = mysql_fetch_array($result))
{
echo '' . $row['q_quote'] . '';
}
mysql_close($con);
} else {
echo "<img src='img/vpbgt.png' alt='hello'>";
}
?>
And the link that's meant to change the text:
<p id="Generate">
<a href="index.php?act=generate_quotes" class="main_control">Generate</a></p>
At first I thought it may have been a cache problem...but apparently not. Anyone got any suggestions?