Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /home/openshar/public_html/check.php on line 12
You'll be redirected to your Home Page after (2) Seconds in energie
Unknown: Your script possibly relies on a session side-effect which existed until PHP 4.2.3. Please be advised that the session extension does not consider global variables as a source of data, unless register_globals is enabled. You can disable this functionality and this warning by setting session.bug_compat_42 or session.bug_compat_warn to off,
my code
<?php
$myusername=$_GET['user'];
require('config.php');
// Connect to server and select databse.
mysql_connect("$host", "$dbusername", "$dbpass")or die("cannot connect");
mysql_select_db("$dbname")or die("cannot select DB");
$sql="SELECT * FROM 'members' WHERE 'username'= '$myusername'";
$res3 = mysql_query($sql);
$row3 = mysql_fetch_assoc($res3);
?>
<?
{
echo "You'll be redirected to your Home Page after (2) Seconds in <b>$myusername</b>";
echo "<meta http-equiv=Refresh content=2;url=".$row['directory_name'].">";
}
?>
it just basicly grabs the user that logs in and gets the path to his folder in a database...


Sign In
Create Account


Back to top









