On Thursday 26 June 2003 11:20, Ron Clark wrote:

> I have a php script that reads a flat text file with fields seperated by a
> space. I explode them into an array just fine, but when I try then to load
> that array into a mysql database, it doesn't work. Here is my script:
>
> for ($i=0; $i<$number_of_alerts; $i++) {
>         // Split each line
>         $line = explode(" ", $ipfwlog[$i]);
>
>         $line[1] = intval($line[1]);
>
> $IPFWsql = "INSERT INTO Firewall_Logs (month, date, time, fw_name, kernel,
> fw_engine, rule_number, action, protocol, src
> $results = mysql_query($IPFWsql) or die ("Could not execute query");
>
> }
>
> Any ideas why this does not work? I am completely stuck.

What makes you think it doesn't work? IOW what happens?

-- 
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
------------------------------------------
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
------------------------------------------

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

Reply via email to