Jump to content

Crap coder - need some quick assistance


eaglelegend

Recommended Posts

some more assistance if I may ask...

 

Warning: mysql_pconnect() [function.mysql-pconnect]: Access denied for user 'webredev_USER'@'localhost' (using password: YES) in /home/webredev/public_html/evesecrets/config.php on line 3

 

Warning: mysql_select_db() [function.mysql-select-db]: Access denied for user 'webredev'@'localhost' (using password: NO) in /home/webredev/public_html/evesecrets/config.php on line 4

 

Warning: mysql_select_db() [function.mysql-select-db]: A link to the server could not be established in /home/webredev/public_html/evesecrets/config.php on line 4

 

Warning: mysql_query() [function.mysql-query]: Access denied for user 'webredev'@'localhost' (using password: NO) in /home/webredev/public_html/evesecrets/doregister.php on line 20

 

Warning: mysql_query() [function.mysql-query]: A link to the server could not be established in /home/webredev/public_html/evesecrets/doregister.php on line 20

 

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/webredev/public_html/evesecrets/doregister.php on line 20

 

Warning: mysql_query() [function.mysql-query]: Access denied for user 'webredev'@'localhost' (using password: NO) in /home/webredev/public_html/evesecrets/doregister.php on line 23

 

Warning: mysql_query() [function.mysql-query]: A link to the server could not be established in /home/webredev/public_html/evesecrets/doregister.php on line 23

Cant insert row.

 

Link to comment
Share on other sites

"check password" thanks, that may of been the reason, now one last error...

 

Warning: Cannot modify header information - headers already sent by (output started at /home/webredev/public_html/evesecrets/doregister.php:11) in /home/webredev/public_html/evesecrets/doregister.php on line 26
Cant set cookie!

 

doregister.php:

<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN" "http://www.wapforum.org/DTD/xhtml-mobile10.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Cache-Control" content="no-cache"/>
<meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1" />
<link href="di.css" rel="stylesheet" type="text/css" />
  	<title>Teen Board</title>	   
</head>
<body>

<p><img src="l2.gif" alt="Teen Board" width="125" height="60" /></p>
<p class="style1">Login</p>
<p>
<?
include("config.php");

$u = $_POST['u'];
$p = $_POST['p'];

$check = mysql_num_rows(mysql_query("SELECT * FROM `members` WHERE `username`='$u'"));

if($check==0) {
	$insert = mysql_query("INSERT INTO `members` (`username`, `password`) VALUES('$u', '$p')");

	if($insert) {
 	if(setcookie("Board",$u,time()+3600)) {
		 	print "You have been registered, and we logged you in.<p><a href=\"index.php\">Click here</a> to return.</p>";
		}
		else {
		 	print "Cant set cookie!";
		}
	}
	else {
	 	print "Cant insert row.";
	}
}
else {
	print "User already exists!";
}
?>
</p>

<div id="navigation">
<div class="navItem2">0. 
<a href="index.php" accesskey="0">Home</a></div>
</div>
<p>
<strong>© TeenBoard.mobi 2007</strong>
</p>

</body>
</html>

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.