Only if you do not plan releasing it as part of a mod.tommekemc wrote:can I just use mysql_num_rows?
Code: Select all
return ($this->db_connect_id) ? @mysql_affected_rows($this->db_connect_id) : false;
Only you should not use i on a SELECT, your MOD will be denied for thatjanmyszkier wrote:works fine on SELECT though... just applied it to my mod.
Code: Select all
if(mysql_num_rowq($sql)==1){
//do code
}else{
//do something else
}
Code: Select all
if (!($row = $db->sql_fetchrow($result)))
{
// The query had no results
}