Jump to content

What's Wrong with my code?


jemgames

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.