Jump to content


Why Use $topicids=array(). Page448. Chapter 8.

  • Please log in to reply
No replies to this topic

#1 DGiraldo


    New Member

  • Members
  • Pip
  • 3 posts

Posted 06 February 2014 - 07:53 AM

I don't understand why it is necessary to use $topicIDs = array() on page 448.

There is a query :

'INSERT INTO mismatch_response (user_id, topic_id) VALUES ('" . $_SESSION['user_id']. "', '$topic_id')";

couldn't we just avoid using the $topicIDs array and just say:

"INSERT INTO mismatch_response (user_id, topic_id) VALUES ('" . $_SESSION['user_id']. "', $row[''topic_id'])";

I am sorry if this is a stupid question, but I am a newbie who feels really confused by this.

Your help is greatly appreciated.

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users