Jump to content

PHP simple request...


Gayner

Recommended Posts

$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 ,! :D

Link to comment
https://forums.phpfreaks.com/topic/170515-php-simple-request/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.