Raised This Month: $ Target: $400
 0% 

[PHP] Login Help


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
platzpatrone
Veteran Member
Join Date: Apr 2007
Location: Germany
Old 10-08-2010 , 21:11   Re: [PHP] Login Help
Reply With Quote #7

and so many open and closing php tags in order they dont needed

PHP Code:
<?php 
session_start
(); 
  
if(!
session_is_registered(username)) 

  
header("location:login.php"); 


include(
"header.php");
include(
"databases.php");
 
echo 
"<body>";
echo 
"<center>";
echo 
"<h1>Login System Information</h1>";

echo 
"<table border='1'> 
    <tr class=\"table_head\"> 
        <th class=\"number\" style=\"min-width:20px;\">#</th> 
        <th>&nbsp; Name &nbsp;</th> 
        <th>&nbsp; UserName &nbsp;</th> 
        <th>&nbsp; Password &nbsp;</th> 
        <th>&nbsp; Status &nbsp;</th> 
    </tr>"

     
    while(
$row mysql_fetch_array($result)) 
    { 
        echo 
"<tr>"
        echo 
"<td class=\"number\">&nbsp;" $row['num'] .  "&nbsp;</td>"
        echo 
"<td class=\"center\">&nbsp;" $row['name'] . "&nbsp;</td>"
        echo 
"<td class=\"center\">&nbsp;" $row['username'] . "&nbsp;</td>"
        echo 
"<td class=\"center\">&nbsp;" $row['password'] . "&nbsp;</td>"
        echo 
"<td class=\"center\">&nbsp;" $row['status'] . "&nbsp;</td>"
         
        echo 
"</tr>"
    } 

echo 
"</table>"

mysql_close($database); 

echo 
"</center>";
echo 
"</body>";
echo 
"</html>";
?>
platzpatrone is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 09:26.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode