SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Zealot maxdream01's Avatar
    Join Date
    Feb 2011
    Location
    USA
    Posts
    149
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question Help with NowDoc

    Hey everybody,
    I have a nowdoc that is filled with a file that basically accesses a database and retrieves information in a specific row, i used the nowdoc so that none of the php calls get parsed until someone opens the file that the file code is being placed in, that works fine. However, in order for me to specify to php which row to select, i need to execute one line of code:
    PHP Code:
    $id $o_id
    i either need to have this one line parse in the nowdoc or somehow pass this value into the nowdoc...

    Thanks
    PHP is FUN

  2. #2
    SitePoint Zealot maxdream01's Avatar
    Join Date
    Feb 2011
    Location
    USA
    Posts
    149
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Never mind everyone i figured it out all you had to do was separate the commands as in make two variable one for the nowdoc and a second from the above line and ten just combine them appropriately before uploading to the file.
    PHP is FUN


Tags for this Thread

Bookmarks

Posting Permissions

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