Topic: Php Help
I want to do something like this...
If you goto a something like this for example
http://www.yourname.com/check.php?user= … ass=gdhdgh
then it would add newera70 and gdhdgh into a database...
i tried it with this code...
//config.php
<?php
$dbhost = "localhost";
$dbuser = "thrice_test";
$dbpass = "test";
$dbname = "thrice_test";
?>
and
//check.php
<?php
include("config.php");
$User = $_GET['user'];
$Pass = $_GET['pass'];
if($User != "" && $Pass != "")
{
mysql_connect("$dbhost", "$dbuser", "$dbpass") or die ('I cannot connect to the database because: ' . mysql_error());
mysql_select_db("$dbname");
mysql_query("INSERT INTO pkbot WHERE user = '$User' AND pass = '$Pass'");
}
else if($User == "" && $Pass == "")
{
exit();
}
?>
someone please help....
- Newera70