<snip>
>$query = "SELECT Serial, Password from accounts where
UserName='$UserName'";
>$result = mysql_query($query) or die("Query errort: " . mysql_error());
>$row = mysql_fetch_row($result) or die("User Not found: " . mysql_error());

mysql_fetch_row only pulls data one cell at a time so you would need to call
$row[0] twice to get the two cells before calling the next row.


>$Serial = htmlspecialchars($row[0]);
>
>
mysql_select_db is for selecting the database and NOT the table, the
SELECT statement must be something like this: "select SOMETHING from
TABLE where WHERE_CLAUSE"

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to