clothes store     


What is the best free web ho..

About free web hosting?

Installing PHP on Windows SP..

Is the 100webspace.com hosti..

PHP: Anyone know of any good..

PhpMyAdmin config.inc.php?

What's you opinion ..

I have an open source PHP 5 ..

Free web hosting !?

Free php no banner host?

Ffmpeg-php ? HELP PLEASE!!!!..

Ok so i made a php email scr..

ASP and PHP?

Whats the best free Php Nuke..

Has anyone used this site fo..

How do I install php for a y..

How can use Single Signon on..

PHP programming problem? how..

PHP Include Issues.?

Why doesn't my PHP ..

Free Web Hosting Better than..

Begginers help with php scri..

File Hosting Site?

Is the content inside any PH..

Sending mail from PHP?

Is the content inside any PH..

None PHP shoutbox?

Where can I find a highly sc..

What's the best fre..

Where can I find a FREE web ..

What are the best e-commerce..

Please tell me best free web..

Website hosts, HTML, RSS, PH..

Heres the php script but i c..

PHP Server Time Discrepancy?

Is there a free host that of..

Php forms into mysql databas..

Can anyone help me fix this ..

Is there a free web host tha..
 
How can I make this PHP script work?    [Imwebhost]

<?php

ob_start();

$host="localhost"; // Host name

$username=""; // Mysql username

$password=""; // Mysql password

$db_name="log"; // Database name

$tbl_name="administrator"; // Table name

// Connect to server and select databse.

mysql_connect("$host", "$username", "$password")or die("cannot connect");

mysql_select_db("$db_name")or die("cannot select DB");

// Define $myusername and $mypassword

$myusername=$_POST['myusername'];

$mypassword=$_POST['mypassword'];

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

$result=mysql_query($sql);

if(!$result){

die(mysql_error());

}

// Mysql_num_row is counting table row

$count=mysql_num_rows($result);

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

if($count==1){

// Register $myusername, $mypassword and redirect to file "login_success.php"

session_register("myusername");

session_register("mypassword");

header("location:login_success.php");

}

How can I make this PHP script work?

take a look at the session_register

it should be:

session_register($myusername);


[Imwebhost]


Where can I get a free Web Host with PHP and MySQL database?
Web Hosting plans.... best sites?
PHP Form Script Needed to Install on Yahoo Webhosting Standa..
I want to host a PHP website freely. is there any site provi..
I think i have deleted the php.ini in my godaddy host.what c..
I need a program in php?
Need free host for php nuke site.?
Can you create a form without PHP...?
Is there a host with PHP sendmail, PHP, No ads and webmail?
I&#039;m new to PHP/MYSQL; my site is hosted by Yahoo, a..



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