$value){ $value = addslashes($value); if ($key == 'submit') continue; $qry = "update wdim_profile set $key = '$value' where id = '$id'"; $sql = mysql_query($qry); if (!$sql) echo mysql_error(); } if ($_FILES['logo']['tmp_name'] != ''){ $filetypes = array('image/png'=>'png','image/jpeg'=>'jpg','image/gif'=>'gif'); $type = $_FILES['logo']['type']; $ext = $filetypes[$type]; move_uploaded_file ($_FILES['logo']['tmp_name'],'logos/'.$id.'.'.$ext); } if ($_FILES['profile']['tmp_name'] != ''){ move_uploaded_file ($_FILES['profile']['tmp_name'],'profilepics/'.$id.'.jpg'); } } $get = mysql_query("select * from wdim_profile where id = '$id'"); $getrow = mysql_fetch_array($get); ?>

Upload Logo:

'; } if (file_exists('logos/'.$id.'.png')){ echo ''; } if (file_exists('logos/'.$id.'.gif')){ echo ''; } ?>

Upload Profile Pic:

'; } ?>

Bio


Info