PHP 5.3, MySQL 5, Apache 2.2, Windows 7
Easiest is to look at my website, abstuffies.com. I am trying to set up a user authorization thing using a free script--but I am coming across the same issue despite having tried numerous different scripts: the code begins with <?php naturally, but the very next angle bracket in the script, be in an html code or a greater than/less than symbol, immediately thereafter the code displays on the web page. The very next angle bracket it comes to in the script, it stops displaying the code--and the very next angle bracket it starts to display the script on the web page again! wtf is going on? i have spent 20 hours trying to either find a script that works or trying to figure out wtf in the php.ini or httpd.conf could be causing this. All 3 have been added to the path.
I am hosting this on my own computer using dyndys.
I'll post the issue of being unable to connect to the db later (call to an undefined function, mysql_connect...)
Here is part of the actual script--enuff for you to see on the website what is displaying from the script (it starts to display after the less than 0 sign and stops displaying after the left angle bracket that encloses the ul---then starts to display again after the next angle bracket and so on... ):
</head>
<body>
<?php
if( isset($_SESSION['ERRMSG_ARR']) && is_array($_SESSION['ERRMSG_ARR']) && count($_SESSION['ERRMSG_ARR']) > 0 ) {
echo '<ul class="err">';
foreach($_SESSION['ERRMSG_ARR'] as $msg) {
echo '<li>',$msg,'</li>';
}
echo '</ul>';
unset($_SESSION['ERRMSG_ARR']);
}
?>
<form id="loginForm" name="loginForm" method="post" action="register-exec.php">
<table width="300" border="0" align="center" cellpadding="2" cellspacing="0">
<tr>
<th>First Name </th>
<td><input name="fname" type="text" class="textfield" id="fname" /></td>