I recently upgraded from php 4.2.3 to php 4.3.3 and now some of my code does not work. The follwing is an example of something that doesn't work. I think it may have to do with sessions but I'm not sure. Please help!!
<?
session_start();
session_register("account_number");
include ("the_includo.php");
include ("header.php");
?>
<b><i>Customer Login:</i></b>
<p>
<table border="0" color="blue" cellspacing="0" cellpadding="0" align="left">
<tr>
<td valign=top>
<table border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td align=center>
<?
$connection = mysql_connect("$SQL_SERVER","$SQL_USER","$SQL_PASSWORD") or die ("Unable to connect to MySQL server.");
$db = mysql_select_db("$SQL_DATABASE") or die ("Unable to select requested database.");
for(;😉 {
if($account_number == "" OR $password == "") {
print ("The account number or password you typed in was incorrect. Please try again.<p><a href=login.php>Try Again</a>");
$false = "yes";
break;}
$result = mysql_query ("SELECT * FROM cust WHERE cust_num = '$account_number' AND password = '$password'");
if ($row = mysql_fetch_array($result)) {
print ("You are now logged in.");}
else {
print ("The account number or password you typed in was incorrect. Please try again.<p><a href=login.php>Try Again</a>");
$false = "yes";}
break;}
?>
</td>
</tr>
</table>
</td>
</tr>
</table>
<?
if($false == "yes") {session_destroy();}
?>
<?
include ("footer.php");
?>