|
From: angek <ang...@ip...> - 2003-02-01 04:25:29
|
Hey James,
Here's another one for you.
When I activate my surveys (either public or private) and then
proceed to take them I get an "[ Error processing survey: Survey not
specified. ]" error message.Closer examination of survey.php reveals
that the "if ($_result = mysql_query($_sql))" on line 24 fails.
mysql_error() returns "NO DATABASE SPECIFIED".
Kon
On Sat, 2003-02-01 at 02:42, James E. Flemer wrote:
> Yep, thanks for the report. I just fixed both in CVS.
>
> -James
>
> On 31 Jan 2003, angek wrote:
>
> > Hey James,
> >
> > Just downloaded your changes and started testing.
> > I've come across a couple of things:
> > 1. finish.inc - line 35 still reads:
> > <?php echo($ESPCONFIG['auto_handler']....
> > should this now be:
> > <?php echo($ESPCONFIG['autopub_url']......
> > 2. When I test a survey I get 2 warnings from espresponse.inc:
> > Warning: Variable passed to reset() is not an array or object .... on
> > line 549
> >
> > Warning: Variable passed to each() is not an array or object ..... on
> > line 557
> >
> > it seems that $result = mysql_query($sql) returns a result identifier
> > therefore the "if ($result) {...." code is executed however the num_rows
> > returned is 0.
> >
> > more as soon as I start testing the save/resume functionality.
> >
> >
> > Kon
> >
> >
> >
> >
> > On Fri, 2003-01-31 at 15:26, James E. Flemer wrote:
> > > I renamed phpESP.ini to phpESP.ini.php. While I was at it,
> > > I cleaned up a bunch of stuff. I moved as much code out of
> > > the ini as possible, so it's mostly just variables now.
> > >
> > > I replaced TRUE/FALSE with true/false.
> > > I replaced DESLASH/XADDSLASHES with _stripslashes/_addslashes.
> > > I changed to require_once(), and removed a bunch of if-defined()'s.
> > >
> > > So now, phpESP can be installed anywhere. No moving or
> > > symlinking needed. All that needs to be edited for almost
> > > all cases is: $ESPCONFIG['base_url'], and database
> > > passwords. How is this done you ask? It is done with a
> > > trick horde and others use: dirname(__FILE__) and relative
> > > paths from there.
> > >
> > > -James
> > >
> > >
> > >
> > > -------------------------------------------------------
> > > This SF.NET email is sponsored by:
> > > SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
> > > http://www.vasoftware.com
> > > _______________________________________________
> > > phpESP-devel mailing list
> > > php...@li...
> > > https://lists.sourceforge.net/lists/listinfo/phpesp-devel
> >
> >
> >
> >
> > -------------------------------------------------------
> > This SF.NET email is sponsored by:
> > SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
> > http://www.vasoftware.com
> > _______________________________________________
> > phpESP-devel mailing list
> > php...@li...
> > https://lists.sourceforge.net/lists/listinfo/phpesp-devel
> >
>
>
>
> -------------------------------------------------------
> This SF.NET email is sponsored by:
> SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
> http://www.vasoftware.com
> _______________________________________________
> phpESP-devel mailing list
> php...@li...
> https://lists.sourceforge.net/lists/listinfo/phpesp-devel
|