On Mon, 20 May 2002 08:57:16 +1200
"PhilipNZ Staff" <[EMAIL PROTECTED]> wrote:

> My code below don't want to insert the code into the database what am I doing wrong?
> 
> <?php
> 
>  $answers="$band, $middlename, $pot";
>  $date=date ("l dS of F Y h:i:s A");
>  
>  $sql = "INSERT INTO `prizeline` (`id`, `email`, `name`, `address`, `answers`, 
>`date`) VALUES ('', 'email', 'name', 'address', 'answers', 'date');";
>     
> $result = mysql_query($sql);
> 
> ?>
> 
 $sql = "INSERT INTO prizeline (id, email, name, address, answers, date) VALUES ('', 
'$email', '$name', '$address', '$answers', '$date')";

echo $sql;

$result=mysql_query($sql) or die (mysql_error());

Kevin

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

Reply via email to