What I have so far is the button (add_1.gif) this is in my images folder and I can bring this into my recorset queries. When I do a search in the database it will show on each record. (Minus the link I want)
Each product has a unique id which is generated for me from the shopping cart company. So when I generate a new product it will send me a link ie
http://payloadz.com/go?id=1234
The id code I have set up a field in my data base to hold the unique id numbers.
So I have the button image and I have the id code but how do I make the button link to http://payloadz.com/go?id=1234 using my unique id number. I know that it is possible to write into the echo script http://payloadz.com/go?id=$product but this is very new to me. Can anyone shed some light onto this. below is some of the code to help out.
<?php do { ?>
<tr bgcolor="#666666">
<td><div align="left"><strong><font color="#FFFFFF" size="2" face="Verdana, Arial, Helvetica, sans-serif"><?php echo $row_Recordset1['catagory']; ?></font></strong></div></td>
<td width="35%" height="20"><div align="left"><strong><font color="#FFFFFF" size="2" face="Verdana, Arial, Helvetica, sans-serif"><?php echo $row_Recordset1['sub_catagory']; ?></font></strong></div></td>
<td width="30%"><font size="2" face="Verdana, Arial, Helvetica, sans-serif">Edit</font></td>
<td width="11%"><font size="2" face="Verdana, Arial, Helvetica, sans-serif"><a href="delete.php?id=<?php echo $row_Recordset1['id']; ?>&sub_catagory=<?php echo $row_Recordset1['sub_catagory']; ?>&quiz_numbers=<?php echo $row_Recordset1['quiz_numbers']; ?>&price=<?php echo $row_Recordset1['price']; ?>&description=<?php echo $row_Recordset1['description']; ?>&image=<?php echo $row_Recordset1['image']; ?>&catagory=<?php echo $row_Recordset1['catagory']; ?>&ref=<?php echo $row_Recordset1['ref']; ?>&product_id=<?php echo $row_Recordset1['product_id']; ?>">Delete</a></font></td>
</tr>
<tr bgcolor="#666666">
<td height="20" colspan="2"><div align="left"><font color="#FFFFFF" size="2" face="Verdana, Arial, Helvetica, sans-serif">Product Code <?php echo $row_Recordset1['product_id']; ?></font></div></td>
<td colspan="2"><div align="left"><font color="#FFFFFF" size="2" face="Verdana, Arial, Helvetica, sans-serif">Price £ <?php echo $row_Recordset1['price']; ?> </font></div></td>
</tr>
<tr bgcolor="#666666">
<td height="20" colspan="2"><div align="left"><strong><font color="#FFFFFF" size="2" face="Verdana, Arial, Helvetica, sans-serif">No. of questions</font><font color="#FFFFFF" size="2" face="Verdana, Arial, Helvetica, sans-serif"> <?php echo $row_Recordset1['quiz_numbers']; ?></font></strong></div></td>
<td colspan="2"><div align="right"><font color="#FFFFFF" size="2" face="Verdana, Arial, Helvetica, sans-serif">id </font><font color="#FFFFFF" size="2" face="Verdana, Arial, Helvetica, sans-serif"><?php echo $row_Recordset1['id']; ?></font></div></td>
</tr>
<tr bgcolor="#999999">
<td width="24%" align="left" valign="middle"><div align="left"></div> <div align="center">
<div align="left"><img src="images/<?php echo $row_Recordset1['image']; ?>"></div>
</div> <div align="justify"></div></td>
<td colspan="2" valign="top"><div align="justify"><span class="style1"><?php echo $row_Recordset1['description']; ?></span></div></td>
</tr>
<tr bgcolor="#999999">
<td align="left" valign="middle"> </td>
<td colspan="2" valign="top"><img src="images/add_1.gif" width="100" height="30"></td>
</tr>
<tr bgcolor="#666633">
<td height="9" colspan="4" align="center" valign="bottom"></td>
</tr>
<?php } while ($row_Recordset1 = mysql_fetch_assoc($Recordset1)); ?>