systemseven Posted September 9, 2009 Share Posted September 9, 2009 Hey guys, I posted here the other day about a game i am working on, and if you read that topic, you will understand that i am very much a newbie when it comes to php Again, i have more problems, this time, it is with users profiles and their statistics page. I get this message: Fatal error: Cannot redeclare logincheck() It is to do with my functions file on line 13 it says, but i cannot see the problem. Here is the part of the functions file: <?php function logincheck(){ if (empty($_SESSION['username'])){ echo " <meta http-equiv=Refresh content=0;url=index.php> "; exit(); }} session_start(); include_once "db_connect.php"; $username=$_SESSION['username']; echo "<link rel=stylesheet href=includes/in.css type=text/css>"; Any help or advice you can give me would be a massive help. Thanks. Quote Link to comment https://forums.phpfreaks.com/topic/173667-solved-login-check/ Share on other sites More sharing options...
scarhand Posted September 9, 2009 Share Posted September 9, 2009 You're declaring the same function twice. Also, echo " <meta http-equiv=Refresh content=0;url=index.php> "; Should be: header('Location: index.php'); Quote Link to comment https://forums.phpfreaks.com/topic/173667-solved-login-check/#findComment-915451 Share on other sites More sharing options...
Adam Posted September 9, 2009 Share Posted September 9, 2009 You're declaring the logincheck() function twice, most likely you've include the same file twice. Using "include_once" / "require_once" can prevent this kind of error, but you should look into removing the cause properly where possible. Quote Link to comment https://forums.phpfreaks.com/topic/173667-solved-login-check/#findComment-915452 Share on other sites More sharing options...
micmania1 Posted September 9, 2009 Share Posted September 9, 2009 redeclare implies that you are trying to create the same function twice. Please can you check your are not trying to creat the same function in your included script. Quote Link to comment https://forums.phpfreaks.com/topic/173667-solved-login-check/#findComment-915455 Share on other sites More sharing options...
systemseven Posted September 9, 2009 Author Share Posted September 9, 2009 Thanks for the suggestions guys. Here is the "profile" code: <? session_start(); include_once "includes/db_connect.php"; include_once"includes/functions.php"; logincheck(); $username=$_SESSION['username']; $query=mysql_query("SELECT * FROM users WHERE username='$username'"); $fetch=mysql_fetch_object($query); $query1=mysql_query("SELECT * FROM user_info WHERE username='$username'"); $user=mysql_fetch_object($query1); When i remove the "logincheck();" part of the code, i still see the error. Sorry if i am doing this wrong, i can imagine it become frustrating. Quote Link to comment https://forums.phpfreaks.com/topic/173667-solved-login-check/#findComment-915463 Share on other sites More sharing options...
micmania1 Posted September 9, 2009 Share Posted September 9, 2009 What about your db_connect.php script? Quote Link to comment https://forums.phpfreaks.com/topic/173667-solved-login-check/#findComment-915466 Share on other sites More sharing options...
systemseven Posted September 9, 2009 Author Share Posted September 9, 2009 Everything seems normal in the "db_connect" script. The full error code im getting is: Fatal error: Cannot redeclare logincheck() (previously declared in /mydirectory/includes/functions.php:5) in /mydirectory/includes/functions.php on line 11 So am i right in assuming that the problem does lie in the functions file? Quote Link to comment https://forums.phpfreaks.com/topic/173667-solved-login-check/#findComment-915470 Share on other sites More sharing options...
Adam Posted September 9, 2009 Share Posted September 9, 2009 Can't help you unless you show the entire code for db_connect.php and functions.php .. Quote Link to comment https://forums.phpfreaks.com/topic/173667-solved-login-check/#findComment-915473 Share on other sites More sharing options...
Bricktop Posted September 9, 2009 Share Posted September 9, 2009 Hi systemseven, Yes and no, the error above is essentially saying that logincheck() was first declared in the functions file, and the file you're now running which is reporting the above error is attempting to declare it once again. I think it would be good if you could post the full code to functions.php and the full code to the page which is giving you this error. Quote Link to comment https://forums.phpfreaks.com/topic/173667-solved-login-check/#findComment-915474 Share on other sites More sharing options...
systemseven Posted September 9, 2009 Author Share Posted September 9, 2009 Okay db_connect.php: <?php $mysql_server = "******"; $mysql_user = "******"; $mysql_password = "******"; $mysql_database = "******"; $timeoutseconds = 300; $connection = mysql_connect("$mysql_server","$mysql_user","$mysql_password") or die ("Unable to connect to MySQL server."); $db = mysql_select_db("$mysql_database") or die ("ERROR ! datebase has been changed and the changes have not been edited on the conection please wait and it shall be changed."); ?> and the functions.php file: <?php function logincheck(){ if (empty($_SESSION['username'])){ header('Location: index.php'); exit(); }} session_start(); include_once "db_connect.php"; $username=$_SESSION['username']; echo "<link rel=stylesheet href=includes/in.css type=text/css>"; $query=mysql_query("SELECT * FROM users WHERE username='$username' LIMIT 1"); $info = mysql_fetch_object($query); $don=mysql_num_rows(mysql_query("SELECT * FROM donaters WHERE username='$username'")); $date = gmdate('Y-m-d h:i:s'); if ($info->health <= "0"){ mysql_query("UPDATE users SET status='Dead' WHERE username='$username'"); session_destroy(); } if ($info->status == "Dead" || $info->status == "Banned"){ session_destroy(); echo "Your DEAD!!!!!"; exit(); } $crew_check =mysql_query("SELECT * FROM crews"); while($k = mysql_fetch_object($crew_check)){ $user=mysql_fetch_object(mysql_query("SELECT * FROM users WHERE username='$k->owner'")); $rhm=mysql_fetch_object(mysql_query("SELECT * FROM users WHERE username='$k->rhm'")); if ($user->status == "Dead" || $user->status == "Banned"){ if ($k->rhm != "0" && $rhm->status == "Alive"){ mysql_query("UPDATE crews SET owner='$k->rhm', rhm='0' WHERE name='$k->name'"); } elseif ($k->rhm == "0" || $rhm->status == "Dead" || $rhm->status == "Banned"){ mysql_query("UPDATE `users` SET `crew`='0' WHERE `crew`='$k->name'"); mysql_query("DELETE FROM crews WHERE name='$k->name'"); } } } $bba=mysql_query("SELECT * FROM bank"); while($nana =mysql_fetch_object($bba)){ $ppl=mysql_fetch_object(mysql_query("SELECT * FROM users WHERE username='$nana->owner'")); if ($ppl->status == "Dead" || $ppl->status == "Banned"){ mysql_query("UPDATE bank SET owner='0' WHERE id='$nana->id'"); } } $oc_query=mysql_query("SELECT * FROM oc"); while($ttfn = mysql_fetch_object($oc_query)){ $user_oc=mysql_fetch_object(mysql_query("SELECT * FROM users WHERE username='$ttfn->leader'")); if ($user_oc->status == "Dead" || $user_oc->status == "Banned"){ mysql_query("UPDATE users SET oc='0' WHERE username='$ttfn->we'"); mysql_query("UPDATE users SET oc='0' WHERE username='$ttfn->ee'"); mysql_query("UPDATE users SET oc='0' WHERE username='$ttfn->driver'"); mysql_query("UPDATE users SET oc='0' WHERE username='$ttfn->leader'"); mysql_query("DELETE FROM oc WHERE id='$ttfn->id'"); }} ////UPDATE ONLINE $time = time() + (60 * 10); mysql_query("UPDATE users SET online='$time' WHERE username='$username'"); ///FINSH UPDATING ONLINE function makecomma($input) { if(strlen($input)<=3) { return $input; } $length=substr($input,0,strlen($input)-3); $formatted_input = makecomma($length).",".substr($input,-3); return $formatted_input; } ///////// BB CODES function rankcheck(){ $username=$_SESSION['username']; $query=mysql_query("SELECT * FROM users WHERE username='$username' LIMIT 1"); $info = mysql_fetch_object($query); $date = gmdate('Y-m-d h:i:s'); if (($info->rank == "") && ($info->rankpoints >= "0" and $info->rankpoints < "100")){ $newrank="Scum"; $done="1"; } elseif (($info->rank == "Scum") && ($info->rankpoints >= "100")){ $newrank="Pee wee"; $done="1"; } elseif (($info->rank == "Pee wee") && ($info->rankpoints >= "200")){ $newrank="Thug"; $done="1"; } elseif (($info->rank == "Thug") && ($info->rankpoints >= "400")){ $newrank="Gangster"; $done="1"; } elseif (($info->rank == "Gangster") && ($info->rankpoints >= "800")){ $newrank="Hitman"; $done="1"; } elseif (($info->rank == "Hitman") && ($info->rankpoints >= "16000")){ $newrank="Assasin"; $done="1"; } elseif (($info->rank == "Assasin") && ($info->rankpoints >= "32000")){ $newrank="Boss"; $done="1"; } elseif (($info->rank == "Boss") && ($info->rankpoints >= "64000")){ $newrank="Respectable Boss"; $done="1"; } elseif (($info->rank == "Respectable Boss") && ($info->rankpoints >= "128000")){ $newrank="Legendary Boss"; $done="1"; } elseif (($info->rank == "Legendary Boss") && ($info->rankpoints >= "256000")){ $newrank="Underboss"; $done="1"; } elseif (($info->rank == "Underboss") && ($info->rankpoints >= "512000")){ $newrank="Godfather"; $done="1"; } elseif (($info->rank == "Godfather") && ($info->rankpoints >= "1024000")){ $newrank="Don"; $done="1"; } elseif (($info->rank == "Don") && ($info->rankpoints >= "2048000")){ $newrank="Respectable Don"; $done="1"; } elseif (($info->rank == "Respectable Boss") && ($info->rankpoints >= "100000000000")){ $newrank="Ultimate Don"; $done="1"; } if (!$done){ $done="0"; } if ($done == "1"){ mysql_query("UPDATE users SET rank='$newrank' WHERE username='$username'"); mysql_query("INSERT INTO `inbox` ( `id` , `to` , `from` , `message` , `date` , `read` , `saved` , `event_id` ) VALUES ( '', '$username', '$username', 'You have been promoted to $newrank your doing well!', '$date', '0', '0', '0' )"); }} rankcheck(); /////// JAIL CHECK! $jail_check=mysql_query("SELECT * FROM jail"); while($monster=mysql_fetch_object($jail_check)){ if (time() > $monster->time_left){ mysql_query("DELETE FROM jail WHERE username='$monster->username'"); }} function maketime($last){ $timenow = time(); if($last>$timenow){ $order = $last-$timenow; while($order >= 60){ $order = $order-60; $ordermleft++; } while($ordermleft >= 60){ $ordermleft = $ordermleft-60; $orderhleft++; } if($ordermleft == 0){ $ordermleft = ""; } else { $ordermleft = "$ordermleft Minutes"; } if($orderhleft == 0){ $orderhleft = ""; } else { $orderhleft = "$orderhleft Hours"; } return "$orderhleft $ordermleft $order Seconds"; }} function loose_energy(){ $username=$_SESSION['username']; $query=mysql_query("SELECT * FROM users WHERE username='$username' LIMIT 1"); $info = mysql_fetch_object($query); $energy=$info->energy - rand(1,3); if ($energy <= "0"){ $update=health; $thing=$info->health - rand(1,3); $energy_new="0"; }elseif ($energy > "0"){ $update=energy; $thing=$info->energy - rand(1,3); } if (!$energy_new){ mysql_query("UPDATE users SET $update='$thing' WHERE username='$username'"); }elseif ($energy_new){ mysql_query("UPDATE users SET $update='$thing', energy='0' WHERE username='$username'"); } } $most_online=mysql_fetch_object(mysql_query("SELECT * FROM site_stats WHERE id='1'")); $timenow=time(); $now_online =mysql_num_rows(mysql_query("SELECT * FROM users WHERE online > '$timenow'")); if ($now_online > $most_online->online){ mysql_query("UPDATE site_stats SET online='$now_online' WHERE id='1'"); } $drop =mysql_query("SELECT * FROM casinos"); while($tard=mysql_fetch_object($drop)){ $per = mysql_fetch_object(mysql_query("SELECT * FROM users WHERE username='$tard->owner'")); if ($per->status == "Dead" || $per->status == "Banned"){ mysql_query("UPDATE casinos SET owner='0' WHERE casino='$tard->casino' AND owner='$tard->owner'"); } } $drop_bar =mysql_query("SELECT * FROM bar"); while($tard_bar=mysql_fetch_object($drop_bar)){ $per_bar = mysql_fetch_object(mysql_query("SELECT * FROM users WHERE username='$tard_bar->owner'")); if ($per_bar->status == "Dead" || $per_bar->status == "Banned"){ mysql_query("UPDATE bar SET owner='0' WHERE owner='$tard_bar->owner'"); } } $drop_bf =mysql_query("SELECT * FROM bf"); while($tard_bf=mysql_fetch_object($drop_bf)){ $per_bf = mysql_fetch_object(mysql_query("SELECT * FROM users WHERE username='$tard_bf->owner'")); if ($per_bf->status == "Dead" || $per_bf->status == "Banned"){ mysql_query("UPDATE bf SET owner='0' WHERE owner='$tard_bf->owner'"); } } if ($info->banktime <= time() && $info->bank > "0"){ $nmoney = 10 * $info->bank / 100; $money_in = $info->bank + $nmoney; $money_in= round($money_in); $recieve = $info->money + $money_in; mysql_query("UPDATE users SET money = '$recieve', bank='0', banktime='0' WHERE username='$username'"); } $drop_und =mysql_query("SELECT * FROM shop"); while($tard_und=mysql_fetch_object($drop_und)){ $per_und = mysql_fetch_object(mysql_query("SELECT * FROM users WHERE username='$tard_und->owner'")); if ($per_und->status == "Dead" || $per_und->status == "Banned"){ mysql_query("UPDATE shop SET owner='0' WHERE owner='$tard_und->owner'"); } } $user_info=mysql_fetch_object(mysql_query("SELECT * FROM user_info WHERE username='$username'")); if ($user_info->jail_able == "1" && $user_info->jail_untill <= time()){ mysql_query("UPDATE user_info SET jail_able='0' WHERE username='$username'"); } $user_shit=mysql_fetch_object(mysql_query("SELECT * FROM user_info WHERE username='$username'")); if ($user_shit->last_respect < time() && $fetch->rank != "Tramp"){ if ($info->rank == "Paper Kid"){ $new_res="1"; }elseif($info->rank == "Theif"){ $new_res="2"; }elseif($info->rank == "Robber"){ $new_res="3"; }elseif($info->rank == "Gangster"){ $new_res="4"; }elseif($info->rank == "Associate"){ $new_res="5"; }elseif($info->rank == "Piciotto"){ $new_res="6"; }elseif($info->rank == "Made Man"){ $new_res="7"; }elseif($info->rank == "Capo"){ $new_res="8"; }elseif($info->rank == "Consigliere"){ $new_res="9"; }elseif($info->rank == "Underboss"){ $new_res="10"; }elseif($info->rank == "Druglord"){ $new_res="11"; }elseif($info->rank == "Godfather"){ $new_res="12"; } $now=time() + (3600 * 24 * 7); mysql_query("UPDATE user_info SET respect='$new_res', last_respect='$now' WHERE username='$username'"); } ?> EDIT: here is the profile page too: <?php session_start(); include_once "includes/db_connect.php"; include_once"includes/functions.php"; logincheck(); $username=$_SESSION['username']; $query=mysql_query("SELECT * FROM users WHERE username='$username'"); $fetch=mysql_fetch_object($query); $query1=mysql_query("SELECT * FROM user_info WHERE username='$username'"); $user=mysql_fetch_object($query1); if (($_POST['change_pass']) && ($_POST['current_pass']) && ($_POST['new_pass']) && ($_POST['repeat_pass'])){ $current_pass=$_POST['current_pass']; $new_pass=$_POST['new_pass']; $repeat_pass=$_POST['repeat_pass']; ///STRIP $current_pass = strip_tags($current_pass); $new_pass=strip_tags($new_pass); $repeat_pass=strip_tags($repeat_pass); ///check if they match if ($current_pass == $fetch->password && $new_pass == $repeat_pass){ mysql_query("UPDATE users SET password='$new_pass' WHERE username='$username'"); echo "Your password has been changed!"; session_destroy(); echo "<script language=\"javascript\"> top.document.location.reload(); </script>"; }else{ echo "Your password could NOT be changed!"; } } if (($_POST['change_quote']) && ($_POST['quote'])){ $quote=strip_tags($_POST['quote']); mysql_query("UPDATE users SET quote='$quote' WHERE username='$username'"); echo "Your quote has been updated"; } if (($_POST['change_image']) && strip_tags($_POST['image'])){ $image=strip_tags($_POST['image']); mysql_query("UPDATE users SET image='$image' WHERE username='$username'"); echo "Your image has been updated"; } if (strip_tags($_POST['change_music']) && strip_tags($_POST['music'])){ $music=strip_tags($_POST['music']); mysql_query("UPDATE users SET music='$music' WHERE username='$username'"); echo "Music has been changed"; } if (strip_tags($_POST['lang_button']) && strip_tags($_POST['lang'])){ $lang=strip_tags($_POST['lang']); if ($lang == "1"){ $new_lang="English"; }else{ $new_lang="Dutch"; } mysql_query("UPDATE user_info SET lang='$new_lang' WHERE username='$username'"); echo "Language settings updated."; } if (strip_tags($_POST['respect_button']) && strip_tags($_POST['respect_amount']) && strip_tags($_POST['respect_an']) && strip_tags($_POST['respect_username'])){ $respect_amount=addslashes(strip_tags(intval($_POST['respect_amount']))); $respect_an=strip_tags($_POST['respect_an']); $respect_username=addslashes(strip_tags($_POST['respect_username'])); $respect_type=strip_tags($_POST['respect_type']); if ($respect_amount == 0 || !$respect_amount || ereg('[^0-9]',$respect_amount)){ print "Invalid amount of respect points."; }elseif ($respect_amount != 0 || $respect_amount || !ereg('[^0-9]',$respect_amount)){ if (strtolower($username) == strtolower($respect_username)){ echo "You cannot send respect to yourself."; }elseif (strtolower($username) != strtolower($respect_username)){ $check=mysql_num_rows(mysql_query("SELECT * FROM users WHERE username='$respect_username'")); if ($check == "0"){ echo "No such user."; }elseif ($check != "0"){ if ($user->respect < $respect_amount){ echo "You dont have enough resepect points to send."; }elseif ($user->respect >= $respect_amount){ $new_points=$user->respect - $respect_amount; mysql_query("UPDATE user_info SET respect='$new_points' WHERE username='$username'"); if ($respect_type == "1"){ mysql_query("UPDATE user_info SET respect_rec=respect_rec+$respect_amount WHERE username='$respect_username'"); }else{ mysql_query("UPDATE user_info SET respect_rec=respect_rec-$respect_amount WHERE username='$respect_username'"); } echo "Respect points sent."; if ($respect_an == "1"){ mysql_query("INSERT INTO `inbox` ( `id` , `to` , `from` , `message` , `date` , `read` , `saved` , `event_id` , `witness` , `witness_per` ) VALUES ( '', '$respect_username', '$respect_username', '$username sent you $respect_amount respect points!', '$date', '0', '0', '0', '0', '' )"); }else{ mysql_query("INSERT INTO `inbox` ( `id` , `to` , `from` , `message` , `date` , `read` , `saved` , `event_id` , `witness` , `witness_per` ) VALUES ( '', '$respect_username', '$respect_username', 'Someone sent you $respect_amount respect points!', '$date', '0', '0', '0', '0', '' )"); } }}}}} if ($fetch->rank == "Paper Kid"){ $new_res="1"; }elseif($fetch->rank == "Theif"){ $new_res="2"; }elseif($fetch->rank == "Robber"){ $new_res="3"; }elseif($fetch->rank == "Gangster"){ $new_res="4"; }elseif($fetch->rank == "Associate"){ $new_res="5"; }elseif($fetch->rank == "Piciotto"){ $new_res="6"; }elseif($fetch->rank == "Made Man"){ $new_res="7"; }elseif($fetch->rank == "Capo"){ $new_res="8"; }elseif($fetch->rank == "Consigliere"){ $new_res="9"; }elseif($fetch->rank == "Underboss"){ $new_res="10"; }elseif($fetch->rank == "Druglord"){ $new_res="11"; }elseif($fetch->rank == "Godfather"){ $new_res="12"; } if (strip_tags($_POST['backfire_amount']) && strip_tags($_POST['backfire_button'])){ $backfire_amount=strip_tags(intval($_POST['backfire_amount'])); if ($backfire_amount == 0 || !$backfire_amount || ereg('[^0-9]',$backfire_amount)){ print "Invalid amount of respect points."; }elseif ($backfire_amount != 0 || $backfire_amount || !ereg('[^0-9]',$backfire_amount)){ if ($backfire_amount > $fetch->bullets){ echo "You dont have that many bullets."; }elseif ($backfire_amount <= $fetch->bullets){ $new_bullets=$fetch->bullets - $backfire_amount; mysql_query("UPDATE users SET bullets='$new_bullets', backfire='$backfire_amount' WHERE username='$username'"); echo "Backfire updated."; }}} if (strip_tags($_POST['status_button']) && strip_tags($_POST['status'])){ $status=strip_tags($_POST['status']); if ($status == "1"){ mysql_query("UPDATE users SET bar='1' WHERE username='$username'"); echo "<script language=\"javascript\"> top.document.location.reload(); </script>"; }else{ mysql_query("UPDATE users SET bar='2' WHERE username='$username'"); echo "<script language=\"javascript\"> top.document.location.reload(); </script>"; } } ?><html> <head> <title>Untitled Document</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <script language="javascript" type="text/javascript"> function AddEmoticon(text) { var txtarea = document.form.quote; text = ' ' + text + ' '; if (txtarea.createTextRange && txtarea.caretPos) { var caretPos = txtarea.caretPos; caretPos.text = caretPos.text.charAt(caretPos.text.length - 1) == ' ' ? caretPos.text + text + ' ' : caretPos.text + text; txtarea.focus(); } else { txtarea.value += text; txtarea.focus(); } } </script> </head> <body> <form name="form" method="post" action=""> <table width="84%" border="0" align="center" cellpadding="0" cellspacing="2" > <!--DWLayoutTable--> <tr> <td width="50%" height="134" valign="top"><table width="100%" height="79" border="1" cellpadding="2" cellspacing="0" bordercolor="#000000" class=thinline> <!--DWLayoutTable--> <tr > <td colspan="2" background="includes/grad.jpg"> <div align="center" class=bold>Change password</div></td> </tr> <tr> <td height="25">Old password: </td> <td ><input name="current_pass" type="text" id="current_pass2" size="20"></td> </tr> <tr> <td height="13">New password:</td> <td height="13"> <input name="new_pass" type="text" id="new_pass2" size="20"></td> </tr> <tr> <td height="6">Confirm password:</td> <td height="6"><input name="repeat_pass" type="text" id="repeat_pass2" size="20"></td> </tr> <tr> <td height="7"> </td> <td height="7"><input name="change_pass" type="submit" id="change_pass2" value="Change"></td> </tr> </table></td> <td width="321" rowspan="3" valign="top"><table width="100%" border="1" align="center" cellpadding="2" cellspacing="0" bordercolor="#000000" class=thinline> <!--DWLayoutTable--> </table></td> </tr> <tr> <td height="66" valign="top"><table width="100%" border="1" cellpadding="2" cellspacing="0" bordercolor="#000000" class=thinline> <!--DWLayoutTable--> <tr> <td height="66" valign="top"><table width="100%" border="1" cellpadding="2" cellspacing="0" bordercolor="black" class=thinline> <!--DWLayoutTable--> <tr > <td background="includes/grad.jpg" colspan="2"> <div align="center">Profile music</div></td> </tr> <tr> <td height="25">Music url:</td> <td ><input name="music" type="text" id="music" value="<? echo "$fetch->music"; ?>"></td> </tr> <tr> <td height="29" colspan="2"> <div align="center"> <input name="change_music" type="submit" id="change_music" value="Change"> </div></td> </tr> </table></td> </tr> <tr> <td valign="top"><div align="center"> <table width="100%" border="1" cellpadding="2" cellspacing="0" bordercolor="black" class=thinline> <!--DWLayoutTable--> <tr> <td background="includes/grad.jpg" colspan="2" ><div align="center" class=bold>Profile image</div></td> </tr> <tr> <td height="42" colspan="2"><div align="center"><img src="<? echo "$fetch->image"; ?>" width="336" height="200" border="1"> <input name="image" type="text" id="image" value="<? echo "$fetch->image"; ?>"> </div></td> </tr> <tr> <td height="21">Change:</td> <td ><!--DWLayoutEmptyCell--> </td> </tr> <tr> <td height="21"> </td> <td><input name="change_image" type="submit" id="change_image" value="Change"></td> </tr> </table> </div></td> <td height="171" valign="top"><div align="center"> <table width="100%" border="0" cellpadding="0" cellspacing="0"> <!--DWLayoutTable--> <tr> <td width="321" height="152" valign="top"><table width="100%" border="1" align="center" cellpadding="2" cellspacing="0" bordercolor="#000000" class=thinline> <!--DWLayoutTable--> <tr > <td colspan="2" background="includes/grad.jpg" valign="top"><div align="center" class=bold>Backfire</div></td> </tr> <tr> <td height="44" colspan="2">Your backfire is currently set at <? echo "$fetch->backfire"; ?> bullets.</td> </tr> <tr> <td width="145" height="13">Change:</td> <td width="162"><input name="backfire_amount" type="text" id="backfire_amount"></td> </tr> <tr> <td width="145" height="13"> </td> <td><input name="backfire_button" type="submit" id="backfire_button" value="Submit"></td> </tr> </table></td> </tr> <tr> <td height="19"> </td> </tr> </table> </div></td> </tr> <tr> <td height="19" colspan="2" valign="top"><div align="center"> <table width="49%" border="1" align="center" cellpadding="2" cellspacing="0" bordercolor="black" class=thinline> <!--DWLayoutTable--> <tr> <td colspan="2" background="includes/grad.jpg"><div align="center">Your quote</div></td> </tr> <tr> <td ><textarea name="quote" cols="80" rows="10" id="textarea"><?php echo "$fetch->quote"; ?></textarea></td> </tr> <tr> <td height="5"> </td> <td><input name="change_quote" type="submit" id="change_quote" value="Submit"></td> </tr> </table> <p> <? include ('baf.php') ?> </div></td> </tr> </table> </form> </body> </html> Quote Link to comment https://forums.phpfreaks.com/topic/173667-solved-login-check/#findComment-915476 Share on other sites More sharing options...
systemseven Posted September 9, 2009 Author Share Posted September 9, 2009 Any ideas guys? I really can't get my head around this Quote Link to comment https://forums.phpfreaks.com/topic/173667-solved-login-check/#findComment-915516 Share on other sites More sharing options...
systemseven Posted September 9, 2009 Author Share Posted September 9, 2009 i hope bumping isnt against the rules.. sorry for the triple post! Quote Link to comment https://forums.phpfreaks.com/topic/173667-solved-login-check/#findComment-915553 Share on other sites More sharing options...
systemseven Posted September 9, 2009 Author Share Posted September 9, 2009 Sorry to keep bumpig this guys, i just really need an answer or pointing in the right direction. Quote Link to comment https://forums.phpfreaks.com/topic/173667-solved-login-check/#findComment-915737 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.