Re: Sorry the attachement was not received!! I put the codes here.

From: Date: Tue, 20 Jan 2004 12:53:22 +0000
Subject: Re: Sorry the attachement was not received!! I put the codes here.
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-175130@lists.php.net to get a copy of this message
In article <003d01c3df53$4829e290$dededede@radwanaladdin>, raladin@emirates.net.ae says... > Just before a minute I sent a message with an attachement.. but the attachement was canceled by > the list!! > > Any way.. these are the codes of the pages : > > > Login.php : > > <?php > > $link = mysql_connect("localhost", "Database username", "Database > password") > or die("Could > not connect: " . mysql_error()); > mysql_select_db("Database name", $link); > > $UserName = $_GET['UserName']; > $Password = $_GET['Password']; > $Serial = $_GET['Serial']; > > $UserName = mysql_escape_string($UserName); > $Password = mysql_escape_string($Password); > $Serial = mysql_escape_string($Serial); > > $user = escape_function($user); > $query1 = "select Serial from accounts where UserName='$UserName' and > Password='$Password'"; > $query2 = "SELECT Random FROM accounts"; > $Random = 'Random' Any chance that a missing ; here might be part of your problem? -- Quod subigo farinam A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing on usenet?

« previous php.general (#175130) next »