I have function where I read from a mysql table a set of value. Part of my codes is like this. The problem why I need to use fully php here is this a ajax called page.
echo "<tr id='gridRow'>
<td >$count</td>
<td> <input type='checkbox' onClick=selectAndUpdate('$row1[size]')></td>
<td> {$row1[SerialNo]}</td>
<td> {$row1[InHouseBranding]}</td>
<td> {$row1[BrandCode]}</td>
<td> {$row1[size]}</td>
<td> {$row1[Pattern]}</td>
<td> {$row1[EntryStatus]}</td>
</tr>";
A sample row generated is as below can you notice this line why the same value appear properly in the 21060R 22.567 but in the previous line is showing me like this 22.567′)=”” onclick=”selectAndUpdate(‘21060R”> any idea?
<tr id="gridRow">
<td>1</td>
<td>
<input type="checkbox" 22.567')="" onclick="selectAndUpdate('21060R">
</td>
<td> EA12</td>
<td> BOR1</td>
<td> GY</td>
<td> 21060R 22.567</td>
<td> HMG 2020</td>
<td> New</td>
</tr>
The generated code seems unrelated to the code the
echoproduces, notice int theechoit is writtentype='checkbox'while in the output itstype="checkbox"(notice the quotes). make sure that you suspect the right echo to be wrong.