CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> Español

 duda con while en php

Print topic Send  topic

Author Message
mveraa

Posts: 49
Posted: 01/05/2008, 2:16 PM

hola maestros estoy intentando eliminar un grupo de fotos la cantidad la obtengo de una query

$db1=new clsDBConnection1();
$a="SELECT foto FROM fotos WHERE id_propiedad=".CCGetFromGet("id");
$sql=$a;
$db1->query($sql);

while ($db1->next_record())
{
$foto1=$db1->f('foto');
if (file_exists($camino.$foto1))
{
unlink($camino.$foto1);
}

}


bueno son 3 elementos a eliminar pero solo elimina 2.......¿algua idea que podria hacer?

Saludos.
View profile  Send private message
lvalverdeb

Posts: 299
Posted: 01/07/2008, 7:17 AM

Podría ser que uno de los nombres de archivo en tu tabla esté mal escrito y la función file_exists está retornando falso.

_________________
lvalverdeb
CR, GMT-6
XAMPP/Ubuntu/CCS3.2/4
View profile  Send private message
mveraa

Posts: 49
Posted: 01/07/2008, 10:12 AM

ok. gracias por la orientacion. chequeare el tema.


Saludos.
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Internet Database

Visually create Web enabled database applications in minutes.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.