Heya, I seem to be having problems with the following section of my script. When I run the sql in PHPMyAdmin it finds the row correctly so that part of the code must be right. However the line with mysql_result doesn't work as I get the following error: This is my code for this part. 261 is the line that sets $cashReq. If you could spot the mistake that'd be great // Make sure payment_gross is correct $sql = "SELECT price FROM payments WHERE id = $invoice LIMIT 0,1"; $result = mysql_query ($sql , $conn); if ($result){ $cashReq = mysql_result ($result, 0); } PHP: Thanks, Hodge
Sorry I fell asleep and forgot to update this thread but I noticed that it was due to the fact that I hadn't uploaded the updated version of the config.php file... So stupid