Skip to content

Tag: echo

php echo statement fails to execute

I am trying display data from mysql database from within an echo statement, but it crashes the webpage. I have tried many different ways to do the same, but it still fails every time here is the code. Look at the line where I say “this is the offending line.” As soon as I remove that line, everyth…

PHP function working differently for return and echo. Why?

By using the following class: and Calling the function, by the following code, it works fine. But if in the SafeGuardInput class if I replace echo $finaloutput; with return $finaloutput; and then echo $forminput; on the index.php page. It DOES NOT WORK. Please provide a solution. Answer You can’t return…

php-echo doesn’t stop after semicolon

this is a noob question.A very big noob question. I’m trying echo something,using notepad++ to code. But what I get is this: What am I doing wrong? Answer You are getting this result because you are running from Notepad++ Run -> Launch in Browser. This is wrong. Use any web server to make it work. It…