Config File Help!

Post here your questions about Actionscript and Java server side extensions development.

Moderators: Lapo, Bax

Post Reply
menachemt
Posts: 28
Joined: 22 Jun 2012, 13:56

Config File Help!

Post by menachemt »

Hello. I was wondering, can someone give me an example of what I can change this to, and how it would be read by the computer? I am trying to change this line: <TestSQL><![CDATA[SELECT COUNT(*) FROM contacts]]></TestSQL> I keep getting an error when I change it. What words do I have to keep in it? What can I change COUNT to? This is probably a silly question but I am still new to this. Thanks!
User avatar
rjgtav
Posts: 2813
Joined: 19 Apr 2009, 11:31
Location: Lisbon, Portugal

Re: Config File Help!

Post by rjgtav »

Hello. You can edit it to any SQL statement you want. You can try a simple SELECT * FROM contacts, which will return all the db's info, not only a count. You can find on the web dozens of SQL statement examples.
Skills: SFS Pro, SFS2X, AS2.0/AS3.0, Java, HTML5/CSS3/JS, C#
Portfolio: https://rjgtav.wordpress.com/
SFS Tutorials: http://sfs-tutor.blogspot.com/ - Discontinued. Some examples may be bugged.
menachemt
Posts: 28
Joined: 22 Jun 2012, 13:56

Re: Config File Help!

Post by menachemt »

Which one is a good example? <TestSQL>SELCET * FROM contacts</TestSQL> or <TestSQL><![CDATA[SELECT * FROM contacts]]></TestSQL>
User avatar
rjgtav
Posts: 2813
Joined: 19 Apr 2009, 11:31
Location: Lisbon, Portugal

Re: Config File Help!

Post by rjgtav »

The 2nd one. You have to enter the SQL statement inside the CDATA[]
Skills: SFS Pro, SFS2X, AS2.0/AS3.0, Java, HTML5/CSS3/JS, C#
Portfolio: https://rjgtav.wordpress.com/
SFS Tutorials: http://sfs-tutor.blogspot.com/ - Discontinued. Some examples may be bugged.
menachemt
Posts: 28
Joined: 22 Jun 2012, 13:56

Re: Config File Help!

Post by menachemt »

Thanks! I guess I have to check my database connection to see if its the problem. Thanks once again!
Post Reply