View Single Post
  #7 (permalink)  
Old Mar 22nd, 2008, 16:38
CloudedVision's Avatar
CloudedVision CloudedVision is offline
Nerdy Moderator
Join Date: Feb 2008
Location: In My Own Little World
Age: 14
Posts: 1,229
Blog Entries: 9
Thanks: 2
Thanked 38 Times in 38 Posts
Re: PHP database code issue

This should be the entire code

PHP: Select all

$sql "SELECT * FROM users WHERE
        username = '"
.$_POST["username"]."' AND
        password = PASSWORD('"
.$_POST["password"]."')";
$result mysqli_query($mysqli$sql) or die(mysqli_error($mysqli));
$info mysqli_fetch_array($result);
    
        
//display string
    
$display_block "
    <p>"
.$info['f_name']." <p>
    <p>"
.$info['l_name']." <p>";

echo 
$display_block
__________________
CloudedVision, WebForumz Moderator
Web Design And Development: Other Road Design | Problems with IE6?: KApp | My Blog: Only Nerds Allowed

Last edited by Rob; Mar 29th, 2008 at 01:15.
Reply With Quote