extract() expects first argument to be an array
| From: | Addison Ellis | Date: | Sat, 18 Jan 2003 00:02:02 +0000 |
| Subject: | extract() expects first argument to be an array | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-24922@lists.php.net to get a copy of this message | ||
hello,
i have received the following error message and don't know what to do to correct it. i have tried several things but what i have tried does not work. i will post my code below the error message. thank you for your time. best, addison ellis
Warning: extract() expects first argument to be an array in /users/infoserv/web/register/ca/new_account.php on line 82
<?
include("config.php");
$sql = "SELECT first_name,last_name FROM accounts WHERE email='$email'";$result = mysql_query($sql)
or die("Couldn't execute query 1.");
$row = mysql_fetch_array($result);
extract($row);
echo "
<head><title>New Account Welcome!</title></head>
<h2 align='center' style='margin-top: .7in'>
Welcome $firstName $lastName</h2>\n";
?>
--
Addison Ellis
small independent publishing co.
114 B 29th Avenue North
Nashville, TN 37203
(615) 321-1791
addison@bellsouth.net
info@smipco.com
subsidiaries of small independent publishing co.
info@gloabaldog.com
info@momandpocentral.com