I did use sessions_start on all of them, this is what is happening and it is really confusing me, this is the related page. [url=http://www.asicip.com/download.php]http://www.asicip.com/download.php[/url] That is the page you go to, here you click on a link. It takes you to the login page here. http://www.asicip.com/login.php THis is where you login at, you can register, the register form is on that link if you click register, it works, adn it puts the information in the database properly I already tested it out, now when you try and click login, it doesn't do anything, it doesn't even work, it acts like it's not even working, I really really don't understand. You are suppose to be able to login, to get access to those files, I really really do not understand this, and any advice would be greatly appreciated, here is an example, here is the code for the downloads page, with all the links. Below that, is again the code for the page I am talking about, the login page, and I will also put the include page below there. You will see what I mean by it not working. I will also explains how it works, there is a page called download.php, all the links there are suppose to take you to the login.php page, it works perfectly. Then on the logins page, if you don't have a username and password you register, it works, it records your data, here is where the first issue occurs, it sends an email with just your email address, and nothing else, that is the first problem. Then when you are suppose to login, if you get the correct info it changed you over to the download2.php page there you can access all the files, because the links are changed to allow you access to the files, BUt it's not working when I click on the page login, and I try to login nothing happens. Here is all the text The first download page, where you are denied access, it just changes you over the the login page Download 1 Actually the code isn't even important, all it is, is a static page, with a bunch of links taking you to the login page, the login page, is here login page [code]<?php session_start(); require_once("incs/conn.inc.php"); if(isset($_POST['submit'])) { $sql = "select id_administrator,superuser from administrators where username = '".$_POST['username']."' and password = '".$_POST['password']."'"; $rez = mysql_query($sql) or die (mysql_error()); if(mysql_num_rows($rez) > 0){ $row = mysql_fetch_row($rez) or die("The mysql fetch row is not working"); session_register("administrator_portal") or die("Session register issues"); $_SESSION['administrator_portal'] = $row[0]; $_SESSION['superuser'] = $row[1]; $sql="update `administrators` set `LastLoginAdmin`=Now() where id_administrator=".$_SESSION['administrator_portal']; $result=mysql_query($sql,$conn); header("Location: download2.php"); exit; }else{ $msg = "The username or password are wrong."; } } if($_GET['erroare'] == "nr"){ $msg = "Ne pare rau insa sesiunea dumneavostra a expirat.<br> You must log on."; } ?> <html> <head> <LINK href="style.css" rel=stylesheet type=text/css> <title>ASIC IP</title> </head> <body bgcolor="#9aa8c7" topmargin="0" leftmargin="0" marginwidth="0" marginheight="0"> <script type="text/javascript"> if (parseInt(navigator.appVersion.substring(0,1))>=3) { // 3.0 or greater. ch1_on = new Image(); ch1_off = new Image(); ch2_on = new Image(); ch2_off = new Image(); ch3_on = new Image(); ch3_off = new Image(); ch4_on = new Image(); ch4_off = new Image(); ch5_on = new Image(); ch5_off = new Image(); ch6_on = new Image(); ch6_off = new Image(); ch7_on = new Image(); ch7_off = new Image(); ch8_on = new Image(); ch8_off = new Image(); ch1_on.src = 'images/b_homeap.gif'; ch1_off.src = 'images/b_home.gif'; ch2_on.src = 'images/b_aboutap.gif'; ch2_off.src = 'images/b_about.gif'; ch3_on.src = 'images/b_infoap.gif'; ch3_off.src = 'images/b_info.gif'; ch4_on.src = 'images/b_downloadap.gif'; ch4_off.src = 'images/b_download.gif'; ch5_on.src = 'images/b_careerap.gif'; ch5_off.src = 'images/b_career.gif'; ch6_on.src = 'images/b_teamap.gif'; ch6_off.src = 'images/b_team.gif'; ch7_on.src = 'images/b_pressap.gif'; ch7_off.src = 'images/b_press.gif'; ch8_on.src = 'images/b_contactap.gif'; ch8_off.src = 'images/b_contact.gif'; } function activate(image) { if (parseInt(navigator.appVersion.substring(0,1))>=3) { // 3.0 or greater. imagesrc = eval(image + '_on.src'); document[image].src = imagesrc; } } function deactivate(image) { if (parseInt(navigator.appVersion.substring(0,1))>=3) { // 3.0 or greater. imagesrc = eval(image + "_off.src"); document[image].src = imagesrc; } } </script> <center> <table border="0" cellpadding="0" cellspacing="0" width="100%"> <tr> <td align="right" valign="top"> </td> <td align="center"> <table border="0" cellpadding="0" cellspacing="0" bgcolor="#000000" width="700"> <tr> <td bgcolor="#9aa8c7"> <? include("incs/top_menu.inc.php"); ?> <table border="0" cellpadding="0" cellspacing="0" width="700" bgcolor="#FFFFFF"> <tr><td> <table border="0" cellpadding="0" cellspacing="0" width="700"> <tr> <td width="6"> </td> <td width="164" valign="top" bgcolor="#f1f1f1"> <table border="0" cellpadding="0" cellspacing="0"> <tr><td width="6"></td><td height="24"> <font class="titlu2">Downloads : :</font> </td></tr> </table> <img src="images/p.gif" width="164" height="1" border="0"><br> <table border="0" cellpadding="0" cellspacing="0"> <tr><td width="10" height="20"></td><td> <a href="download.php" class="n">Downloads</a> </td></tr> </table> <img src="images/p.gif" width="164" height="1" border="0"><br> <table border="0" cellpadding="0" cellspacing="0"> <tr><td width="10" height="20"></td><td> <a href="login.php" class="n">Login</a> </td></tr> </table> <img src="images/p.gif" width="164" height="1" border="0"><br> <table border="0" cellpadding="0" cellspacing="0"> <tr><td width="10" height="20"></td><td> <a href="register.php" class="n">Register</a> </td></tr> </table> <img src="images/p.gif" width="164" height="1" border="0"><br> <br> </td> <td width="10"> </td> <td width="510" valign="top"> <img src="images/linie.gif"><br> <br> <font class="titlu">Login</font> <br><br> <img src="images/linie.gif"><br> <br> <form name="form1" method="post" action="login.php"> <table border="0" cellspacing="0" cellpadding="0" width="200" height="96"> <tr><td> <table width="200" border="0" cellspacing="0" cellpadding="0"> <tr><td height="34" colspan="3"> </td></tr> <tr><td width="140"> <table border="0" cellspacing="0" cellpadding="0"> <tr> <td width="16"> </td> <td valign="top"><input type="text" name="username" style="width: 150;"></td> <td width="14"> </td> </tr> <tr> <td width="16" height="14"> </td> <td valign="top"><input type="password" name="password" style="width: 150;"></td> <td width="14"> </td> </tr> </table> </td> <td><input type="submit" name="submit" value="Login" class="button"></td></tr> </table> </td></tr> </table> </form> <br> <a href="register.php">Click here to register</a> <table border="0" cellpadding="0" cellspacing="0"> <tr> <td valign="top"> </tr> </table> <br><br> <img src="images/linie.gif"><br> <table border="0" cellpadding="0" cellspacing="0"> <tr><td><img src="images/sigla_jos.gif"><br></td> <td class="stitlu"> Trademarks/Copyright ©2006 ASIC IP. All Rights Reserved.</td></tr> </table> <img src="images/linie.gif"><br> <br> </td> <td width="10"> </td> </tr> </table> </td></tr> </table> </td> </tr> </table> </td> <td align="left" valign="top"> </td> </td> </tr> </table> </center> </body> </html>[/code] Here is the included file, this only does the connection, it just connects to the database that is it. [code]<?php $conn = mysql_connect ("mysql", "####", "####"); $select = mysql_select_db("ip"); ?>[/code] mysql is required instead of local host, it's something to do with the way yahoo sets up there stuff. Here is the new download page you should get access too. [code]<?php session_start(); include("incs/auth.inc.php"); ?> <html> <head> <LINK href="style.css" rel=stylesheet type=text/css> <title>ASIC IP</title> </head> <body bgcolor="#9aa8c7" topmargin="0" leftmargin="0" marginwidth="0" marginheight="0"> <script type="text/javascript"> <!-- if (parseInt(navigator.appVersion.substring(0,1))>=3) { // 3.0 or greater. ch1_on = new Image(); ch1_off = new Image(); ch2_on = new Image(); ch2_off = new Image(); ch3_on = new Image(); ch3_off = new Image(); ch4_on = new Image(); ch4_off = new Image(); ch5_on = new Image(); ch5_off = new Image(); ch6_on = new Image(); ch6_off = new Image(); ch7_on = new Image(); ch7_off = new Image(); ch8_on = new Image(); ch8_off = new Image(); ch1_on.src = 'images/b_homeap.gif'; ch1_off.src = 'images/b_home.gif'; ch2_on.src = 'images/b_aboutap.gif'; ch2_off.src = 'images/b_about.gif'; ch3_on.src = 'images/b_infoap.gif'; ch3_off.src = 'images/b_info.gif'; ch4_on.src = 'images/b_downloadap.gif'; ch4_off.src = 'images/b_download.gif'; ch5_on.src = 'images/b_careerap.gif'; ch5_off.src = 'images/b_career.gif'; ch6_on.src = 'images/b_teamap.gif'; ch6_off.src = 'images/b_team.gif'; ch7_on.src = 'images/b_pressap.gif'; ch7_off.src = 'images/b_press.gif'; ch8_on.src = 'images/b_contactap.gif'; ch8_off.src = 'images/b_contact.gif'; } function activate(image) { if (parseInt(navigator.appVersion.substring(0,1))>=3) { // 3.0 or greater. imagesrc = eval(image + '_on.src'); document[image].src = imagesrc; } } function deactivate(image) { if (parseInt(navigator.appVersion.substring(0,1))>=3) { // 3.0 or greater. imagesrc = eval(image + "_off.src"); document[image].src = imagesrc; } } --> </script> <center> <table border="0" cellpadding="0" cellspacing="0" width="100%"> <tr> <td align="right" valign="top"> </td> <td align="center"> <table border="0" cellpadding="0" cellspacing="0" bgcolor="#000000" width="700"> <tr> <td bgcolor="#9aa8c7"> <? include("incs/top_menu.inc.php"); ?> <table border="0" cellpadding="0" cellspacing="0" width="700" bgcolor="#FFFFFF"> <tr><td> <table border="0" cellpadding="0" cellspacing="0" width="700"> <tr> <td width="6"> </td> <td width="164" valign="top" bgcolor="#f1f1f1"> <table border="0" cellpadding="0" cellspacing="0"> <tr><td width="6"></td><td height="24"> <font class="titlu2">Downloads : :</font> </td></tr> </table> <img src="images/p.gif" width="164" height="1" border="0"><br> <table border="0" cellpadding="0" cellspacing="0"> <tr><td width="10" height="20"></td><td> <a href="download2.php" class="n">Downloads</a> </td></tr> </table> <img src="images/p.gif" width="164" height="1" border="0"><br> <br> </td> <td width="10"> </td> <td width="510" valign="top"> <img src="images/linie.gif"><br> <br> <font class="titlu">Downloads</font> <br><br> <img src="images/linie.gif"><br> <br> <table border="0" cellpadding="0" cellspacing="0"> <tr> <td valign="top"> <img src="images/rosu.gif" border="0"> <a href="dw/ASIC IP 100mA Boost.pdf" class="n" target="_blank">ASIC IP 100mA Boost</a> <br><br> <img src="images/rosu.gif" border="0"> <a href="dw/ASIC IP Adair 100b.pdf" class="n" target="_blank">ASIC IP Adair 100b</a> <br><br> <img src="images/rosu.gif" border="0"> <a href="dw/ASIC IP Adair 802.11 and network tester (UBT).pdf" class="n" target="_blank">ASIC IP Adair 802.11 and network tester (UBT)</a> <br> <img src="images/rosu.gif" border="0"> <a href="dw/ASIC IP Adair 900 and 2.4G.pdf" class="n" target="_blank">ASIC IP Adair 900 and 2.4G</a> <br><br> <img src="images/rosu.gif" border="0"> <a href="dw/ASIC IP Antenna Modules.pdf" class="n" target="_blank">ASIC IP Antenna Modules</a> <br><br> <img src="images/rosu.gif" border="0"> <a href="dw/ASIC IP Bandgap Ref.pdf" class="n" target="_blank">ASIC IP Bandgap Ref</a> <br><br> <img src="images/rosu.gif" border="0"> <a href="dw/ASIC IP Boost PS0100.pdf" class="n" target="_blank">ASIC IP Boost PS0100</a> <br><br> <img src="images/rosu.gif" border="0"> <a href="dw/ASIC IP Controller board.pdf" class="n" target="_blank">ASIC IP Controller board</a> <br><br> <img src="images/rosu.gif" border="0"> <a href="dw/ASIC IP LDO 150mA.pdf" class="n" target="_blank">ASIC IP LDO 150mA</a> <br><br> <img src="images/rosu.gif" border="0"> <a href="dw/ASIC IP LDO 300mA.pdf" class="n" target="_blank">ASIC IP LDO 300mA</a> <br><br> <img src="images/rosu.gif" border="0"> <a href="dw/ASIC IP LDO 50mA.pdf" class="n" target="_blank">ASIC IP LDO 50mA</a> <br><br> <img src="images/rosu.gif" border="0"> <a href="dw/ASIC IP R2400 Radio Module.pdf" class="n" target="_blank">ASIC IP R2400 Radio Module</a> <br><br> <img src="images/rosu.gif" border="0"> <a href="dw/ASIC IP RF Modules.pdf" class="n" target="_blank">ASIC IP RF Modules</a> <br><br> <img src="images/rosu.gif" border="0"> <a href="dw/IP Intranet Supplier Station.pdf" class="n" target="_blank">IP Intranet Supplier Station</a> <br><br> <img src="images/rosu.gif" border="0"> <a href="dw/IP Provider Station.pdf" class="n" target="_blank">IP Provider Station</a> <br><br> <img src="images/rosu.gif" border="0"> <a href="dw/IP Reuse Station.pdf" class="n" target="_blank">IP Reuse Station</a> <br><br> <img src="images/rosu.gif" border="0"> <a href="dw/IP SoC Collaborative Platform.pdf" class="n" target="_blank">IP SoC Collaborative Platform</a> <br><br> </tr> </table> <br><br> <img src="images/linie.gif"><br> <table border="0" cellpadding="0" cellspacing="0"> <tr><td><img src="images/sigla_jos.gif"><br></td> <td class="stitlu"> Trademarks/Copyright ©2006 ASIC IP. All Rights Reserved.</td></tr> </table> <img src="images/linie.gif"><br> <br> </td> <td width="10"> </td> </tr> </table> </td></tr> </table> </td> </tr> </table> </td> <td align="left" valign="top"> </td> </td> </tr> </table> </center> </body> </html>[/code] See I did not do this website, someone else did the whole thing, I came in and fixed some things because he didn't finish it, I think it's shit it's done in tables, the programming is sometimes pointless. I can't redo the whole site, because I am fixing a few issues for just a few hundred. I was wondering what to do about this, I have been trying, I have done everything I can think of, mysql_error calls, die, and everything else, I have been debugging for 3 days, and I feel it's probably something simple, can anyone help me out with that. Thanks