Re: RES: [PHP] CURL problems still

From: Date: Mon, 11 May 2009 20:45:44 +0000
Subject: Re: RES: [PHP] CURL problems still
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-292463@lists.php.net to get a copy of this message
On May 11, 2009, at 16:01, "Miller, Terion" <tmiller@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.php@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

« previous php.general (#292463) next »