Hi I have the fowllowing PHP & mysql code.
<?php
session_start();
include("loginscript.php");
if ($pointcheck=="advert")
{
$getpoints=mysql_query ("select points from outwarinfo where username=\"$sessionusername\" and password=\"$sessionpassword\" ");
while ( $fetchpoints=mysql_fetch_array($getpoints) )
{
echo("".$fetchpoints["points"]);
$getpoints=$fetchpoints["points"];
}
$pointsearned="1";
$pointadd=$getpoints+$pointsearned;
$insertpoints="update outwarinfo set points=\"$pointadd\" where username=\"$sessionusername\" and password=\"$sessionpassword\" ";
$insertpointsnow=mysql_query($insertpoints, $conn);
}
?>
It is relativly simple but at line 18 it says I have a problem. I know I do but I dont know how to solve it any help?
Thanks, Nixon