Picture upload - Fehler beim löschen. PHP/MySQL

Christen

Christen

Aktives Mitglied
Thread Starter
Dabei seit
07.01.2003
Beiträge
886
Reaktionspunkte
0
Gemäs dem Tutorial von GoLive.
Wenn ich ein Bild lösche schreibt mir GoLive diesen code:
PHP:
<img src='..//&nbsp;' alt="" border="0">
Also, er schreibt mir "../" und dann noch ein "/" und dann (auch in die MySQL Tabelle
PHP:
&nbsp;
hinein.
->Warum?
Das Resultat ist dann immer ein Bild mit fehlendem Inhalt.

Meine Odnerstruktur ist:
admin/picture_upload.php
images/apple/image.jpg
 
Zuletzt bearbeitet:
Ich hab die Lösung schon gefunden.
Man muss in der Datei picture_upload.php
PHP:
&nbsp;
löschen.
PHP:
// delete the picture
		@unlink($del_p);




		//	When the user deletes an image GL can "break" the page
		//	if the "Image source is relative to site root" box is checked.
		//	This method will replace a deleted image with a non-breaking
		//	space "&nbsp;".
		//	If you want to use an image (ie; placeholder.gif), then
		//	"placeholder.gif" will = [url]http://yoursite.com/placeholder.gif[/url]
		//	make sure you put this file there or you will get the dreaded
		//	"missing image" icon.
		//	
		$HTTP_POST_VARS[$df] ="";
 
Zurück
Oben Unten