mysql - Query returning Fatal error: Cannot use object of type QueryResult as array -


hi running own php/mysql application has own users table , imbedded joomla site has own users table, when create new user in app creates associated record in joomla table can manage single sign on. works fine, trying delete user joomla table when delete application, code:

$rstmp = customquery("select id id zzz_users email='".$deleted_values["email"]."'");  $datatmp = db_fetch_array($rstmp);  $id = $rstmp["id"];   //delete joomla tables $sql2 = "delete * zzz_user_usergroup_map user_id='$id'";  customquery($sql2); $sql3 = "delete * zzz_users email='".$deleted_values["email"]."'";  customquery($sql3); 

but returning following error:

fatal error: cannot use object of type queryresult array

help?

instead of access id $id = $rstmp["id"]; should access $id = $datatmp["id"]; on other way trying access query result without using fetch


Comments

Popular posts from this blog

jquery - How do you format the date used in the popover widget title of FullCalendar? -

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -