Gayner Posted August 16, 2009 Share Posted August 16, 2009 $pull = $DB->query("SELECT * FROM `ibf_files_comments` WHERE `mem_id` = '" .$this->member['id']. "' and `file_id` = '" .$ibforums->input['id']. "'"); // Check if our $pull query returns a result greater than one if so error message otherwise run the rest if ( $DB->get_num_rows($pull) > 0 ) { $std->Error( array( 'LEVEL' => 1, 'MSG' => 'already_posted' ) ); } This tells me that if somone has Already posted on the specific place. But I want to make it so people Can't post more then 10 times? Would all i have to do is change thiS? [mysql]if ( $DB->get_num_rows($pull) > 10 ) [/mysql] Thank u ,! Link to comment https://forums.phpfreaks.com/topic/170515-php-simple-request/ Share on other sites More sharing options...
ignace Posted August 16, 2009 Share Posted August 16, 2009 yes Link to comment https://forums.phpfreaks.com/topic/170515-php-simple-request/#findComment-899559 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.