View Single Post
Old 11-25-2008, 09:21 AM   #6 (permalink)
codefreek
Super Moderator
Inquisitive 
 
codefreek's Avatar
 
Join Date: Sep 2007
Location: Near you.
Posts: 791
Thanks: 241
codefreek is on a distinguished road
Default

code changes..

PHP Code:

function readUsers($id) {
    
$sql sprintf("SELECT * FROM `crud_` WHERE `id` = %d"
    (int)
$id);
    
$res = @mysql_query($sql) or die(mysql_error());
    if (
$res) {
      
$output '';
        while (
$row mysql_fetch_array($resMYSQL_ASSOC)) {
            
$output .= "First Name :{$row['fname']} <br>" "username :{$row['uname']} <br>" "email : :{$row['email']} <br>" "phone :{$row['phone']} <br>";
        }
      return 
$output;
    }else{
      return 
false;
    }

codefreek is offline  
Reply With Quote