Hi!

I'm having a Parse error: parse error, unexpected $end in all the three files in attach. Don't know why. All seems ok...

After researching the error on the web, I found some quotes saying to plug on the short tags on the php.ini file and I made it… Later than I’ve opened the IE to see what was going around and surprised again – a blank page and no information.

It’s strange! I’ve the WAMP5 1.6.6 installed and it doesn’t seem that the problem come from there. I really don’t know.

I have checked all the braces and brackets … and nothing … all seems to be alright. More … I’ve tried to put all in short and long tags… nothing… all the same!

Can you help me here with this??

Thanks!!

    Going through your code you are using both short and long tags, so I would advise that you use only long tags for PHP ie <?PHP and ?> and not <? and ?> as you have here

    <? if($can_save){ ?>
            <input type="submit" name="Submit" value="Save" />
            <? } else { ?>
            <input type="submit" name="Submit" value="Save" disabled="disabled" />
            <? } ?>

    but in the same script you have this

    <?php
            if($edit_form){
                echo "<input name=\"action\" type=\"hidden\" id=\"action\" value=\"update\" />";
                echo "<input name=\"cid\" type=\"hidden\" id=\"fid\" value=\"" . $row['fid'] ."\" />";
            } else {
                echo "<input name=\"action\" type=\"hidden\" id=\"action\" value=\"save\" />";
            }
            ?>

    You need to be consistent with your coding and this is just one file long tags always work whereas short tags do not.

      Hi Houdini!

      Thanks! I've managed to put all working with your tip. 🙂
      It had little problems too in other php files but all is ok now...

      Thank you very much man!!! 🙂

      Hugs.

        Hey Brad where is the frog? Now there is nothing! No Frog no anything/

          Did you not used to have a frog on a lily pad as an avatar?
          I might be getting senile or that alheimerz stuff!

            It is definately senility or Alheimerz

              Write a Reply...