clothes store     


My forwarded emails are bein..

I have a account woth fastho..

Is this potential boss reall..

How do I ftp a link to my we..

Is this true?notification of..

Real deal or fake? looks fak..

Outlook sends to un-authoriz..

I'm going to have a..

How to build a mailing list ..

IMVU error?

Problem with sending emails ..

Is it a spam?

How can I have my own privat..

Error message 421 - temporar..

Problem with accessing MS ex..

Help with iPod Touch Mail?

Trying to stream an .FLV vid..

Buying a domain, please help..

Setting up dns on a domain n..

How do you obtain the passwo..

What are the requirements fo..

How do i findout the hostnam..

Your opinions on this (plz h..

Hey, fellow christians, this..

Need Technical Help!?

Need to know opinons of this..

Microsoft outlook express 6?

What do you thikn of this gu..

Faliure messages on Yahoo ma..

How do I start my own websit..

Forum software with digest o..

Any good free web hostings?

Building a Website?

Unable to receive external e..

Im 17 and i want to build mu..

I have msn messenger. some o..

What is the best software to..

This is serious. Can someone..

Watz this ppl ?? i got mail ..
 
Can someone help with this php code?    [Imwebhost]

DISPLAYS THE [ELSE] AT THE END. INPUT IS CORRECT.

// blank on purpose

$host="localhost";

$username="";

$password="";

$db_name="";

$tbl_name="";

// connect to the server and select database

mysql_connect("$host","$username","$pa... die("cannot connect");

mysql_select_db("$db_name")or die("cannot connect");

// email and password from signup

$myusername=$_POST['myusername'];

$mypassword=$_POST['mypassword'];

$sql = "SELECT * FROM $tbl_name WHERE username='$myusername' and password='$mypassword'";

$result=mysql_query($sql);

// Mysql_num_row is counting the table row

$count=mysql_num_rows($result);

// if result matched $myusername and $mypassword, table row must be 1 row

if($count==1){

// register $myemail, $mypassword and redirect to a success page

session_register("myusername");

session_register("mypassword");

header("location:index.php");

}

else {

echo"wrong username ..."

// put this here to see if it helps from being first on page.

include ("includes/header.php");

Can someone help with this php code?

mysql_num_rows() does not always work as expected. The only way to guarantee that a row exists in the results is to do a mysql_fetch_row().

BTW, your SQL query is vulnerable to various SQL injection techniques. Major security hole!

Can someone help with this php code?

Maybe the username is not exist

or

The password in the database is stored using encryption function, like MD5 or PASSWORD.

If it's true, in your $sql, write :

".......... and password = 'MD5($mypassword)'"

Is it helpful?


[Imwebhost]


What are my SMTP and my PoP3 entries in my Photodex,ProShow ..
SMTP problems emailing Yahoo?
How and where can i get a website domain name for cheap?
I have received this mail from msn award which made me fool ..
Sera cierto?
Is microsoftaward winning 2007 of Crydon London UK. is real ..
Microsoft Award Team20 Craven Park, Harlesden London NW10 Un..
Yahoo won't accept mail from my mail server. Please..
How do I get my check?
Sera cierto esto?



Comment
Name: Name:  Password:   Register?
Comment:
Face