Jump to content

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.