Jump to content

how to bypass a warning?


sangoku

Recommended Posts

noo need foun the answer....

 

        if(mysql_num_rows($resultSql)){

        foreach (mysql_fetch_array($resultSql) as $row){

            $result[] = $row;

        }

        }else{

            $result = array();

        }

 

num rows is a good one XD

if (mysql_num_rows($resultSql)) {
  foreach (mysql_fetch_array($resultSql) as $row){
    $result[] = $row;
}
}

 

Are you sure this is what you want:

 

$result[] = 'username';

$result[] = 'e-mail';

$result[] = 'password';

 

Or are you after:

 

$result[] = array('username', 'e-mail', 'password');

$result[] = array('username2', 'e-mail2', 'password2');

..

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.