Thread: Correct Syntax

Results 1 to 3 of 3
  1. #1

    Default Correct Syntax

    Hello...I was just wondering what the correct syntax is to embed php within php... as in something like <?php <?php ?> ?> but obviously this is not right. Does anyone know how to do this correctly?

  2. #2
    Join Date
    Jun 2003
    Posts
    33,721
    Plugin Contributions
    0

    Default Re: Correct Syntax

    Try php.net
    Please do not PM for support issues: a private solution doesn't benefit the community.

    Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

  3. #3
    Join Date
    Aug 2007
    Location
    Tampa FL.
    Posts
    142
    Plugin Contributions
    0

    Default Re: Correct Syntax

    I believe you need to end one php tag before you start another, there is no need for a php tag within another php tag as once you have an open php tag when you close the on inside it will only cancel out the main php closing tag,
    if you need to write html or somthing just close the tag and do what is needed and reopen when you need to as you can write html within php.

    just my 2 cents if it makes any sence

 

 

Similar Threads

  1. robot.txt correct syntax? - CEON URI
    By rebelman in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 27 Jun 2011, 12:00 PM
  2. Correct syntax for Add to Wishlist link
    By magicpants in forum General Questions
    Replies: 3
    Last Post: 26 Jun 2009, 04:08 PM
  3. SQL Syntax error: check for right syntax to use near '000000
    By gabyone in forum General Questions
    Replies: 2
    Last Post: 9 Feb 2008, 08:23 PM
  4. How to correct SQL syntax error?
    By meeven in forum Setting Up Categories, Products, Attributes
    Replies: 3
    Last Post: 22 Aug 2007, 02:14 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg