Platform: Windows 98
Mysql version: Mysql 3.22.34-shareware
Web server: Apache

I am running a PHP code. When I run the program for two times there is no problem then 
it alerts database not found. Then I stop mysql and run again then it runs properly 
for two times again. I don't know if the problem is because of my Windows or an error 
in the program. Here is the php code.

<?php
MYSQL_CONNECT("localhost","root","") OR DIE ("Veritabanina baglanamadi");
@mysql_select_db("mis") or die("Veritabani bulunamadı"); 

$strSQL = "SELECT * FROM servis WHERE isim LIKE '%$search%' || soyisim LIKE 
'%$search%' || unvan LIKE '%$search%' || mail LIKE '%$search%' || cep LIKE '%$search%' 
|| ev LIKE '%$search%'";

$sonuc = mysql_db_query("mis",$strSQL);

while ($row = mysql_fetch_array($sonuc))
 { 
          echo "<B>Kayıt no:</B> " . $row['id'] . "<br>";
          echo "<B>İsim:</B> " . $row['isim'] . "<br>";
          echo "<B>Soyisim:</B> " . $row['soyisim'] . "<br>";
          echo "<B>Ünvan:</B> " . $row['unvan'] . "<br>";    
          echo "<B>Mail:</B> " . $row['mail'] . "<br>";
          echo "<B>Cep:</B> " . $row['cep'] . "<br>";
          echo "<B>Ev: </B>" . $row['ev'] . "<br>";
          echo "<br>";

    }
?>


Reply via email to