CodeCharge Studio
search Register Login  

Visual Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> Archive -> CodeCharge.Discussion

 V2b5 php4 templates - GRID form (BUG)

Print topic Send  topic

Author Message
codecharge.com
Posted: 09/03/2001, 1:01 PM

Attempted to do a links app on a PHP/MySQL/Apache server.

1: downloaded gotocode example, ( no CCS file). Patched common and added
myocbd.inc
----- URL select works as expected (was compiled with CodeCharge
v.1.1.18)

2: working from examples/links, compiled for php4/Templates, Mysql
----- URL select grid IS ONE ROW OFF -- HREF is for line BELOW (next
record).

3: Give. up build my own from scratch. Very simple db id/name/url
--- url field shows fine as a label, but one row off when used as a URL

3: Attempt perl5 Example version. CC refuses to compile it for UNIX
Win style files and perl.exe Shebang line in code. (seperate bug
obviously)

Examined v1.1.8 and v2.0 php code grid form "recent" . It appears that in
2.0:

$next_record = $db->next_record();
is executed after the FLD variables have been set, but before SHOW event.

The SHOW event then trys to pull/display the exact same data from the now
incremented (AND WRONG) data record.

*** Is this not a bug?

Version 1.1.8 produced different code and used

} while($iCounter < $RecordsPerPage &&$db->next_record());

Executed AFTER the fields have been set/displayed.


QUICK FIX:

simply moving " $next_record = $db->next_record(); " below the show event
takes care of it.

The ++$iCounter statement has already been moved there.




Dave Heller



   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Web Database

Join thousands of Web developers who build Web applications with minimal coding.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.