Webmaster Forum

Go Back   Webmaster Forum > Web Development > Coding Forum

Coding Forum Problems with your code? Discuss coding issues, including JavaScript, PHP & MySQL, HTML & CSS, Flash & ActionScript, and more.


 
 
LinkBack Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old 02-09-2004, 08:20 PM   #1 (permalink)
v7n Mentor
 
Izzmo's Avatar
 
Join Date: 11-01-03
Location: Kansas City
Posts: 1,338
iTrader: 0 / 0%
Latest Blog:
Starting p90x today

Izzmo is a highly respected web proIzzmo is a highly respected web proIzzmo is a highly respected web proIzzmo is a highly respected web proIzzmo is a highly respected web proIzzmo is a highly respected web proIzzmo is a highly respected web proIzzmo is a highly respected web proIzzmo is a highly respected web proIzzmo is a highly respected web proIzzmo is a highly respected web pro
Send a message via ICQ to Izzmo Send a message via AIM to Izzmo Send a message via MSN to Izzmo Send a message via Yahoo to Izzmo
Problems with Login Script

Okay, well I'm having problems with my simple, yet nice, login script See, I don't know why it's not working, it just stopped for some reason, not sure why. I've asked around and they don't know what to say either, so here I am, and heres the code some of you have already seen, again

[code:1:838babf581]<? session_start(); ?>

<?php

include("config.php");

$connect = mysql_connect("$user_hostname", "$user_username", "$user_password");
mysql_select_db("$user_database", $connect);



if(!isset($_SESSION['podnetusr'])) {

echo("<html>
<head>
<title>
Pinnacle of Destruction NETWORKS ×× Client Profiles
</title>
</head>
<body bgcolor=black>
<table width=30% align=center><tr><td>");
echo "
<center><img src="http://clan.pinnacleofdestruction.net/login.gif"><p><p></center>
<font size=1 face=verdana color=white><font color=red><b>Note:</b></font> Username and Password are CaSe Sensitive.
Your username and password are the same as your login to the ftp.<p><b>Example 1:</b><br>
<i>Username: exampleusername@pinnacleofdestruction.net<br>
Password: 123456</i><p>
<b>Example 2:</b><br>
<i>Username: exampleusername@aulkcrgo.com<br>
Password: 123456</i><br><br>
If you had forgotten your password please retrieve it by going to this page: <a href="http://www.pinnacleofdestruction.net/host/forgotp.php">Forgotten Password Page</a></font>
</left>
<form method="POST" action=$PHP_SELF>
<center>
<table>
<tr>
<td><font color=white size=2>Username:</td>
<td><input type="text" name="username" size="20"></td>
</tr>
<tr>
<td><font color=white size=2>Password:</td>
<td><input type="password" name="password" size="20"></td>
</tr>
<tr>
<td colspan="2">
<p align="center"><input type="submit" value="Submit" name="submit"></td>
</tr>
</table>
</center>
</form>";
exit;
}

$_SESSION["podnetusr"] = $username;

$sql = "SELECT * FROM members WHERE username = "$username" AND password = "$password"";
$result = @mysql_query($sql) or die("No.");

if(mysql_num_rows($result) == "0") {

unset($_SESSION['podnetusr']);

echo("<html>
<head>
<title>
Pinnacle of Destruction NETWORKS ×× Client Profiles
</title>
</head>
<body bgcolor=black>
<table width=30% align=center><tr><td>");
echo "
<center>
<font color=red size=1 face=verdana><b>Username or Password Incorrect!</b></font><br /><br />
<font size=1 face=verdana color=white><font color=red><b>Note:</b></font> Username and Password are CaSe Sensitive.
Your username and password are the same as your login to the ftp.<p><b>Example 1:</b><br>
<i>Username: exampleusername@pinnacleofdestruction.net<br>
Password: 123456</i><p>
<b>Example 2:</b><br>
<i>Username: exampleusername@aulkcrgo.com<br>
Password: 123456</i><br><br>
If you had forgotten your password please retrieve it by going to this page: <a href="http://www.pinnacleofdestruction.net/host/forgotp.php">Forgotten Password Page</a></font>
</center>
<form method="POST" action=$PHP_SELF>
<center>
<table>
<tr>
<td><font color=white size=2>Username:</td>
<td><input type="text" name="username" size="20"></td>
</tr>
<tr>
<td><font color=white size=2>Password:</td>
<td><input type="password" name="password" size="20"></td>
</tr>
<tr>
<td colspan="2">
<p align="center"><input type="submit" value="Submit" name="submit"></td>
</tr>
</table>
</center>
</form>";
exit;
}


mysql_close($connect);

?>[/code:1:838babf581]
__________________
Izzmo
Coding Guru Extraordinaire
ZeroWeb Hosting & Design - Customizable hosting for every type of user!
Izzmo is offline  
Add Post to del.icio.us
Go Back   Webmaster Forum > Web Development > Coding Forum

 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
login page problems bigeyedphish Web Design Lobby 3 12-29-2007 09:23 AM
Wordpress Author Login Problems johnegood Blogging Forum 4 09-07-2007 06:23 AM
FTP Login PHP Script from Website cleo Coding Forum 17 04-16-2006 04:00 PM


Sponsor Links
Get exposure! Contextual Links V7N SEO Blog V7N Directory


All times are GMT -7. The time now is 11:22 PM.
© Copyright 2008 V7 Inc
Powered by vBulletin
Copyright © 2000-2009 Jelsoft Enterprises Limited.


Search Engine Optimization by vBSEO 3.3.0 ©2009, Crawlability, Inc.