No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
I need to create a list of products, grouped by a category field. I am using PHP and MySQL. I have fields called ProdName, ProdCat etc. I need the list to appear as follows: * Category A * Product 1 * Product 2 * Category B * Product 3 * … |
|
I have just used this code in a project which works perfectly, but I have noticed that the first record is always not displayed. Eg. the SQL query lists 15 results, but the output only displays 14, missing the first record. Any ideas why? <?php $result = mysql_query($sql); //first put … |
|
I have a form which updates a MySQL database. This form uses an image to submit the form (code below). The name of the form is 'UpdateForm' <input style="padding:0px; margin:0px; margin-top:10px; border:none;" type="image" hspace="0" vspace="0" border="0" name="Update" id="Update" value="Update" alt="Update" src="images/UpdateButton.png" /> I would like to change this to use … |