$userid = qa_get_logged_in_userid(); //id of currently logged in user $getFCount = qa_db_read_all_assoc(qa_db_query_sub(" SELECT userid FROM demo_qa_userfavorites // "demo" is used as example WHERE userid = '$userid' ")); $getFCount = count($getFCount); //count item in array echo $getFCount;
Welcome to the Q&A site for Question2Answer.
If you have a question about Q2A, please ask here, in English.
To report a bug, please create a new issue on Github or ask a question here with the bug tag.
If you just want to try Q2A, please use the demo site.