SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Addict
    Join Date
    Apr 2002
    Location
    Miami
    Posts
    214
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    embeding code in variable

    I would like to take a chunk of code as below and assign it to a variable so I can insert it formatted into one field of a database.

    Thanks for your help

    PHP Code:
        for ($i $i $num_elements ; ++$i) { 
        echo (
    "<tr><td>$itemno[$i]</td>
        <td align='center'>
    $items[$i]</td>
        <td align='center'>
    $qty[$i]</td>
        <td align='center'>
    $rush</td>
        <td align='center'>
    $cost[$i]</td>
        <td align='center'>
    $tcost[$i]</td>
        </tr>"
    );


  2. #2
    SitePoint Addict
    Join Date
    Apr 2002
    Location
    Miami
    Posts
    214
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Never mind on this one. I got it,

    Thanks anyway.


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
  •