CodeCharge Studio
search Register Login  

Web Reports

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

YesSoftware Forums -> CodeCharge Studio -> General/Other

 No data !

Print topic Send  topic

Author Message
valueweb

Posts: 8
Posted: 06/05/2006, 10:01 AM

Brand new user trialling CC3.

Have set up a simple application to test. Not using a local server at present, just uploading to remote server linux/mysql/php.

Mysql DB already set up and contains data. Connection in CC3 seems to work as tables found ok. When I visit page on web, I see HTML and list grid but no data is being found ?

Obviously doing/not doing something stupid. Any ideas anyone...simple answers preferred !!

View profile  Send private message
peterr


Posts: 5971
Posted: 06/05/2006, 11:07 AM

Maybe you are opening an .html page, instead of .asp or .php?

_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com
View profile  Send private message
valueweb

Posts: 8
Posted: 06/05/2006, 11:38 AM

If I try running index.php I get

Parse error: parse error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /home/sites/neville-haynes.co.uk/public_html/remax/index.php on line 17
View profile  Send private message
peterr


Posts: 5971
Posted: 06/05/2006, 12:16 PM

That's better. Please don't open .html pages.
As for PHP error, you may need to specify your PHP version in Project Settings -> Server Script -> PHP Version.
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com
View profile  Send private message
DonB
Posted: 06/05/2006, 7:52 PM

It would help to show us what line 17 is (and a few before and after that).
This is in code that SHOULD be all CCS-generated, but the error suggests a
missing "}" like (perhaps) a function improperly terminated. Or it may be a
mismatch of quotes for string delimiters. Given that low-valued line
number, this probably in in the 'include' area, so maybe the path to an
include file is messed up somehow.

--
DonB

http://www.gotodon.com/ccbth


"valueweb" <valueweb@forum.codecharge> wrote in message
news:244847a1882a33@news.codecharge.com...
> If I try running index.php I get
>
> Parse error: parse error, unexpected T_STRING, expecting T_OLD_FUNCTION or
> T_FUNCTION or T_VAR or '}' in
> /home/sites/neville-haynes.co.uk/public_html/remax/index.php on line 17
>
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.codecharge.com/
>

valueweb

Posts: 8
Posted: 06/06/2006, 12:36 AM

Here goes with the code from index.php


<?php
//Include Common Files @1-FFB24655
define("RelativePath", ".");
define("PathToCurrentPage", "/");
define("FileName", "index.php");
include(RelativePath . "/Common.php");
include(RelativePath . "/Template.php");
include(RelativePath . "/Sorter.php");
include(RelativePath . "/Navigator.php");
//End Include Common Files

class clsRecordpropertySearch { //propertySearch Class @3-172019F7

//Variables @3-CD05146A

// Public variables
public $ComponentType = "Record";
public $ComponentName;
public $Parent;
public $HTMLFormAction;
public $PressedButton;
public $Errors;
public $ErrorBlock;
public $FormSubmitted;
public $FormEnctype;
public $Visible;
public $IsEmpty;

public $CCSEvents = "";
public $CCSEventResult;

public $RelativePath = "";

public $InsertAllowed = false;
public $UpdateAllowed = false;
public $DeleteAllowed = false;
public $ReadAllowed = false;
public $EditMode = false;
public $ds;
public $DataSource;
public $ValidatingControls;
public $Controls;

// Class variables
//End Variables

//Class_Initialize Event @3-73272BC2
function clsRecordpropertySearch($RelativePath, & $Parent)
{

global $FileName;
global $CCSLocales;
View profile  Send private message
valueweb

Posts: 8
Posted: 06/06/2006, 3:53 AM

Now resolved ! It seems that the PHP version number was incorrectly set.

Cheers.
View profile  Send private message

Add new topic Subscribe to topic   


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

Internet Database

Visually create Web enabled database applications in minutes.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


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