jemgames Posted March 17, 2007 Share Posted March 17, 2007 What's wrong with it? <?php // $user=$_GET['user']; $pass=$_GET['pass']; // $connect=mysql_connect('mysql22.ixwebhosting.com:3306','jamieft_admin','poopster1'); if (!$connect) { die('Sorry! Couldent Connect to the Database!'); } mysql_select_db('jamieft_usteam',$connect); $usersql=' SELECT username FROM members '; $passsql=' SELECT password FROM members '; $namesql=' SELECT name FROM members '; $username=mysql_query($usersql); $password=mysql_query($passsql); $name=mysql_query($namesql); if ($username=$user&&$password=$pass) { echo('Welcome'+$name+', Please wait while we transfer you...'); $log=true; $_POST[$log]; header('teampage.php'); } else { $log=false; header('login.php?note=error'); } ?> Thanks! Link to comment https://forums.phpfreaks.com/topic/43170-whats-wrong-with-my-code/ Share on other sites More sharing options...
papaface Posted March 17, 2007 Share Posted March 17, 2007 I hope they're not your real mysql login details. If they are get rid of them now. Link to comment https://forums.phpfreaks.com/topic/43170-whats-wrong-with-my-code/#findComment-209623 Share on other sites More sharing options...
jemgames Posted March 17, 2007 Author Share Posted March 17, 2007 There not but can you edit it anyway? the thing wont apper for me! Link to comment https://forums.phpfreaks.com/topic/43170-whats-wrong-with-my-code/#findComment-209631 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.