Joined: Tue Aug 09, 2011 12:50 pm Posts: 7 Has thanked: 0 time Have thanks: 0 time
hi all, i want javascript function to delete the selected records for the given php program below.... also i am not getting field values in correct order one field is more than its field... kindly tell me how to do it......
Code:
<?php $host="localhost"; // Host name $username="root"; // Mysql username $password=""; // Mysql password $db_name="test"; // Database name $tbl_name="emp"; // Table name
// if successful redirect to delete_multiple5.php if($result){ echo "<meta http-equiv=\"refresh\" content=\"0;URL=h_delete.php\">"; } } mysql_close(); ?> </table> </form> </td> </tr> </table>
msi_333
Question subject: Re: deleting using javascript
Posted: Sat Aug 20, 2011 4:36 pm
Joined: Tue Mar 27, 2007 10:55 pm Posts: 2279 Location: Earth Has thanked: 39 time Have thanks: 61 time
For the first part of deleting using javascript , i understood that you want to delete the records from screen , you can using the innerHTML attribute like this :
Code:
function delete() { document.getElementById('id').innerHTML=""; }
second part , it is not clear to me , but it seems there is a duplication on the checkbox list , if so , it should be a duplicate values in $rows['id'].
_________________ Currenlty programming with : java , html , php , and javascript . (OCJP-6 certified )