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 -> GotoCode Archive

 Code syntax: $ and spaces

Print topic Send  topic

Author Message
elipsett
Posted: 01/29/2003, 9:12 PM

Sorry for a rather basic question here...

A lot of examples seems to use $ at the beginning of table or field names, but other (very similar) examples do not. Does this $ have any meaning? Is there any information in the CCS manual or helpfile somewhere explaining whether it might be needed or not? Ex: is user_id equivalent to $user_id when used in statements?

Second question: in many examples there are spaces inside single or double quotes, along with the name of a table or field. Can I safely assume that spaces are ignored in parsing the code? Ex: is "user_id" be identical to
" user_id" when executing a statement?

Is code syntax in CCS in accordance with anything in particular? SQL, PHP, whatever? So that a reference book on whatever that is might help explain some of these discrepancies?

Thanks.
Michael Mikkelsen
Posted: 01/29/2003, 11:11 PM

Code Charge Studio(CCS) can generate code in a number languages including ASP (Active Server Pages/VBScript) and PHP. When you create custom code to go along with the code the CCS generates or modify the code that CCS generates, you should use in the same scripting langauage that you have selected CSS to use for your particular web server.
When you see examples, they may be in PHP or they may be in ASP or they could even be in another language. Examples in different languages may be exactly the same or they may be slightly different.
In PHP all variable names begin with a $. In ASP variable names do not begin with a $ and in some small exaples the $ may be the only difference.

About your second question, spaces inside of quotes are not generally ignored. Your example doesn't really give me enough information to understand what you mean be spaces being ignored. Sometimes is depends on what you are doing with the string. If you print the string into an HTML page multiple spaces will be ignored for example.

PHP has very good documentation.
Here are links to the "code syntex" for PHP and ASP:

PHP Documentation
http://www.php.net/docs.php

Active Server Pages Guide
http://msdn.microsoft.com/library/default.asp?url=/libr...sp/aspguide.asp


Michael Mikkelsen
mike.m@pobox.com
elipsett
Posted: 01/30/2003, 3:21 AM

Thank you, Michael.

I gathered this was supposed to be PHP, since I had selected PHP as my "code of choice." Unfortunately, several examples in the manual and tutorial use the $ mark in different ways, indicating that it might not be the same as the PHP variable symbol.

Your explanation is very clear. Is there a similar explanation somewhere in the CCS documentation? I was unable to find one...

Thanks.

   


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

PHP Reports

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

Home   |    Search   |    Members   |    Register   |    Login


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