mrbean Posted June 29, 2010 Share Posted June 29, 2010 Parse error: syntax error, unexpected $end in /home/pjzlbina/domains/grandcriminals.nl/public_html/bonus.php on line 96 <?php include("_include-jail.php"); if(! check_login()) { header('Location: login.php'); exit; } ?> <html> <head> <title>Grandcriminals</title> <body style="background: #000000; margin: 0px;"> <link rel="stylesheet" type="text/css" href="css-v1.css"> </head> <table width=100%> <tr><td class="subTitle"><b>Random cadeau</b></td></tr> <?php $data2 = mysql_query("SELECT *,UNIX_TIMESTAMP(`misdaad`) AS `misdaad`,0 FROM `[users]` WHERE `login`='{$_SESSION['login']}'"); $data1 = mysql_fetch_object($data2); $kut = mysql_query("SELECT * FROM `[users]` WHERE `login`='$data->login'"); while ($sql = mysql_fetch_assoc($kut)) { if($data1->cadeau + 1800 > time()){ print '<tr><td class=\'mainTxt\' align=\'center\'>Je kan maar om de 30 minuten een random cadeau krijgen.</td></tr>'; } else{ if(isset($_POST['submit'])){ $rand = rand(1,2); if($getal ==1){ mysql_query("UPDATE `[users]` SET `rankvord`=`rankvord`+'25',`cadeau`=NOW() WHERE `login`='$data->login'"); print "Het is gelukt! je hebt 5% rank vordering gekregen!"; exit; } if($getal ==2){ mysql_query("UPDATE `[users]` SET `credits`=`credits`+'5',`cadeau`=NOW() WHERE `login`='$data->login'"); print "Het is geluk! je hebt 5 credits gekregen!"; exit; } if($getal ==3){ mysql_query("UPDATE `[users]` SET `rankvord`=`rankvord`+'$rankvord',`cadeau`=NOW() WHERE `login`='$data->login'"); print "Het is gelukt!"; exit; } if($getal ==4){ mysql_query("UPDATE `[users]` SET `rankvord`=`rankvord`+'$rankvord',`cadeau`=NOW() WHERE `login`='$data->login'"); print "Het is gelukt!"; exit; } if($getal ==5){ mysql_query("UPDATE `[users]` SET `rankvord`=`rankvord`+'$rankvord',`cadeau`=NOW() WHERE `login`='$data->login'"); print "Het is gelukt!"; exit; } if($getal ==6){ mysql_query("UPDATE `[users]` SET `rankvord`=`rankvord`+'$rankvord',`cadeau`=NOW() WHERE `login`='$data->login'"); print "Het is gelukt!"; exit; } if($getal ==7){ mysql_query("UPDATE `[users]` SET `rankvord`=`rankvord`+'$rankvord',`cadeau`=NOW() WHERE `login`='$data->login'"); print "Het is gelukt!"; exit; } if($getal =={ mysql_query("UPDATE `[users]` SET `rankvord`=`rankvord`+'$rankvord',`cadeau`=NOW() WHERE `login`='$data->login'"); exit; } if($getal ==9){ mysql_query("UPDATE `[users]` SET `rankvord`=`rankvord`+'$rankvord',`cadeau`=NOW() WHERE `login`='$data->login'"); exit; } if($getal ==10){ mysql_query("UPDATE `[users]` SET `rankvord`=`rankvord`+'$rankvord',`cadeau`=NOW() WHERE `login`='$data->login'"); exit; } ?> <? } ?> <form method="POST"> <table width=100%><tr><td class=mainTxt width=100% colspan=3> <p><input type="radio" value="1" checked name="R1">pak je cadeau</p> <p align=right><td class=mainTxt> <p align="center"> <input type="submit" value="geefhet!" name="submit" style="float: right"> </td></tr></table> </form> </td></tr> line 96 doesn't exist Link to comment https://forums.phpfreaks.com/topic/206170-parse-error-what-am-i-doing-wrong/ Share on other sites More sharing options...
kickstart Posted June 29, 2010 Share Posted June 29, 2010 Hi You appear to be missing the closing } for the while loop. Also seems strange to put out half the page and then exit from it without competing the page after various bits of SQL are executed. All the best Keith Link to comment https://forums.phpfreaks.com/topic/206170-parse-error-what-am-i-doing-wrong/#findComment-1078672 Share on other sites More sharing options...
mrbean Posted June 29, 2010 Author Share Posted June 29, 2010 yes and also in the }else{ loop thanx Link to comment https://forums.phpfreaks.com/topic/206170-parse-error-what-am-i-doing-wrong/#findComment-1078673 Share on other sites More sharing options...
mrbean Posted June 29, 2010 Author Share Posted June 29, 2010 another problem if i click on the submit button there is nu reply i see no action in it Link to comment https://forums.phpfreaks.com/topic/206170-parse-error-what-am-i-doing-wrong/#findComment-1078674 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.