Image Delete -> Database |
[eluser]jzmwebdevelopement[/eluser]
Hello, I have an issue with trying to delete a row from the database but also incorporate how to unlink the to images from different locations. I cannot get the row to delete or the images to unlink. Here is my -> db structure cl.ly/292t2t0B001h0Y0C1y1v My image locations are: fullpath = /includes/uploads/gallery/ thumbpath = /includes/uploads/gallery/thumbs/ Ideal Situation What my ideal situation would be is when the delete link is clicked that it will run the function within the index function and then reload the same page with a success message -> I have not successfully been able to get them to work. My code: Model: Code: function deleteImage($id,$path){ View: Code: <?php if(is_array($get_images)): ?> Controller: Code: function index() {
[eluser]toopay[/eluser]
If you use a model's function, don't forget to load it first.
[eluser]jzmwebdevelopement[/eluser]
All my models are auto loaded http://cl.ly/2U1F3a2B0s2K0i3k3g13 |
Welcome Guest, Not a member yet? Register Sign In |