Re: db sql issue from var

From: Date: Sun, 26 May 2002 22:15:07 +0000
Subject: Re: db sql issue from var
Groups: php.db 
Request: Send a blank email to php-db+get-19449@lists.php.net to get a copy of this message
Hi Dave, Load the data from the text file into a variable (eg, $fileContents) Then split the file into an array and run every sql statement. The following code should work... Adam $arrSQL = explode(";",$fileContents); for ($i=0;$i<count($arrSQL);$i++){ if ($arrSQL[$i]){ mysql_query($arrSQL[$i]); } }

« previous php.db (#19449) next »