On May 11, 2009, at 16:01, "Miller, Terion" <tmil...@springfi.gannett.com > wrote:

The error I get is from my INSERT statement ....
It does insert the records up to C page though...
The problem area:

// Build your INSERT statement here $query = "INSERT into warrants (wid, name, age, warrant, bond, wnumber, crime) VALUES ("; $query .= " '$wid', '$name', '$age', '$warrant', '$bond', '$wnumber', '$crime' )"; $wid = mysql_insert_id(); echo $query; // run query mysql_query($query) or die (mysql_error());

The Error message


Notice: Undefined variable: wid in /var/www/vhosts/getpublished.news- leader.com/httpdocs/Warrants/loopScrape1.php on line 124

Notice: Undefined variable: name in /var/www/vhosts/ getpublished.news-leader.com/httpdocs/Warrants/loopScrape1.php on line 124

Notice: Undefined variable: age in /var/www/vhosts/getpublished.news- leader.com/httpdocs/Warrants/loopScrape1.php on line 124

Notice: Undefined variable: warrant in /var/www/vhosts/ getpublished.news-leader.com/httpdocs/Warrants/loopScrape1.php on line 124

Notice: Undefined variable: bond in /var/www/vhosts/ getpublished.news-leader.com/httpdocs/Warrants/loopScrape1.php on line 124

Notice: Undefined variable: wnumber in /var/www/vhosts/ getpublished.news-leader.com/httpdocs/Warrants/loopScrape1.php on line 124

Notice: Undefined variable: crime in /var/www/vhosts/ getpublished.news-leader.com/httpdocs/Warrants/loopScrape1.php on line 124



On 5/11/09 2:45 PM, "Jônatas Zechim" <zechim....@gmail.com> wrote:




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


Try Imitliazing the variables at the top of the loop to empty strings or zeros

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

Reply via email to