php echo not working

its not even posting the echo. { well i hv been writing the code on notepad++ and uploading it by pasting the code in kompozer. I broken my post method once that I set post_max_size the same with upload_max_filesize. is what i am doing wrong? Having read through it a few times I think I now understand the problem I have encountered - basically having HTML in a php file works whereas having php lines in a HTML files does not. thank you my friend thAT is fantastic advice. Start new topic; Recommended Posts. look at my code if it helps: mysql_connect("localhost", "root", "123456") or die("Connection Failed"); mysql_select_db("man_utd")or die("Connection Failed"); $query = "select * from members where username = 'burns'"; while ($line = mysql_fetch_array($result, MYSQL_ASSOC)) {, , , , , , . I’m guessing he doesnt have display errors enabled in his test environment. I think that post_max_size must less than upload_max_filesize. and secondly i am using notepad++. Php files must have a .php extension and start with the first echo in my code works but the one embedded inside the html code prints nothing to the page. This page would generate a WPSE; PHP would choke as soon as it encountered the form tag (UNEXPECTED T_STRING). i do not understand something, do i have to actually install php to act use it? hope i can get your help. after writing the code, i just copy the code and paste it in kompozer. Please understand the code before you start to code it. Input tag on the second-to-last last line is missing it’s >. gussy81, May 29, 2011 in PHP Coding Help. thanks for the spot on the table closing tag. all there is in this particular file? hi guys i am newbie. Your missing a
Value2Value3Value4Value5
tag, but it should work. Your problem is that you're using a while loop to define your array, and not just defining it.

When i post say this: when i post a simple php echo code, it is working perfectly!!! echo ‘something’; $lastname = S_POST[‘lastname’]; and no i did not do any installation. Pls help. Tip: The echo() function is slightly faster than print(). Or are these three lines just a part of it?

Right, so… doesnt immediately look like anything else is wrong… shift that ?> up to above the
tag, and see if that comes out the way you’d like. Thank you very very much to you guys!!!

… so if the OP looked at the source code of the generated web page, they would see the ‘broken’ html … I guess. PHP Freaks They should see nothing.

I am pleased you managed to solve your problem. $database = mssql_select_db($db,$connect) or die(‘Unable to connect to selected database’); if(isset ($_POST([‘submit’]))) So, the while loop continues until mysql_fetch_array() returns FALSE.
In fact from the echo code i posted above, the same thing happens, only ?> shows. $host = ‘AAAAAA’;

pls advice, So apparantly everything is ok, and the problem should be your code. Tested with PHP 5.3.3 in RHEL 6.0. Note: The echo() function is not actually a function, so you are not required to use parentheses with it. Password :
ECHO does not work in php; If this is your first visit, be sure to check out the FAQ by clicking the link above.