mysqli and php requesting rows returned in object oriented scripting...
        Posted  
        
            by Matt
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Matt
        
        
        
        Published on 2010-05-27T02:45:14Z
        Indexed on 
            2010/05/27
            2:51 UTC
        
        
        Read the original article
        Hit count: 292
        
in object oriented php mysqli
I am trying to request a username, and return if it matches a row, without actually returning any user data.
How would I write this?...so far I have...
$sql = "SELECT NULL FROM database WHERE usernick=?";
$stmt = $link->prepare($sql)
$stmt->bind_param('s', $snr);
$stmt->execute();
After this step I need to see if a row matched the query...but I have no idea how to write it, everyone here pretty much writes in mysql if I dont mention I want object oriented mysqli :S
© Stack Overflow or respective owner