include("admin/ps/ps.php"); //include("index2.php"); $pid=$_GET['pid']; $ptb=$_GET['ptb']; $tfs=""; //$dn=$_GET['dn']; //$dv=$_GET['dv']; //$s=$_GET['s']; //$t=$_GET['t']; $id=$_GET['id']; function gsfdit($dn,$dv,$s,$t){ global $conn; $query = mysqli_query($conn, "SELECT * FROM $t where $dn='$dv'"); $row2 = mysqli_fetch_array($query); //$row2 = mysqli_fetch_array(mysqli_query($conn, "SELECT * FROM $t where $dn='$dv'")); return "".$row2[$s].""; } function nowtimeD(){ return date("Y-m-d"); } $sqlpid="Select * from t_$ptb where id_$ptb=$pid"; global $conn; $wynikpid = mysqli_query($conn, $sqlpid); $rowpid = mysqli_fetch_array($wynikpid); $file="pliki/".$rowpid['url1'].""; $fd = fopen ($file, "r"); //if ($contents){ global $conn; $contents = fread ($fd, filesize ($file)); fclose ($fd); //} $contents=str_replace("
", "",$contents); $a = explode('', $a[1]); unset($b[0]); $c = ''; foreach($b as $x) $c .= $x.'>'; $d = explode('',$c); $d[0] = strtr($d[0], "\xA5\x8C\x8F\xB9\x9C\x9F","\xA1\xA6\xAC\xB1\xB6\xBC"); $tfs.="".$d[0]." |