Jump to content

Error?


wwedude

Recommended Posts

yes a lot of things

 

1) Don't nest it into 1 decleration

2) You didn't error check

3) It is an array of all results in your series

 

better

<?php
$q = "SELECT column FROM table WHERE username = '$username'";
$r = mysql_query($q) or die(mysql_error());
if(mysql_num_rows($r) >0){
$row = mysql_fetch_assoc($r);
print_r($row);
}
?>

Link to comment
https://forums.phpfreaks.com/topic/123166-error/#findComment-636106
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.