reformat into if/and/esle?

C++, C#, Java, PHP, ect...
Post Reply
User avatar
hardtime81
Posts: 23
Joined: Sun May 09, 2010 11:32 pm

reformat into if/and/esle?

Post 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.
"Its the best of times; its the worst of times!"
Xaleph
Posts: 897
Joined: Mon Feb 07, 2011 2:55 am

Re: reformat into if/and/esle?

Post 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.
User avatar
Jackolantern
Posts: 10891
Joined: Wed Jul 01, 2009 11:00 pm

Re: reformat into if/and/esle?

Post 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.
The indelible lord of tl;dr
Post Reply

Return to “Coding”