Jump to content

more php and jquery


Xtremer360

Recommended Posts

Both sets of code are from the same file. All I'm asking is some guidance with me knowing exactly the correct way to write another piece of code so that if a check box is ticked for one of the records and if edit is seleted and the appy button is clicked then it'll load the edit form into a div with a passed variable fo the records info from the db and if delete is pressed and the apply button is clicked then it cleanly deletes the record.

 

<div class="listActions">
					<form action="" method="post">
						<label for="actionSelect">With selected items: </label>
						<select class="select" name="actionSelect" id="actionSelect">
							<option>Edit</option>
							<option>Delete</option>
						</select>
						<button class="button small-button"><strong>Apply</strong></button>
					</form>
				</div>

 

 

<?php 
			        while ( $row = mysqli_fetch_array ( $result, MYSQL_ASSOC ) ) {
                          echo '
                          <tr>
                          <td><input type=checkbox class=checkbox /></td>
					  <td>' . $row['menuname'] . '</a></td>
                          <td><a href=# id="menuitems" title="' . $row['menuname'] . ' Structure Items">Menu Items</a></td>
					  <td>' . $row['name'] . '</a></td>
					  <td class=last>' . $row['datecreated'] . '</td>
					  </tr>';
                        }
                    ?>

Link to comment
https://forums.phpfreaks.com/topic/219600-more-php-and-jquery/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.