I can't find the error - can you?

Ask about general coding issues or problems here.

Moderators: egami, macek, gesf

Post Reply
New php-forum User
New php-forum User
Posts: 191
Joined: Wed Jan 29, 2003 7:11 am
Location: UK

Sun Jun 29, 2003 2:40 am

} ELSEIF ($action="Send") {

= is an assignment operator
== is a conditional
avatar image based upon nasas apod (only updates if I post though)

New php-forum User
New php-forum User
Posts: 193
Joined: Sat Mar 29, 2003 11:57 pm
Location: Auckland, New Zealand

Mon Jun 30, 2003 8:25 pm

The script wouldn't open at first because of an unexpected end, it took 2 or 3 curly braces at the end to end all the if statements to get the page running, but then it did run. Maybe you just havent ended your ifs properly?

When I ran this script, i got an error for undefined variable of action and tally, the action just needed an @ to suppress the error, instead of...

Code: Select all

If (!@$action)

instead of

Code: Select all

if ($action=="")

Post Reply
  • Information
  • Who is online

    Users browsing this forum: Baidu [Spider] and 4 guests