Your first problem is, as I said, caused by literal double quotes appearing inside of a string that you used double quotes to delimit. Either switch to single quotes, escape all of the literal double quotes (e.g. put a "\" backslash in front of them), or simply drop out of PHP mode. As for that last option, I simply mean doing something like this:
<?php
if(something_interesting()) {
// here goes some HTML:
?>
<marquee><blink><font color="pink">Welcome to my site!!!1!1!</font></blink></marquee>
<?php
}
lotuszen wrote:The session code doesn't seems to be a problem
Well of course not - you've got a parse error right now, which means none of your code is going to be executed at all. 🙂
However, unless 'client/dbconnect.php' calls [man]session_start/man, then your next problem will be with your session code... or lack thereof, since without calling [man]session_start/man first there won't be a session at all.