Posts by Marcelo Barros • 345 points
5 posts
-
7
votes3
answers10821
viewsQ: How to delete folders, subfolders and files?
Using my example below, I can delete a folder and the files contained in it: $uploaddir = "../img/uploads/".$destino_sa."/"; $dir_contents = scandir($uploaddir); if(is_dir($uploaddir)) {…
phpasked Marcelo Barros 345 -
3
votes1
answer446
viewsQ: Is it possible to update LONGBLOB field?
I have a script that uploads images to a table with field LONGBLOB, upload any image and display it smoothly. My question is, although I know we shouldn’t insert images into mysql, there is a way to…
-
-1
votes1
answer868
viewsQ: UPDATE does not update table
I am unable to update my fields. Where I am missing? Caught the id through GET and I can display the table data, but I can’t update it. CAMPOS $id_destino = $_GET['id_destino']; $destino =…
-
3
votes3
answers4519
viewsQ: How to display part of a text stored in a TEXT column?
My table has a field TEXT where I insert text with paragraphs that are read through the function nl2br of PHP. I print each column of the table through mysql_fetch_array and everything is displayed…
-
10
votes3
answers6487
viewsQ: How to take ID from another table and INSERT into another?
I have two tables: destinations and input: On the table destinations: id_destination(AI) and destination; On the table entree: id(AI), id_destination(relation with table id_destination…