Jump to content

categories table !


manalnor

Recommended Posts

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

63566260.jpg

 

How can i make it like this

 

51682364.jpg

 

my problem how to make table like this and where to put the php variable  ..  :shrug:

 

thanks

 

Link to comment
https://forums.phpfreaks.com/topic/209062-categories-table/
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.