harambasha — 2010-03-14T10:48:29-04:00 — #1
ok, i'm not an expert in php, but i'm pretty sure that my code is ok, but it just doesn't work as it should...
print "<table border='1'>" ;
print "<tr> <th>Firstname</th> <th>Lastname</th> </tr>";
this code just writes this out:
" ; print " Firstname Lastname ";
i tried with echo also, but that's all i get...
how should i write that code? or is it server's parsing fault?
system — 2010-03-14T11:26:51-04:00 — #2
you fail to run it with PHP
anthonysterling — 2010-03-14T11:29:31-04:00 — #3
You need to surround your code with PHP's opening tags.
harambasha — 2010-03-14T11:32:59-04:00 — #4
i did it...
there is a code around this one.. access to mySQL database and writing out one table in html list... but no error is met until print/echo code...
harambasha — 2010-03-14T11:34:23-04:00 — #5
it looks like a server's parsing error to me, but i don't know what to do then...
or it could be something else?
system — 2010-03-14T11:59:39-04:00 — #6
again: Server can't fail parsing if it didn't even start parsing.
web server with php support must be set up and you must call this file from the server.
harambasha — 2010-03-14T12:27:55-04:00 — #7
damn... it was the extension... it was html automatically from my text editor...
i just tried <? phpinfo() ?> and while saving it, i noticed that... i'm messing with this since last night...
sry for spamming on forum..