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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.