Jump to content

duncan_cowan

Members
  • Posts

    109
  • Joined

  • Last visited

Posts posted by duncan_cowan

    VS.Php

    Calm down, he didn't say it was worth the money, he said I wonder if it is worth the money then later said "I would rather save my money"You need to read the post a little more carefully before throwing a jab :)
    I meant that Cronthenoob was right. i wasnt saying that he said it was worth the money, i was saying that i agreed with him about it being a rip off!!

    VS.Php

    :) it is so not worth the money as you say Cronthenoob!!! I downloaded the demo but its practically the same as using frontage the only differences are that it has colour coding and you can debug it. :)
  1. <?php  require 'protected/db_connect.php';	// database connect script.if ($logged_in == 1) {header('Location: http://www.wasper-rocker.co.uk/protected/world_war_six_-.php');}//Deletes Old Database Entries  $maxtime = time() -600; $sql = mysql_query("DELETE FROM ppl_online WHERE UNIX_TIMESTAMP(activity) < '$maxtime'"); $rows = mysql_affected_rows(); if($_SESSION['online'] == "yes"){ 	@mysql_query("INSERT INTO ppl_online (session_id, activity, ip_address, refurl, user_agent) <br>		VALUES ('".session_id()."', now(), '{$_SERVER['REMOTE_ADDR']}', '{$_SERVER['HTTP_REFERER']}', '{$_SERVER['HTTP_USER_AGENT']}')"); 	$_SESSION['online'] = "yes"; } else { 	if ($logged_in == 1){ 		@mysql_query("UPDATE ppl_online SET activity=now(), member='y' WHERE session_id='".session_id()."'"); 	} } if($_SESSION['online'] == "yes"){		 	@mysql_query("UPDATE ppl_online SET activity=now() WHERE session_id='".session_id()."'"); } ?><html><head><meta http-equiv="Content-Language" content="en-gb"><title>World War Six - Home</title><meta http-equiv="Content-Type" content="text/html; charset=windows-1252"></head><body bgcolor="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"><!-- ImageReady Slices (images/WW6.psd) --><center><font color="FFFFFF" face="Haettenschweiler"><table id="Table_01" width="800" height="631" border="0" cellpadding="0" cellspacing="0">	<tr>		<td colspan="12">			<img src="protected/images/WW6_01.gif" width="800" height="69" alt=""></td>	</tr>	<tr>		<td>			<img src="protected/images/WW6_02.gif" width="28" height="21" alt=""></td>		<td>			<img src="protected/images/WW6_03.gif" width="93" height="21" alt=""></td>		<td colspan="3">			<img src="protected/images/WW6_04.gif" width="93" height="21" alt=""></td>		<td>			<a href="index.php"><img border="0" src="protected/images/WW6_05.gif" width="93" height="21" alt=""></a></td>		<td>			<a href="thegame.php"><img border="0" src="protected/images/WW6_06.gif" width="93" height="21" alt=""></a></td>		<td>			<a href="register.php"><img border="0" src="protected/images/WW6_07.gif" width="93" height="21" alt=""></a></td>		<td>			<img src="protected/images/WW6_08.gif" width="93" height="21" alt=""></td>		<td>			<img src="protected/images/WW6_09.gif" width="93" height="21" alt=""></td>		<td>			<img src="protected/images/WW6_10.gif" width="93" height="21" alt=""></td>		<td>			<img src="protected/images/WW6_11.gif" width="28" height="21" alt=""></td>	</tr>	<tr>		<td colspan="12">			<img src="protected/images/WW6_12.gif" width="800" height="23" alt=""></td>	</tr>	<tr>		<td colspan="3">			<img src="protected/images/WW6_13.gif" width="153" height="21" alt=""></td>		<td rowspan="9">			<img src="protected/images/WW6_14.gif" width="6" height="517" alt=""></td>		<td colspan="8">			<img src="protected/images/WW6_15.gif" width="641" height="21" alt=""></td>	</tr>	<tr>		<td colspan="3" height="85" background="protected/images/WW6_16.gif"><div align="center"><?php include("protected/login.php") ?>		<img src="protected/images/WW6_07.gif">		</div></td>		<td colspan="8" rowspan="7" valign="top" background="protected/images/WW6_17.gif"><div align="center"><br><br><font color="#FFFFFF"><?php include("regform.php") ?><br>				</tr>	<tr>		<td colspan="3">			<img src="protected/images/WW6_18.gif" width="153" height="45" alt=""></td>	</tr>	<tr>		<td colspan="3" height="85" background="protected/images/WW6_19.gif"><div align="center"><?php include("protected/memberstats.php") ?></div></td>	</tr>	<tr>		<td colspan="3">			<img src="protected/images/WW6_20.gif" width="153" height="45" alt=""></td>	</tr>	<tr>		<td colspan="3" height="85" background="protected/images/WW6_21.gif"><div align="center">Site			stats here.</div></td>	</tr>	<tr>		<td colspan="3">			<img src="protected/images/WW6_22.gif" width="153" height="45" alt=""></td>	</tr>	<tr>		<td colspan="3" height="85" background="protected/images/WW6_23.gif">		<div align="center">Site stats here.</div></td>	</tr>	<tr>		<td colspan="3">			<img src="protected/images/WW6_24.gif" width="153" height="21" alt=""></td>		<td colspan="8">			<img src="protected/images/WW6_25.gif" width="641" height="21" alt=""></td>	</tr>	<tr>		<td>			<img src="spacer.gif" width="28" height="1" alt=""></td>		<td>			<img src="spacer.gif" width="93" height="1" alt=""></td>		<td>			<img src="spacer.gif" width="32" height="1" alt=""></td>		<td>			<img src="spacer.gif" width="6" height="1" alt=""></td>		<td>			<img src="spacer.gif" width="55" height="1" alt=""></td>		<td>			<img src="spacer.gif" width="93" height="1" alt=""></td>		<td>			<img src="spacer.gif" width="93" height="1" alt=""></td>		<td>			<img src="spacer.gif" width="93" height="1" alt=""></td>		<td>			<img src="spacer.gif" width="93" height="1" alt=""></td>		<td>			<img src="spacer.gif" width="93" height="1" alt=""></td>		<td>			<img src="spacer.gif" width="93" height="1" alt=""></td>		<td>			<img src="spacer.gif" width="28" height="1" alt=""></td>	</tr></table><font size="1" face="Arial">©Duncan Cowan 2006.</font></center><!-- End ImageReady Slices --></body></html>

  2. On my register page I have included an other page which has a table on it but when i view the page the table is quite far down, also when i highlight a space before the table it also highlights a colum in the table. Also when i add a colum to the table The table goes 1 line down.the code for the the table is:

    <form action="regformcheck.php" method="post"><table align="center" border="0" cellspacing="0" cellpadding="3">	<tr>		<td> <font color="#FFFFFF">Username*:		</td>		<td><input type="text" name="uname" maxlength="40" style="width:150px;height:17px;border:solid 1px black; font-size: 11">		</td>	</tr>	<br><br>	<tr>		<td><font color="#FFFFFF">Password*:		</td>		<td><input type="password" name="passwd" maxlength="50" style="width:150px;height:17px;border:solid 1px black; font-size: 11">		</td>	</tr><br><br>	<tr>		<td><font color="#FFFFFF">Confirm Password*:		</td>		<td><input type="password" name="passwd_again" maxlength="50" style="width:150px;height:17px;border:solid 1px black; font-size: 11">		</td>	</tr><br><br>	<tr>		<td><font color="#FFFFFF">E-Mail*:		</td>		<td><input type="text" name="email" maxlength="100" style="width:150px;height:17px;border:solid 1px black; font-size: 11">		</td>	</tr><br><br>	<tr>		<td><font color="#FFFFFF">Location		</td>		<td><input type="text" name="location" maxlength="150" style="width:150px;height:17px;border:solid 1px black; font-size: 11">		</td>	</tr><br><br>	<tr>		<td><font color="#FFFFFF">Show E-Mail?		</td>		<td><select name="show_email" style="width:100px;height:17px;border:solid 1px black; font-size: 11">				<option value="1" selected="selected">Yes</option>				<option value="0">No</option></select>		</td>	</tr><br><br>	<tr>		<td colspan="2" align="right"><input type="submit" name="submit" value="Sign Up">		</td>	</tr><br><br></table></form>

    Is there any way to stop this from happening?

  3. i have gotten rid of the head and body tags from the included bit but it makes no difference, I have also put the php process bit in a seperate file but that also makes no difference. the register page is meant to look like the home page but with a form in the middle.Home pageRegister Page

  4. hiwhen i add a register script to my website the template messes up. The code for the page is:

    <?php  require 'protected/db_connect.php';	// database connect script.if ($logged_in == 1) {header('Location: http://www.wasper-rocker.co.uk/protected/world_war_six_-.php');}//Deletes Old Database Entries  $maxtime = time() -600; $sql = mysql_query("DELETE FROM ppl_online WHERE UNIX_TIMESTAMP(activity) < '$maxtime'"); $rows = mysql_affected_rows(); if($_SESSION['online'] == "yes"){ 	@mysql_query("INSERT INTO ppl_online (session_id, activity, ip_address, refurl, user_agent) <br>		VALUES ('".session_id()."', now(), '{$_SERVER['REMOTE_ADDR']}', '{$_SERVER['HTTP_REFERER']}', '{$_SERVER['HTTP_USER_AGENT']}')"); 	$_SESSION['online'] = "yes"; } else { 	if ($logged_in == 1){ 		@mysql_query("UPDATE ppl_online SET activity=now(), member='y' WHERE session_id='".session_id()."'"); 	} } if($_SESSION['online'] == "yes"){		 	@mysql_query("UPDATE ppl_online SET activity=now() WHERE session_id='".session_id()."'"); } ?><html><head><meta http-equiv="Content-Language" content="en-gb"><title>World War Six - Home</title><meta http-equiv="Content-Type" content="text/html; charset=windows-1252"></head><body bgcolor="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"><!-- ImageReady Slices (images/WW6.psd) --><center><font color="FFFFFF" face="Haettenschweiler"><table id="Table_01" width="800" height="631" border="0" cellpadding="0" cellspacing="0">	<tr>		<td colspan="12">			<img src="protected/images/WW6_01.gif" width="800" height="69" alt=""></td>	</tr>	<tr>		<td>			<img src="protected/images/WW6_02.gif" width="28" height="21" alt=""></td>		<td>			<img src="protected/images/WW6_03.gif" width="93" height="21" alt=""></td>		<td colspan="3">			<img src="protected/images/WW6_04.gif" width="93" height="21" alt=""></td>		<td>			<a href="index.php"><img border="0" src="protected/images/WW6_05.gif" width="93" height="21" alt=""></a></td>		<td>			<a href="thegame.php"><img border="0" src="protected/images/WW6_06.gif" width="93" height="21" alt=""></a></td>		<td>			<a href="register.php"><img border="0" src="protected/images/WW6_07.gif" width="93" height="21" alt=""></a></td>		<td>			<img src="protected/images/WW6_08.gif" width="93" height="21" alt=""></td>		<td>			<img src="protected/images/WW6_09.gif" width="93" height="21" alt=""></td>		<td>			<img src="protected/images/WW6_10.gif" width="93" height="21" alt=""></td>		<td>			<img src="protected/images/WW6_11.gif" width="28" height="21" alt=""></td>	</tr>	<tr>		<td colspan="12">			<img src="protected/images/WW6_12.gif" width="800" height="23" alt=""></td>	</tr>	<tr>		<td colspan="3">			<img src="protected/images/WW6_13.gif" width="153" height="21" alt=""></td>		<td rowspan="9">			<img src="protected/images/WW6_14.gif" width="6" height="517" alt=""></td>		<td colspan="8">			<img src="protected/images/WW6_15.gif" width="641" height="21" alt=""></td>	</tr>	<tr>		<td colspan="3" height="85" background="protected/images/WW6_16.gif"><div align="center"><?php include("protected/login.php") ?>		<img src="protected/images/WW6_07.gif">		</div></td>		<td colspan="8" rowspan="7" valign="top" background="protected/images/WW6_17.gif"><div align="center"><br><br><font color="#FFFFFF"><?php include("regform.php") ?><br>				</tr>	<tr>		<td colspan="3">			<img src="protected/images/WW6_18.gif" width="153" height="45" alt=""></td>	</tr>	<tr>		<td colspan="3" height="85" background="protected/images/WW6_19.gif"><div align="center"><?php include("protected/memberstats.php") ?></div></td>	</tr>	<tr>		<td colspan="3">			<img src="protected/images/WW6_20.gif" width="153" height="45" alt=""></td>	</tr>	<tr>		<td colspan="3" height="85" background="protected/images/WW6_21.gif"><div align="center">Site			stats here.</div></td>	</tr>	<tr>		<td colspan="3">			<img src="protected/images/WW6_22.gif" width="153" height="45" alt=""></td>	</tr>	<tr>		<td colspan="3" height="85" background="protected/images/WW6_23.gif">		<div align="center">Site stats here.</div></td>	</tr>	<tr>		<td colspan="3">			<img src="protected/images/WW6_24.gif" width="153" height="21" alt=""></td>		<td colspan="8">			<img src="protected/images/WW6_25.gif" width="641" height="21" alt=""></td>	</tr>	<tr>		<td>			<img src="spacer.gif" width="28" height="1" alt=""></td>		<td>			<img src="spacer.gif" width="93" height="1" alt=""></td>		<td>			<img src="spacer.gif" width="32" height="1" alt=""></td>		<td>			<img src="spacer.gif" width="6" height="1" alt=""></td>		<td>			<img src="spacer.gif" width="55" height="1" alt=""></td>		<td>			<img src="spacer.gif" width="93" height="1" alt=""></td>		<td>			<img src="spacer.gif" width="93" height="1" alt=""></td>		<td>			<img src="spacer.gif" width="93" height="1" alt=""></td>		<td>			<img src="spacer.gif" width="93" height="1" alt=""></td>		<td>			<img src="spacer.gif" width="93" height="1" alt=""></td>		<td>			<img src="spacer.gif" width="93" height="1" alt=""></td>		<td>			<img src="spacer.gif" width="28" height="1" alt=""></td>	</tr></table><font size="1" face="Arial">©Duncan Cowan 2006.</font></center><!-- End ImageReady Slices --></body></html>

    and the code for the register script is:

    <html><head><title>Register an Account</title></head><body><?phpif (isset($_POST['submit'])) { // if form has been submitted	/* check they filled in what they supposed to, 	passwords matched, username	isn't already taken, etc. */	if (!$_POST['uname'] | !$_POST['passwd'] | !$_POST['passwd_again'] | !$_POST['email']) {		die('You did not fill in a required field.');	}	// check if username exists in database.	if (!get_magic_quotes_gpc()) {		$_POST['uname'] = addslashes($_POST['uname']);	}	$name_check = $db_object->query("SELECT username FROM users WHERE username = '".$_POST['uname']."'");	if (DB::isError($name_check)) {		die($name_check->getMessage());	}	$name_checkk = $name_check->numRows();	if ($name_checkk != 0) {		die('Sorry, the username: <strong>'.$_POST['uname'].'</strong> is already taken, please pick another one.');	}	// check passwords match	if ($_POST['passwd'] != $_POST['passwd_again']) {		die('Passwords did not match.');	}	// check e-mail format	if (!preg_match("/.*@.*..*/", $_POST['email']) | preg_match("/(<|>)/", $_POST['email'])) {		die('Invalid e-mail address.');	}	// no HTML tags in username, website, location, password	$_POST['uname'] = strip_tags($_POST['uname']);	$_POST['passwd'] = strip_tags($_POST['passwd']);	$_POST['website'] = strip_tags($_POST['website']);	$_POST['location'] = strip_tags($_POST['location']);	// check show_email data	if ($_POST['show_email'] != 0 & $_POST['show_email'] != 1) {		die('Nope');	}	/* the rest of the information is optional, the only thing we need to 	check is if they submitted a website, 	and if so, check the format is ok. */	// now we can add them to the database.	// encrypt password	$_POST['passwd'] = md5($_POST['passwd']);	if (!get_magic_quotes_gpc()) {		$_POST['passwd'] = addslashes($_POST['passwd']);		$_POST['email'] = addslashes($_POST['email']);		$_POST['website'] = addslashes($_POST['website']);		$_POST['location'] = addslashes($_POST['location']);	}	$regdate = date('m d, Y');	$insert = "INSERT INTO users (			username, 			password, 			regdate, 			email,  			location, 			show_email, 			last_login) 			VALUES (			'".$_POST['uname']."', 			'".$_POST['passwd']."', 			'$regdate', 			'".$_POST['email']."', 			'".$_POST['location']."', 			'".$_POST['show_email']."', 			'Never')";	$add_member = $db_object->query($insert);	if (DB::isError($add_member)) {		die($add_member->getMessage());	}	$db_object->disconnect();?><h1>Registered</h1><p>Thank you, your information has been added to the database, you may now <a href="login.php" title="Login">log in</a>.</p><?php} else {	// if form hasn't been submitted?><h1>Register</h1><form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post"><table align="center" border="0" cellspacing="0" cellpadding="3"><tr><td><font color="#FFFFFF">Username*:</td><td><br><input type="text" name="uname" maxlength="40" style="width:150px;height:17px;border:solid 1px black; font-size: 11"></td></tr><br><br><tr><td><font color="#FFFFFF">Password*:</td><td><br><input type="password" name="passwd" maxlength="50" style="width:150px;height:17px;border:solid 1px black; font-size: 11"></td></tr><br><br><tr><td><font color="#FFFFFF">Confirm Password*:</td><td><br><input type="password" name="passwd_again" maxlength="50" style="width:150px;height:17px;border:solid 1px black; font-size: 11"></td></tr><br><br><tr><td><font color="#FFFFFF">E-Mail*:</td><td><br><input type="text" name="email" maxlength="100" style="width:150px;height:17px;border:solid 1px black; font-size: 11"></td></tr><br><br><tr><td><font color="#FFFFFF">Location</td><td><br><input type="text" name="location" maxlength="150" style="width:150px;height:17px;border:solid 1px black; font-size: 11"></td></tr><br><br><tr><td><font color="#FFFFFF">Show E-Mail?</td><td><br><select name="show_email" style="width:100px;height:17px;border:solid 1px black; font-size: 11"><option value="1" selected="selected">Yes</option><option value="0">No</option></select></td></tr><br><br><tr><td colspan="2" align="right"><input type="submit" name="submit" value="Sign Up"></td></tr></table></form><?php}?></body></html>

    the url of the page is; www.wasper-rocker.co.ukcan anyone help?? :)

  5. the code for the site is:

    <?php  require 'protected/db_connect.php';	// database connect script.if ($logged_in == 1) {header('Location: http://www.wasper-rocker.co.uk/protected/world_war_six_-.php');}//Deletes Old Database Entries  $maxtime = time() -600; $sql = mysql_query("DELETE FROM ppl_online WHERE UNIX_TIMESTAMP(activity) < '$maxtime'"); $rows = mysql_affected_rows(); if(!session_is_registered('online')){ 	@mysql_query("INSERT INTO ppl_online (session_id, activity, ip_address, refurl, user_agent) <br>		VALUES ('".session_id()."', now(), '{$_SERVER['REMOTE_ADDR']}', '{$_SERVER['HTTP_REFERER']}', '{$_SERVER['HTTP_USER_AGENT']}')"); 	session_register('online'); } else { 	if ($logged_in == 1){ 		@mysql_query("UPDATE ppl_online SET activity=now(), member='y' WHERE session_id='".session_id()."'"); 	} } if(session_is_registered('online')){		 	@mysql_query("UPDATE ppl_online SET activity=now() WHERE session_id='".session_id()."'"); } ?><html><head><meta http-equiv="Content-Language" content="en-gb"><title>World War Six - Home</title><meta http-equiv="Content-Type" content="text/html; charset=windows-1252"></head><body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"><!-- ImageReady Slices (images/WW6.psd) --><center><font face="Haettenschweiler"><table id="Table_01" width="800" height="631" border="0" cellpadding="0" cellspacing="0">	<tr>		<td colspan="12">			<img src="protected/images/WW6_01.gif" width="800" height="69" alt=""></td>	</tr>	<tr>		<td>			<img src="protected/images/WW6_02.gif" width="28" height="21" alt=""></td>		<td>			<img src="protected/images/WW6_03.gif" width="93" height="21" alt=""></td>		<td colspan="3">			<img src="protected/images/WW6_04.gif" width="93" height="21" alt=""></td>		<td>			<img src="protected/images/WW6_05.gif" width="93" height="21" alt=""></td>		<td>			<img src="protected/images/WW6_06.gif" width="93" height="21" alt=""></td>		<td>			<img src="protected/images/WW6_07.gif" width="93" height="21" alt=""></td>		<td>			<img src="protected/images/WW6_08.gif" width="93" height="21" alt=""></td>		<td>			<img src="protected/images/WW6_09.gif" width="93" height="21" alt=""></td>		<td>			<img src="protected/images/WW6_10.gif" width="93" height="21" alt=""></td>		<td>			<img src="protected/images/WW6_11.gif" width="28" height="21" alt=""></td>	</tr>	<tr>		<td colspan="12">			<img src="protected/images/WW6_12.gif" width="800" height="23" alt=""></td>	</tr>	<tr>		<td colspan="3">			<img src="protected/images/WW6_13.gif" width="153" height="21" alt=""></td>		<td rowspan="9">			<img src="protected/images/WW6_14.gif" width="6" height="517" alt=""></td>		<td colspan="8">			<img src="protected/images/WW6_15.gif" width="641" height="21" alt=""></td>	</tr>	<tr>		<td colspan="3" height="85" background="protected/images/WW6_16.gif"><div align="center"><?php include("protected/login.php") ?>		<img src="protected/images/WW6_07.gif">		</div></td>		<td colspan="8" rowspan="7" valign="top" background="protected/images/WW6_17.gif"><div align="center"><br><br><br>				</tr>	<tr>		<td colspan="3">			<img src="protected/images/WW6_18.gif" width="153" height="45" alt=""></td>	</tr>	<tr>		<td colspan="3" height="85" background="protected/images/WW6_19.gif"><div align="center"><?php include("protected/memberstats.php") ?></div></td>	</tr>	<tr>		<td colspan="3">			<img src="protected/images/WW6_20.gif" width="153" height="45" alt=""></td>	</tr>	<tr>		<td colspan="3" height="85" background="protected/images/WW6_21.gif"><div align="center">Site			stats here.</div></td>	</tr>	<tr>		<td colspan="3">			<img src="protected/images/WW6_22.gif" width="153" height="45" alt=""></td>	</tr>	<tr>		<td colspan="3" height="85" background="protected/images/WW6_23.gif">		<div align="center">Site stats here.</div></td>	</tr>	<tr>		<td colspan="3">			<img src="protected/images/WW6_24.gif" width="153" height="21" alt=""></td>		<td colspan="8">			<img src="protected/images/WW6_25.gif" width="641" height="21" alt=""></td>	</tr>	<tr>		<td>			<img src="spacer.gif" width="28" height="1" alt=""></td>		<td>			<img src="spacer.gif" width="93" height="1" alt=""></td>		<td>			<img src="spacer.gif" width="32" height="1" alt=""></td>		<td>			<img src="spacer.gif" width="6" height="1" alt=""></td>		<td>			<img src="spacer.gif" width="55" height="1" alt=""></td>		<td>			<img src="spacer.gif" width="93" height="1" alt=""></td>		<td>			<img src="spacer.gif" width="93" height="1" alt=""></td>		<td>			<img src="spacer.gif" width="93" height="1" alt=""></td>		<td>			<img src="spacer.gif" width="93" height="1" alt=""></td>		<td>			<img src="spacer.gif" width="93" height="1" alt=""></td>		<td>			<img src="spacer.gif" width="93" height="1" alt=""></td>		<td>			<img src="spacer.gif" width="28" height="1" alt=""></td>	</tr></table><font size="1" face="Arial">©Duncan Cowan 2006.</font></center><!-- End ImageReady Slices --></body></html>

    The code for "protected/memberstats.php" is:

    <? // This file is included into your website // Preferably a MySQL connection has been established already $limit_time = time() - 300; // 5 Minute time out. 60 * 5 = 300 $sql = mysql_query("SELECT * FROM ppl_online WHERE UNIX_TIMESTAMP(activity) >= $limit_time AND member='n' GROUP BY ip_address") or die (mysql_error()); $sql_member = mysql_query("SELECT * FROM ppl_online WHERE UNIX_TIMESTAMP(activity) >= $limit_time AND member='y' GROUP BY ip_address") or die (mysql_error()); $visits = mysql_num_rows($sql); $members = mysql_num_rows($sql_member); echo "People Online:<br />"; echo "Guests Online: $visits<br />"; echo "Members Online: $members<br />"; ?>

    Can you find any errors Please!? :)

  6. HIIs it possible when a user logs in to store a "1" in a "logged in" field in a users table and after 2 minutes it will automatically change the 1 to a 0, but on the pages that are only accessible after log in, every 2 minutes the page will refresh the 1 so that the 1 will last another 2 minutes. This therefor will mean that if the user closes the page then after 2 minutes he will be classed as logged out.

  7. I would like to use php to count how many users there are logged in. I have a script that creates a session file with the user name and password in. How do I count how many session files there are?

  8. Hi I created a custom text box for a login script:

    <form action="<?php echo $_SERVER['PHP_SELF']?>" method="post"><table align="center" border="0" cellspacing="0" cellpadding="3"><tr><td>Username:</td><td><br><input type="text" name="uname" maxlength="40" style="width:190px;height:14px;border:solid 1px black"></td></tr><tr><td>Password:</td><td><br><input type="password" name="passwd" maxlength="60" style="width:190px;height:14px;border:solid 1px black"></td></tr><tr><td colspan="2" align="right"><input type="submit" name="submit" value="Login"></td></tr></table></form>

    But when i run it the text in the text box is to big.Please can someone tell me what is going on?

×
×
  • Create New...