Ver Mensaje Individual
  #6 (permalink)  
Antiguo 21/04/2010, 09:29
den_22
 
Fecha de Ingreso: enero-2010
Mensajes: 198
Antigüedad: 14 años, 4 meses
Puntos: 1
Respuesta: Parse error !

Código PHP:
Ver original
  1. <?php
  2. include("connect.php");
  3.  
  4. $id=$_SESSION['id'];
  5. $usuario=$_SESSION['usuario'];
  6.  
  7. if ($picture=="none") {
  8. $picture="";
  9.    
  10.  
  11.    
  12.   if ($upload)
  13.   {
  14.    
  15.    if ((!$url)&&($picture))
  16.    {
  17.      if (!copy($picture,"pictures/"m"".$usuario."_".$picture_name)){
  18.         echo ("<br>Fallo al subir '$picture_name' ... <br>\n"); }
  19.     $url="m"".$usuario."_".$picture_name;
  20.   };
  21.  
  22. if ($type=="Main"){
  23.    
  24. q("update prueba set type='Public' where type='Main' and usuario='$usuario'"); 
  25. }
  26. if ($url){ 
  27. q("insert into prueba values('','$usuario','$url','$description','$type','".strtotime(date("d M Y H:i:s"))."','$uploadpicturedisabled')");
  28. }
  29. };
  30.  
  31. if ($edit&&$picid)
  32. {
  33. if ($type=="Main"){
  34.     q("update prueba set type='Public' where type='Main' and usuario='$usuario'");
  35.    
  36. q("update prueba set details='$description', type='$type' where id='$picid' and usuario='$usuario'");
  37. };
  38.  
  39. if ($delete&&$picid)
  40. {
  41. q("delete from prueba where id='$picid' and usuario='$usuario'");
  42. };
  43.  
  44.  
  45. }
  46.  
  47. ?>

Abri y cerré las llaves que faltaban. pero igual