Re: [PHP-DB] how to delete
unlink (PHP 3, PHP 4, PHP 5) unlink -- Deletes a file Description bool unlink ( string filename [, resource context] ) Deletes filename. Similar to the Unix C unlink() function. Returns TRUE on success or FALSE on failure. : As of PHP 5.0.0 unlink() can also be used with some URL wrappers. Refer to M for a listing of which wrappers support unlink(). : Context support was added with PHP 5.0.0. For a description of contexts, refer to CL, Stream Functions. See also rmdir() for removing directories. tes it out... instead using CAPITAL.. u can use this text mean bold (use ) - Original Message - From: Asim [EMAIL PROTECTED] To: php-db@lists.php.net Sent: Tuesday, June 19, 2007 12:08 PM Subject: [PHP-DB] how to delete HI can you tell me how to delete images from HARD DISK OR WEB SPACE by using php? i have created tumbnails of some images and they are stored on HARD DISK IN PRESCRIBED FOLDER. now i use DESTROYIMAGE(); FUNCTION in php but it didnot delete crearted thumbnails of prescribed folder. i am doing this to save webspace. moreover, is there any way to create THUMBNAILS WITHOUT SAVING IMAGES WITH NEW SIZE ON HARD DISK? BYE Asim Jamil - 0092 345 4025907, Pakistan - Yahoo! oneSearch: Finally, mobile search that gives answers, not web links. -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP-DB] how to delete
Hi There is no DESTROYIMAGE() function. May be you mean imagedestroy(). If so this does NOT erase files, it destroys in memory images created using the Image functions. To erase files use the unlink function. For detail look here http://uk3.php.net/unlink Niel -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP-DB] How to delete specific row in mysql table?
Your statement is saying: if 3 is greater than 2, delete all Your WHERE criteria should be based upon a specific field's contents, NOT its position in a data base -Original Message- From: Jan Grafström [mailto:[EMAIL PROTECTED]] Sent: Tuesday, August 28, 2001 11:51 AM To: [EMAIL PROTECTED] Subject: [PHP-DB] How to delete specific row in mysql table? Hi! I am new to this an wonder how to delete a row in my table. I have tryed with: -- DELETE FROM mytable WHERE 32 - to delete row number 3 but all rows goes away! Thanks in advance for any help. Regards Jan -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP-DB] How to delete specific row in mysql table?
Hi! I am new to this an wonder how to delete a row in my table. I have tryed with: -- DELETE FROM mytable WHERE 32 - to delete row number 3 but all rows goes away! Thanks in advance for any help. Regards Jan That's because the number 3 is greater than the number 2, so is always true, and does nothing to identify the row you want to delete You need to find something unique to identify row number 3 with, then modify your WHERE clause to idenfity the row using that unique column, such as 'delete from mytable where rowid = 3' This is an SQL question really - you should probably consult an SQL reference jason -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]