PHP:
скопировать код в буфер обмена
скопировать код в буфер обмена
- <?PHP
- if ($text) {
- $sql="SELECT theme FROM comment WHERE theme='$buffer'";$result=mysqli_query($db,$sql);$a=mysqli_num_rows($result);
- if($a>0){echo 'ok'.$a;
- }else{
- $resultloc = "INSERT INTO comment (theme) VALUES ('$buffer')";$res=mysqli_query($db,$resultloc);if($resultloc==true){echo $buffer.'-yes<br>';}else{echo 'net';}
- }}
- }
- ?>