Jump to content

[SOLVED] trouble with IF....


nec9716

Recommended Posts

this is a part of my script:

When I run in I have  an error on the input line

 

echo "<tr>";
echo "<td width=10%>";
if ($action == 'edit')
echo "<input name="name" type="text" value="<?php echo $tpname?>">";
else
echo "<td width=10%>";
echo'<select name="pname" size="1" onchange="setItemListBox()">';
while($row = mysql_fetch_array($result6, MYSQL_NUM))
{
echo '<option value="' . $row[0] . '">' . $row[1] . '</option>';
}
echo '</select>';
}
echo "</td >";

Link to comment
https://forums.phpfreaks.com/topic/99437-solved-trouble-with-if/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.