PHP problem.

Discussion in 'PHP' started by eTechDude.com, Apr 12, 2008.

  1. #1
    Hi guys,

    I get this wierd result when i run the php page (it shows some php code :|).
    I've pasted the code on pastebin.

    http://pastebin.ca/982433

    Any help much appreciated.
     
    eTechDude.com, Apr 12, 2008 IP
  2. raymond222

    raymond222 Active Member

    Messages:
    287
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    60
    #2
    If it shows php code, then your server is not supporting php.
    If you are running on local machine, you need php installed too
     
    raymond222, Apr 12, 2008 IP
  3. eTechDude.com

    eTechDude.com Member

    Messages:
    205
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    28
    #3
    i have php install and my other pages work fine (with mysql queries).

    it just shows a piece of the code. i think its the $msg=$msg. "company exists";

    any other thoughs?
     
    eTechDude.com, Apr 12, 2008 IP
  4. eTechDude.com

    eTechDude.com Member

    Messages:
    205
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    28
    #4
    btw this is what pops up for me..

    "; $status= "NOTOK";} if($status != "OK"){ echo "$msg
    "; } else { // if all validations are passed. $query=mysql_query("insert into companies(company,companyaddress,companyphone,companycontact,companyemail) values('$companyname','$companyaddress','$companyphone', '$companycontact','$companyemail')"); echo "$company has been added Successfully

    Click here to invoice $company
    "; } ?>
     
    eTechDude.com, Apr 12, 2008 IP
  5. eTechDude.com

    eTechDude.com Member

    Messages:
    205
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    28
    #5
    nevermind it was a stupid app error.
     
    eTechDude.com, Apr 12, 2008 IP