Page 1 of 1

reformat into if/and/esle?

Posted: Sat May 21, 2011 5:51 pm
by hardtime81
Is it possible to change values so the user can not see the source?
example if we used if/and/esle coding with bracets. The coding
looked rock sold but, is visable to the user.

insert into
inout_log values
('', '2011-05-21
19:34:09', '3245671',
'pearls', '5', 'System',
'User', 'Treasurehunt
pearl reward',
'Riptide Ripper')

update
missionstatus set
treasurehuntcount='53'
where

All it needs to say is user recieves rewards
mission status set autoupdate treasure count
progresses foward to 53 user receives 5 pearls.

Any suggestion please foward them via pm mode thanks greatly.

Re: reformat into if/and/esle?

Posted: Sun May 22, 2011 3:29 pm
by Xaleph
Uhm, what`s the problem? I hope you are not outputting your queries..

But yeah, what`s the problem? Because code / source should never be visible to the clients. If it is, you are doing something wrong.

Re: reformat into if/and/esle?

Posted: Wed May 25, 2011 1:29 am
by Jackolantern
If you are getting your code output to the browser, then one of a few different things is happening: A. You don't have a web server installed, or are not using it. You must use a web server to parse PHP code. The browser cannot do it. B. Your web server is not setup to handle the file type you are trying to request. A few distributions of Apache do not come with PHP loaded. You should get WAMP, and only use .php file extensions. C. You have left PHP and entered back into HTML on your page, at which point any additional PHP code will be output to the browser just like it was text. Ensure that your PHP code only appears inside PHP <?php ?> tags, or D. You are using a PHP tag that is not supported in your web server, such as <? ?>. Be sure to only use the best practice PHP tags: <?php ?>.

If none of these help, please post your entire script.