I am getting error.Any help

if ((isset($_POST["MM_insert"])) 
  && ($_POST["MM_insert"] == "form"))  
  &&  ((isset($_POST["upload"])); 

i am getting error.Any help.

What does the error say?

Syntax error

Well, firstly, there shouldn’t be a semicolon at the end of an if statement, and the other thing is to check your opening and closing brackets.

I suspect what you mean is

if ( isset($_POST["MM_insert"]) && ($_POST["MM_insert"] == "form") && isset($_POST["upload"]) )

but I can’t be sure.

my rule of thumb (literally) is to read the line, and put a finger down on my desk every time i get to a (, and lift one up whenever I get to a ). If I get to a point where i’m trying to lift a finger and there’s none left on the desk, i’ve put too many )'s. If I get to the end of the line and there’s still fingers on the desk, I haven’t put enough )'s. If I run out of fingers, the line’s too complicated and needs a rethink.

4 Likes

I think the OP has matching brackets. It’s just that one or more are in the wrong places.

:smiley:i fixed

A post was split to a new topic: Want pagination code

Care to share how?

brackets put on right place

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.