Member Avatar
This is the code to delete image in a folder... <?php $path = "uploads"; if(isset($_POST['file']) && is_array($_POST['file'])) { foreach($_POST['file'] as $file) { unlink($path . "/" . $file) or die("Failed to <strong class='highlight'>delete</strong> file"); } header("location: " . $_SERVER['REQUEST_URI']); //redirect after deleting files so the user can refresh without that resending …
by vijiglad in Web Development ()
Member Avatar
As it seems to come up often enough I figured I'd throw together a quick snippet outlining basic methods for data manipulation in SQL Server using C#. In all examples the coder will need to substitute their own connection string details and variables. I utilised parameters for 3 of the …
by Lusiphur 185 in Software Development ()
Member Avatar
this code will display all courses user has ... I need when user click on delete button that course delete from F_courses ... Could you please help me how to correct my code Thank you
by SoMa_2 in Web Development ()
Member Avatar
Hi. I'm working on my own CMS, i want the script to echo 3 posts in every page, and want the script to echo from the recent post and back to the oldest post. I mean like this: For example there is totaly 30 posts; First page => posts 30-29-28 …
by Niloofar24 15 in Web Development ()
Member Avatar
Hello friends! I want the script when user clicks the Delete botton to delete that post, a confirm message appears and ask if the user is sure to delete that post or not, if the user clicks the cancel button, nothing happen but if clicks the ok button, then the …
by Niloofar24 15 in Web Development ()
Member Avatar
Hello. There is an html table in admin page, with head columns (POST ID | POST TITLE | POST AUTHOR | ACTION). And in each rows, will contain a post id, a post title, a post author that gets from database. And in the Action column, there is a "delete" …
by Niloofar24 15 in Web Development ()
Member Avatar
Group, I'm using the following code to read down to the third line of a text file. If it meets the criteria, I need to stop the read and then delete the file. However I'm finding it difficult to do this as everything I've tried has failed. Have you some …
by doncwilson_1 16 in Software Development ()
Member Avatar
Hello everybody! There is a problem with my db table. For example i send 6 posts (with title, author and content) to the db table one after an other, so their post's id would be 1-2-3-4-5-6. Then if i delete the post number 6 and then write a new post …
by Niloofar24 15 in Web Development ()
Member Avatar
Hi everybody. What is the usage of ... ? An example: ... I think the answer is that when we take a link from here ... for example , it looks like this ... . So if i take the href part which is ... here and use ... to …
by Niloofar24 15 in Software Development ()
Member Avatar
Hello all, my name is Marvin. I am working on obtaining my linux system administrator certificat. I created a file with a few sentences. The only task that I am having problems with is to delete word "and" using the vi last-line mode. I know hot do delet a word …
by larin83109 in Linux and Unix ()
Member Avatar
Hello. mylist = [6, '/', 3, '+', 9, '+', 8, '+', 1, '/', 2] How can i delete that list indexes? I tried: ... But it didn't work: ... What can i do for that?
by Niloofar24 15 in Software Development ()
Member Avatar
I have three files which when i click on delete should be removed. How am I able to use the unlink and realpath for my multiple files? ...
by riwakawd in Web Development ()
Member Avatar
... In the above model I have an Images table which holds all the filenames relevant to the image. I have two relationship tables (Image_Has_People and Image_Has_Event). Both of these tables have an FK ImageID linked to the Image table's PK idImage. I'm wondering, if I set both relationship table's …
by J.C. SolvoTerra 109 in Databases ()
Member Avatar
here is my code for delete it keep showing me error that Column named FNo cannot be found. in my access database, i have Fno as primary key, foodname and food price.
by sing1006 -5 in Software Development ()
Member Avatar
Hi guys, so i have a table populated by event details from database and i use a checkbox to select which event to be deleted: my delete function: and it works fine. I wanna know how to call that delete function after a confirm dialog, something like this? but how …
by nadiam in Web Development ()
Member Avatar
I need to add a check box on the end of each value in my html table that will be checked if the user would like to remove that value from the mysql database, my current cod elooks like this: Obviously from my setup i would like if the user …
by berserk 60 in Web Development ()
Member Avatar
Hi Dw How can I delete a registry key for other program, I just checked my registry and the virus was registered under the same registry key of my other program and now I want to use java as also part of learning java and the method of accessing and …
by Mr.M 32 in Software Development ()
Member Avatar
Im trying to delete from multiple tables using full outer join like this: I get warning/notice: unknown table contact in multi delete. Why do I get this? My table is named correctly. Also if this is not the way to do it. Any guidance is much appreciated.
by nadiam in Databases ()
Member Avatar
hey guys so im trying to delete a row using checkbox but i get an undefined index error = Notice: Undefined index: check in D:\Xampp\htdocs\EMS2\event.php . i think its because the checkbox is echoed(?)maybe? or is it something else that i overlooked?
by nadiam in Web Development ()
Member Avatar
I want to null or remove array at the end of each loop. I already tried unset() or $array=array(); but its not working Just tell me php function to null all array
by burhanahmed92 in Web Development ()
Member Avatar
I have a code that i want to throw an error if there is no items to delete or if there is items it proceeds with deleting the items, here is what i have so far: Am i on the right track? Everytime i request it, it just says All …
by patk570 1 in Web Development ()
Member Avatar
I'm quite new to python and am trying to make a kind of 20Q thing, but am struggling - anybody know how to delete a list from a set, or if not a list from a list? Thanks :)
by ZJRG.1997 in Software Development ()
Member Avatar
I scanned my system with Malwarebytes today and located the directories of several viruses. I used NotePad++ to open the executable files and deleted all the code written therein and saved the change to the virus. I proceeded to delete the viruses with Malwarebytes; but, I wondered, had I left …
by bjsaturn in Information Security ()
Member Avatar
Hello. I have a php script that will backup my databases and ftp them to another server. All works fine via a cron job - but the backups are piling up and I'd like to add some code to the script to delete all the old backups - and just …
by fiddler80 in Web Development ()
Member Avatar
Folder name such as da12e5154f6b530007fd9e got automtically created in my system... Can anyone please tell me why such folders get created and how can I delete it...
by poojavb 29 in Microsoft Windows ()
Member Avatar
**i write a program Operating file 1.Read/show file in notepad 2. Add file in notepad 3.Delete a content in notepad 4.edit a content in notepad 5. Search a content in notepad i have done read file and and Add a content file in the notepad then how to delete,edit and …
by jursnamo in Software Development ()
Member Avatar
okay so hi, my problem is on (i think) case 3(the delete), it actually works when you input a movie title of example: armageddon(2012), but if you input a title that has spaces in between example: when i met your mother(2009), it just crashes. i don't know what to do …
by opel123 in Software Development ()
Member Avatar
i have created a page which has a table that enables user to delete a record via a delete button but somehow the queary isnt working. php coding the part that doesnt work: $query = "DELETE FROM studio WHERE id = '$idURL'"; $result = mysql_query($query); but the if($result) runs. any …
by Izzah_1 in Web Development ()
Member Avatar
I am still learning Laravel 4 so I have a resourceful controller tasks and I am having a problem implementing my jquery. My delete works fine without jquery so i think that I am not providing the proper url I have found one problem I don't know how to pass …
by dany12 13 in Web Development ()
Member Avatar
Hi, I am new to C#. Please help me to solve this problem. Given an "input.txt", I want to obtain the "output.txt" as below: input.txt 5,5 A(,)= 4.6; B(,)= 0.1; C(,)= 0.2; D(,)= 1.6; E(,)= 245; F(,)= 3.3; 5,15 A(,)= 6.3; B(,)= 0.9; C(,)= 0.2; D(,)= 1.6; E(,)= 242; F(,)= …
by sch85 in Software Development ()