$connection = mysql_connect("$hostname" , "$user" , "$pass") or die ("Can't connect to MySQL");
$db = mysql_select_db($dbase , $connection) or die ("Can't select database.");
// User has login but you should check his account validity again
$qChk = "select id from membership where username='$member' and status='Y' ";
$rsChk = mysql_query($qChk);
if (mysql_num_rows($rsChk) != '1')
{header("Location: /login.php");
exit;
}
// Rest of your welcome page content here
echo ("
<HEAD>
<TITLE>COLOUR-DREAMS :: </TITLE>
<link rel='stylesheet' type='text/css' href='/style.css'>
</HEAD>
<BODY style='background-color: transparent;' topmargin='0' leftmargin='0'>
<? include ('/home/lauren/colour-dreams.net/includes/everypageinc.html'); ?>
<a href='#' onClick='history.go(-1)'><img src='/images/back.gif' border='0'> Go Back</a>
<p><img src='/images/bullet.gif'> <b>Members</b><p>
<? include ('/home/lauren/colour-dreams.net/members/menu.html'); ?>
<TD valign='top'>
If you use anything post a credit link back to http://colour-dreams.net!
<p>First of all, if you use anything, tag my board and let me know.</p>
<p> Pixels:
<br>In many cases, please link the actual image back to us. For calendars, post a credit link directly under the calendars. For website pixels, post a credit link on your site, main page or credit page is fine. For smilies, I've made a little animated image you can post on your credit page or somewhere. Or, if you use smilies in a blog, you can put a link right in the name/time posted, etc. section. Be creative.
</p>
<p> Tutorials/Scripts:
<br>Yep, these, too. Post a link back if you use anything for your site!</p>
</TD></Tr></Table>
It would be a very good idea to remove your MySQL connection variables, because right now, if I wanted, I could delete your entire database because you've now given me the login information.
__________________ Please login or register to view this content. Registration is FREE - Latest Articles: Please login or register to view this content. Registration is FREE , Please login or register to view this content. Registration is FREE