Ave to all gurus of the PHP empire.
I have an “headache” that I would like someone to help me find the right drug for.
I have been trying to solve this for the past 2 days or so and I guess I really need a good pharmacist.
Here is the problem in a short summary. I have a PHP page loading with a recordset (MySQL) running in front of the page to give its variables.
The page doesn’t load with the content due to this line of code. The problem child is in bold.
<ul>
<li><a href="prodmaster.php?cat_ID=<?php echo $row_rsprodmaster['cat_ID']; ?>&prod_type_ID=1&prod_Desc=<?php echo $row_rs_prodcat['prod_Desc']; ?>">E-Cards</a></li>
<li></li>
</ul>
Now if I where to run this same line with a punched_in value rather than the recordset it will work!!!!!
<ul>
<li><a href="prodmaster.php?cat_ID=DP&prod_type_ID=1&prod_Desc=<?php echo $row_rs_prodcat['prod_Desc']; ?>">E-Cards</a></li>
<li></li>
</ul>
OK, wait a sec.. I can see that you are thinking..hummmm. the recordset doesn’t select the correct record value, which is the first thing I thought about, but consider this. The following line of code is actually further up in the page and it extracts the variable from the same field of the same recordset to display the value in a dynamic field.
<div align="left" class="style8"><?php echo $row_rsprodmaster['cat_ID']; ?></div>
AND BELIEVE IT OR NOT THE DISPLAYED RESULT SHOWS “DP”.
I need a strong pain killer.
If someone feels like it can spray some good on human kind right now I will be first in line.
Your forever thanksful servant.