Ok,
Why would this function return rows as normal, but changing the
to...
not return anything??
Sql:
Code:
public function execSql(){
$result = mysql_query('select * from users');
$data = array();
while($row = mysql_fetch_assoc($result))
{
$data[] = $row;
}
//print_r($data);
mysql_free_result ($result);
return $data;
}
Why would this function return rows as normal, but changing the
Code:
$result = mysql_query('select * from users');
to...
Code:
$result = mysql_query('call searchUsers()');
not return anything??
Sql:
Code:
DELIMITER $$
USE `instantmessenger`$$
DROP PROCEDURE IF EXISTS `searchUsers`$$
CREATE
/*[DEFINER = { user | CURRENT_USER }]*/
PROCEDURE `instantmessenger`.`searchUsers`()
BEGIN
SELECT * FROM users;
END$$