|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
Stay one step ahead of the competition. Evaluate and give feedback
on some of the hottest web development tools on the market today.
Make your opinion heard! Click
Here
|
|
#1
|
|||
|
|||
AM NEW TO WEBCODING AND GOT SOME SCRIPTS BUT WHEN I UPLOAD IT TO WEB IT SAYS Parse error: syntax error, unexpected $end in /home/godfathe/public_html/index.php on line 83 here is my code <?php session_start(); include_once"includes/db_connect.php"; if (strip_tags($_GET['logout']) == "yes"){ session_destroy(); }elseif (isset($_SESSION['username'])){ header("Location: game.php"); exit(); } if ($_POST['Submit'] && strip_tags($_POST['username']) && strip_tags($_POST['password'])){ $username = addslashes(strip_tags($_POST['username'])); $password = addslashes(strip_tags($_POST['password'])); $ip = $REMOTE_ADDR; ///check INFO $sql = mysql_query("SELECT * FROM users WHERE username='$username' AND password='$password' AND activated='1' LIMIT 1"); $login_check = mysql_num_rows($sql); $inf = mysql_fetch_object($sql); if ($login_check == "0"){ $message="You could not be logged in"; }elseif ($login_check != "0"){ if ($login_check > "0"){ if ($inf->status == "Dead"){ include_once"dead.php"; exit(); } if ($inf->status == "Banned"){ $encoded=md5(strtolower($username)); header("Location: banned.php?banned=$username&encoded=$encoded"); exit(); } session_register('username'); $_SESSION['username'] = $inf->username; $timestamp = time()+60; mysql_query("UPDATE users SET online='$timestamp' WHERE username='$username'"); mysql_query("UPDATE users SET l_ip='$ip' WHERE username='$username'"); header("Location:game.php"); } else { $message= "You could not be logged in,please check your details.<br />"; }}} ?> <? ///END ////SITE STATS $site=mysql_fetch_object(mysql_query("SELECT * FROM site_stats WHERE id='1'")); ////END ////FORUM TOPICS $totaltopics = mysql_num_rows(mysql_query("SELECT id FROM topics")); //?END /////USERS DEAD $dead= mysql_num_rows(mysql_query("SELECT username FROM users WHERE status = 'Dead'")); /////TOTAL ATTEMPTS $attempts= mysql_num_rows(mysql_query("SELECT id FROM attempts WHERE outcome = 'Survived'")); ///?END $result11111swiss = mysql_query("SELECT money FROM swiss"); $moneyswiss = 0; while($rowswiss=mysql_fetch_array($result11111swis s)){ $moneyswiss+=$rowswiss[0]; } ?> <? $timenow=time(); $select = mysql_query("SELECT * FROM users WHERE online > '$timenow' ORDER by id"); $num = mysql_num_rows($select); while ($i = mysql_fetch_object($select)) ?> <form name="form1" method="post" action=""><html> <html xmlns="(URL address blocked: See forum rules)"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>UK Mafia || Welcome To UK Mafia</title> <link href="includes/in.css" rel="stylesheet" type="text/css" /> <form name="form1" method="post" action=""> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "(URL address blocked: See forum rules)"> <html xmlns="(URL address blocked: See forum rules)"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <style type="text/css"> <!-- .style1 {color: #0000FF} .style2 {color: #FF0000} --> </style> </head> <script type="text/javascript"> <!-- function FP_preloadImgs() {//v1.0 var d=document,a=arguments; if(!d.FP_imgs) d.FP_imgs=new Array(); for(var i=0; i<a.length; i++) { d.FP_imgs[i]=new Image; d.FP_imgs[i].src=a[i]; } } function FP_swapImg() {//v1.0 var doc=document,args=arguments,elm,n; doc.$imgSwaps=new Array(); for(n=2; n<args.length; n+=2) { elm=FP_getObjectByID(args[n]); if(elm) { doc.$imgSwaps[doc.$imgSwaps.length]=elm; elm.$src=elm.src; elm.src=args[n+1]; } } } function FP_getObjectByID(id,o) {//v1.0 var c,el,els,f,m,n; if(!o)o=document; if(o.getElementById) el=o.getElementById(id); else if(o.layers) c=o.layers; else if(o.all) el=o.all[id]; if(el) return el; if(o.id==id || o.name==id) return o; if(o.childNodes) c=o.childNodes; if(c) for(n=0; n<c.length; n++) { el=FP_getObjectByID(id,c[n]); if(el) return el; } f=o.forms; if(f) for(n=0; n<f.length; n++) { els=f[n].elements; for(m=0; m<els.length; m++){ el=FP_getObjectByID(id,els[n]); if(el) return el; } } return null; } // --> </script> <body> <table width="200" border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="#000000" bgcolor="#777777"> <tr> <td colspan=2> </td> </tr> <tr> <td height="21" colspan=2 align=center> <center><a href="register.php" target="quote"><!-- MSComment="ibutton" fp-style="fp-btn: Chain Column 1; fp-transparent: 1" fp-title="Register" --></a> <a href="lost.php" target="quote"><!-- MSComment="ibutton" fp-style="fp-btn: Chain Column 1; fp-transparent: 1" fp-title="Lost Password" --></a> <a href="index.php"><!-- MSComment="ibutton" fp-style="fp-btn: Chain Column 1; fp-transparent: 1" fp-title="Login" --></a> </td> </tr> <tr> <td width="274"> <div align="center"> <?php echo "<font color=red><b><center>$message</center><b></font>"; ?><br> Username: <input name="username" type="text" id="username" value="" size="20" maxlength="40" class="TextField" /> <br /> Password: <input name="password" type="password" id="password2" value="" size="20" maxlength="50" class="TextField" /> <br /> <input type="submit" name="Submit" class="button" value="Enter"><br /> </form> </p> </div></td> <td width="460" valign="top" rowspan=4> <iframe src="indexinfo.php" width="460" height="320" marginwidth="0" marginheight="0" hspace="0" vspace="0" frameborder="0" scrolling=No name="quote"> </iframe></td> </tr> <tr> <td class=header> <div align="center"><b>Latest Updates</b></div></td> </tr> <tr><td height="111"><div align="center"></div></td> </tr> <tr> <td height="83"><div align="center"><br> </div></td> </tr> <tr> <td colspan=2><div align="center">Copyright 2006 - 2007+ © </div></td> </tr> </table> </body> </html> plz help thanks |
![]() |
| Viewing: Dev Articles Community Forums > Databases > Database Development > Help Me Again Plz |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|