Re: Flummoxed!

From: Date: Tue, 13 Jun 2000 03:01:27 +0000
Subject: Re: Flummoxed!
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-1684@lists.php.net to get a copy of this message
And what is in your web server's error_log when you get these? On Mon, 12 Jun 2000, Charlie Llewellin wrote: > Hello fellow php-ers! > > I am gazumped, bamboozled, flummoxed! > > I upgraded to php 4 over the weekend, with concomitant increases in speed, > etc, but, some of my scripts don't work - I keep getting "document contains > no data" errors. > > I am looking for input from a form (which uploads local files to a mysql > database) but anything after the first if statement in the //import tables > section below results in the error above. That is, if $categorynamesload is > checked, I get a result. Adding similar if clauses below this one and > checking similar checkboxes gives the error. If $categorynamesload is not > checked it won't print "yes" or show the form, all I get is the error. > I am going crazy trying to figure this out! Any help so much appreciated! > > here is the code... > > header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); > header("Last-Modified: " . gmdate("D, d < Y H:i:s") . "GMT"); > header("Cache-Control: no-cache, must-revalidate"); > header("Pragma: no-cache"); > > include("config.inc"); > > ?> > <html> > <head> > <title>Load Tables into Advertisers Database</title> > </head> > <body bgcolor="#ffffff"> > <? > if (!isset($submit)){ > show_form(); > } elseif ($submit=="Import"){ > > // import tables if statements > if ($categorynamesload=="yes"){ > if ($categorynamesfile=="none"){ > $error="You asked to load new category names but did not > specify a file<BR>"; > include("error.inc"); > exit(); > } > if ($clearcategorynames=="yes"){ > emptytable('categorynames'); > } > $fields="id,category"; > > loadtable('categorynames',$categorynamesfile,$fields,'\t','\r'); > } > > > print ("yes"); > > > show_form(); > include("success.inc"); > } else { > > print ("<p>Something ain't right!</p>\n"); > > } > > exit(); > ?> > </body> > </html> > > >

« previous php.general (#1684) next »