SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Addict einSTein's Avatar
    Join Date
    Aug 2006
    Posts
    276
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    variable with no output

    the arrays in this html form output no value
    Code PHP:
    $message[$i]='<table border="0" width="300" cellspacing="0" cellpadding="0" id="table1" align=center>
    		<tr>
    			<td width="138">Name</td>
    			<td>$name[$i]</td>
    		</tr>
    		<tr>
    			<td height="22" width="138">E-mail</td>
    			<td height="22">$mail[$i]</td>
    		</tr>
    		<tr>
    			<td width="138">Link To View Profile</td>
    			<td>$i[name]</td>
    		</tr>
    	</table>';
    the output
    Name $name[$i]
    E-mail $mail[$i]
    Link To View Profile $i[name]

  2. #2
    SitePoint Evangelist barbara1712's Avatar
    Join Date
    Apr 2007
    Location
    India
    Posts
    509
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Try this

    PHP Code:
    $message[$i]='<table border="0" width="300" cellspacing="0" cellpadding="0" id="table1" align=center>
            <tr>
                <td width="138">Name</td>
                <td>' 
    $name[$i] . '</td>
            </tr>
            <tr>
                <td height="22" width="138">E-mail</td>
                <td height="22">' 
    $mail[$i] . '</td>
            </tr>
            <tr>
                <td width="138">Link To View Profile</td>
                <td>'
    $i[name]. '</td>
            </tr>
        </table>'


    Instead of
    PHP Code:
    $i[name
    may be

    PHP Code:
    $name[$i
    Barbara

  3. #3
    SitePoint Addict einSTein's Avatar
    Join Date
    Aug 2006
    Posts
    276
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    thanx man


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
  •