01-24-2011, 10:26 AM
|
#1 (permalink)
|
|
The Acquainted
Join Date: Feb 2008
Posts: 107
Thanks: 3
|
Need suggestion about sleeping processes
Hello,
I got too many sleeping requests after I run a script. I need your suggestions, what I am doing wrong ?
The script has these;
PHP Code:
ini_set('max_execution_time',7);
$baglan = @mysql_connect($host,$dbuser,$dbpass); @mysql_select_db("$database");
$sorgu = mysql_query("select * from dle_post where title ='$isim'"); if (mysql_num_rows($sorgu) < 1) {
$uzun = addslashes($uzun); $finalkisa = addslashes($finalkisa); $prgisim = addslashes($prgisim);
mysql_query("INSERT INTO dle_post (title,date,short_story,full_story,category,autor,approve,alt_name) values ('$isim', '$zaman', '$finalkisa', '$uzun','$category', '$author', '1', '$nee')");
mysql_close($baglan);
|
|
|