Hello,
I am developing a product carlogue.for testing on local m/s i am using PHP 5 / APche / Mysql 5 combination.
The code is like this..
[code=php]
<table width=”100%” border=”0″ align=”center” class=”prod_showhide”>
<tbody>
<tr>
<th class=”tbl_blue_bg”><a href=”#”>Product Description</a>
<input type=”button” name=”Button” value=”Edit” onClick=”MM_openBrWindow(‘edit_para.php?mode=edit&productid=<?php echo $ProductID; ?>&fieldname=str_prod_description’,’Ed’,’width=600,height=600′)” class=”btnsty” /></th>
</tr>
<tr>
<td class=”block_content”><?php echo $str_prod_description; ?></td>
</tr>
<tr>
<th class=”tbl_blue_bg”><a href=”#”>Composition</a>
<input type=”button” name=”Button2″ value=”Edit” onclick=”MM_openBrWindow(‘edit_para.php?mode=edit&productid=<?php echo $ProductID; ?>&fieldname=str_prod_composition’,’Ed’,’width=600,height=600′)” class=”btnsty” />
</th>
</tr>
<tr>
<td class=”block_content” ><?php echo $str_prod_composition; ?></td>
</tr>
<tr>
<th class=”tbl_blue_bg”><a href=”#”>Therapeutic Effects and indications</a>
<input type=”button” name=”Button3″ value=”Edit” onclick=”MM_openBrWindow(‘edit_para.php?mode=edit&productid=<?php echo $ProductID; ?>&fieldname=str_prod_therapeutic’,’Ed’,’width=600,height=600′)” class=”btnsty” />
</th>
</tr>
<tr>
<td class=”block_content” ><?php echo $str_prod_therapeutic; ?></td>
</tr>
<tr>
<th class=”tbl_blue_bg”><a href=”javascript:NewCal(‘edatetime’,’DDMMYYYY’,true,24)”>Clinical/Pharmocological Trials</a>
<input type=”button” name=”Button32″ value=”Edit” onclick=”MM_openBrWindow(‘edit_para.php?mode=edit&productid=<?php echo $ProductID; ?>&fieldname=str_prod_clinical’,’Ed’,’width=600,height=600′)” class=”btnsty” />
</th>
</tr>
<tr>
<td class=”block_content” ><?php echo $str_prod_clinical; ?></td>
</tr>
<tr>
<th class=”tbl_blue_bg”><a href=”#”>Contra indications</a>
<input type=”button” name=”Button33″ value=”Edit” onclick=”MM_openBrWindow(‘edit_para.php?mode=edit&productid=<?php echo $ProductID; ?>&fieldname=str_prod_contraindications’,’Ed’,’width=600,height=600′)” class=”btnsty” />
</span></th>
</tr>
<tr>
<td class=”block_content” ><?php echo $str_prod_contraindications; ?></td>
</tr>
<tr>
<th class=”tbl_blue_bg”><a href=”#”>Literature</a>
<input type=”button” name=”Button34″ value=”Edit” onclick=”MM_openBrWindow(‘edit_para.php?mode=edit&productid=<?php echo $ProductID; ?>&fieldname=str_prod_therapeutic’,’Ed’,’width=600,height=600′)” class=”btnsty” />
</span></th>
</tr>
<tr>
<td class=”block_content” ><?php echo $str_prod_literature; ?></td>
</tr>
<tr>
<th class=”tbl_blue_bg”>
<a href=”#”>Certificate of Analysis</a>
<input type=”button” name=”Button35″ value=”Edit” onclick=”MM_openBrWindow(‘edit_para.php?mode=edit&productid=<?php echo $ProductID; ?>&fieldname=str_prod_certificateofanalysis’,’Ed’,’width=600,height=600′)” class=”btnsty” />
</span></th>
</tr>
<tr>
<td class=”block_content” ><?php echo $str_prod_certificateofanalysis; ?></td>
</tr>
<tr>
<th class=”tbl_blue_bg”><a href=”#”>Packaging and Dosage</a>
<input type=”button” name=”Button36″ value=”Edit” onclick=”MM_openBrWindow(‘edit_para.php?mode=edit&productid=<?php echo $ProductID; ?>&fieldname=str_prod_packaginganddosage’,’Ed’,’width=600,height=600′)” class=”btnsty” />
</span></th>
</tr>
<tr>
<td class=”block_content” ><?php echo $str_prod_packaginganddosage; ?></td>
</tr>
</tbody>
</table>
It works on local machine..when i upload this to hosting server which is php 4.2..script breaks in between. what will be the reason.???