nec9716 Posted April 3, 2008 Share Posted April 3, 2008 why I don't have anything show up with that when I change <td>value .....for <td>stephan</td> it work if ($action == 'edit'){ echo "<table width='100%' align='center' cellpadding='0' cellspacing='0'> <tr> <td>value="<?php echo $tpname?>"</td> </tr>"; } Quote Link to comment https://forums.phpfreaks.com/topic/99448-solved-dont-show-anything/ Share on other sites More sharing options...
almightyegg Posted April 3, 2008 Share Posted April 3, 2008 <td><? echo "$tpname"; ?></td> Quote Link to comment https://forums.phpfreaks.com/topic/99448-solved-dont-show-anything/#findComment-508845 Share on other sites More sharing options...
nec9716 Posted April 3, 2008 Author Share Posted April 3, 2008 when i try that <td><? echo "$tpname"; ?></td> Parse error: syntax error, unexpected T_VARIABLE, expecting ',' or ';' in /home ...any clue why? Quote Link to comment https://forums.phpfreaks.com/topic/99448-solved-dont-show-anything/#findComment-508875 Share on other sites More sharing options...
Caesar Posted April 3, 2008 Share Posted April 3, 2008 Why do you have PHP tags inside PHP syntax? if ($action == 'edit'){ echo "<table width='100%' align='center' cellpadding='0' cellspacing='0'> <tr> <td>value="<?php echo $tpname?>"</td> </tr>"; } Without me really checking your other code...Try.... <?php if ($action == 'edit'){ echo " <table width='100%' align='center' cellpadding='0' cellspacing='0'> <tr><td>value=\"$tpname\"</td></tr>"; } ?> Also...where's the closing table tag? Quote Link to comment https://forums.phpfreaks.com/topic/99448-solved-dont-show-anything/#findComment-508877 Share on other sites More sharing options...
nec9716 Posted April 3, 2008 Author Share Posted April 3, 2008 ok i think i get it now <td>$tpname</td> work fine in my case Quote Link to comment https://forums.phpfreaks.com/topic/99448-solved-dont-show-anything/#findComment-508880 Share on other sites More sharing options...
stuffradio Posted April 3, 2008 Share Posted April 3, 2008 Glad it works, you should hit solved so people don't keep coming Quote Link to comment https://forums.phpfreaks.com/topic/99448-solved-dont-show-anything/#findComment-508884 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.