$pc_sql = 'DELETE from pictures WHERE pic_id = '.$pc_num_ed; if($vbulletin->db->query_write($pc_sql)) {