- Joined
- Apr 15, 2008
- Messages
- 256
- Reaction score
- 0
Hi im using this script :
How would you make it so that is the user is not found ex:
user.php?user=LKJELj2l3kj2l3kj
it would echo something?
Thanks
PHP:
<?php
include("includes/connect.php");
if(isset($_GET['user'])){
$rs=mysql_query("SELECT * FROM users WHERE username='".$_GET['user']."'")or die("Blog not found");
while($d=mysql_fetch_assoc($rs)){
echo "Welcome to ".$d['username']."'s Blog!";
}
} ?>
user.php?user=LKJELj2l3kj2l3kj
it would echo something?
Thanks