PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
<?php
if ($_SESSION['loggedin']) {
$dbh=mysql_connect ("localhost", "xx", "xx") or die ('I cannot connect to the database because: ' . mysql_error());
mysql_select_db ("xx");
$sql="SELECT * FROM `accounts` WHERE points > 1 ORDER BY RAND() LIMIT 1";
$result = mysql_query($sql);
$row = mysql_fetch_array($result);
$selaccount = $row["account_id"];
?>
I'm not seeing anything wrong... any ideas?
Last edited by Citizen on Tue Mar 21, 2006 8:41 pm, edited 1 time in total.