CJ - Twitch Posted February 3, 2010 Share Posted February 3, 2010 Could someone help me with this code please? <?phpsession_start();include "config.php";global $_CONFIG;define("MONO_ON", 1);require "class/class_db_{$_CONFIG['driver']}.php";$db=new database;$db->configure($_CONFIG['hostname'], $_CONFIG['username'], $_CONFIG['password'], $_CONFIG['database'], $_CONFIG['persistent']);$db->connect();$c=$db->connection_id;$set=array();$settq=$db->query("SELECT * FROM settings");while($r=$db->fetch_row($settq)){$set[$r['conf_name']]=$r['conf_value'];}?><html><title>RIPPED</title><body style="background-color:CCCCCC;"> <table border="0" bgcolor='DEDEDE' align='center'> <tr style="background-color:AAAAAA;"> <td><center>RIPPED - Login</center></td> </tr> <tr> <td><form action='authenticate.php' method='POST'> <input type='name' name='name'> <input type='password' name='password'> <center><input type="image" src="submit.jpg" width="84" height="26" /></center> </td> </tr> </body></html> It doesn't want to work. :( Thanks, CJ Quote Link to comment Share on other sites More sharing options...
Mr-Anthony Posted February 3, 2010 Share Posted February 3, 2010 Whats the problem Quote Link to comment Share on other sites More sharing options...
CJ - Twitch Posted February 3, 2010 Author Share Posted February 3, 2010 It doesn't work :P Quote Link to comment Share on other sites More sharing options...
Redex Posted February 3, 2010 Share Posted February 3, 2010 Try expanding on that rather than saying it dosen't work, becuase that won't tell us anything about the problem. Tell us the error you getting, or what you trying to do and it's not working, that will help people in helping you becuase then they will know more about what exactly is happening. - Redex Quote Link to comment Share on other sites More sharing options...
CJ - Twitch Posted February 3, 2010 Author Share Posted February 3, 2010 Sorry, When I enter the correct pass and User it doesn't work. it goes to authenticate and says incorrect pass or user. Quote Link to comment Share on other sites More sharing options...
Mr-Anthony Posted February 3, 2010 Share Posted February 3, 2010 http://detroit-the-game.com/login2.php here is is ill have a look into it now Quote Link to comment Share on other sites More sharing options...
Redex Posted February 3, 2010 Share Posted February 3, 2010 That's better, now i'm sure it will be easier for people to help you out with this code. Theres no need to be sorry, everyone makes mistakes, and most likeley if your new to MCcodes and WebDev'ng. Quote Link to comment Share on other sites More sharing options...
CJ - Twitch Posted February 3, 2010 Author Share Posted February 3, 2010 Thanks :) Quote Link to comment Share on other sites More sharing options...
Mr-Anthony Posted February 3, 2010 Share Posted February 3, 2010 Tbh, it dose really look that good :thumbdown: Quote Link to comment Share on other sites More sharing options...
CJ - Twitch Posted February 3, 2010 Author Share Posted February 3, 2010 Tbh I know :P I wan't to get it fixed before I finish it because I don't want naughty people stealing the code :P Not accusing anyone. Quote Link to comment Share on other sites More sharing options...
Mr-Anthony Posted February 3, 2010 Share Posted February 3, 2010 Done :thumbup: http://detroit-the-game.com/login2.php tell me if i have messed it up Quote Link to comment Share on other sites More sharing options...
CJ - Twitch Posted February 3, 2010 Author Share Posted February 3, 2010 Done :thumbup: http://detroit-the-game.com/login2.php tell me if i have messed it up Sorry... Parse error: syntax error, unexpected '<' in /home/detroitt/public_html/login2.php on line 16 Quote Link to comment Share on other sites More sharing options...
Mr-Anthony Posted February 3, 2010 Share Posted February 3, 2010 Try now ?( Quote Link to comment Share on other sites More sharing options...
CJ - Twitch Posted February 3, 2010 Author Share Posted February 3, 2010 Thank you ! :) Would you mail me the code? Or post it. Quote Link to comment Share on other sites More sharing options...
Mr-Anthony Posted February 3, 2010 Share Posted February 3, 2010 <html><title>RIPPED</title><body style="background-color:CCCCCC;"> <table border="0" bgcolor='DEDEDE' align='center'> <tr style="background-color:AAAAAA;"> <td><center>RIPPED - Login</center></td> </tr> <tr> <td><form action='authenticate.php' method='POST'> <label>Username:</label> <input name='username' type='text' id='username' /> <label>Password:</label> <input name='password' type='password' id='password' /> <center><input type="image" src="submit.jpg" width="84" height="26" /></center> </td> </tr> </body> </html> If needed i will code it into php but seems to work fine this way Quote Link to comment Share on other sites More sharing options...
Magictallguy Posted February 15, 2010 Share Posted February 15, 2010 HTML fail much? <?php session_start(); include 'config.php'; global $_CONFIG; define('MONO_ON', 1); require 'class/class_db_'.$_CONFIG['driver'].'.php'; $db = new database; $db->configure($_CONFIG['hostname'], $_CONFIG['username'], $_CONFIG['password'], $_CONFIG['database'], $_CONFIG['persistent']); $db->connect(); $c = $db->connection_id; $set = array(); $settq = $db->query('SELECT * FROM settings'); while($r = $db->fetch_row($settq)) { $set[$r['conf_name']] = $r['conf_value']; } ?> <!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Transitional//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'> <html xmlns='http://www.w3.org/1999/xhtml' lang='en' xml:lang='en'> <head> <title><?php echo stripslashes(htmlspecialchars($set['game_name'])); ?></title> </head> <body style='background-color:#CCC;'> <table border='0' style='background-color:#DDE;text-align:center;'> <tr style='background-color:#AAA;'> <td style='text-align:center;'><?php echo stripslashes(htmlspecialchars($set['game_name'])); ?> - Login</td> </tr> <tr> <td> <form action='authenticate.php' method='post'> <input type='text' name='name' /> <input type='password' name='password' /> <input type='image' src='submit.jpg' style='width:84;height:26;' /> </form> </td> </tr> </table> </body> </html> XHTML valid, Transitional level. Quote Link to comment Share on other sites More sharing options...
AlabamaHit Posted February 15, 2010 Share Posted February 15, 2010 type='password' type='name' That is the problem type='text' that is what they should be. Quote Link to comment Share on other sites More sharing options...
Jordan Palmer Posted February 15, 2010 Share Posted February 15, 2010 type='password' type='name' That is the problem type='text' that is what they should be. Sweet & Simple and I'm guessing you're right xD :) Quote Link to comment 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.