manalnor Posted July 28, 2010 Share Posted July 28, 2010 Hello dear friends, If i've the following ( categories - gifts ) <?PHP $sql ="select * from categories"; $result= mysql_query($sql); while($line= mysql_fetch_array($result)){ $qryrow="select * from gifts where gifts='$line[1]'"; } ?> it means select category and its gifts now my question how to view it all in table for example if i add <TABLE cellSpacing=1 cellPadding=1 width="100%"> <TBODY> <TR> <TD> <?php echo "". $line[1].""; ?> </TD> </TR> </TBODY> </TABLE> it will show me like this How can i make it like this my problem how to make table like this and where to put the php variable .. thanks Link to comment https://forums.phpfreaks.com/topic/209062-categories-table/ Share on other sites More sharing options...
manalnor Posted July 28, 2010 Author Share Posted July 28, 2010 i think i need to put some part of table codes before } at the php code Link to comment https://forums.phpfreaks.com/topic/209062-categories-table/#findComment-1092002 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.