Veritabanı bazen seçili değil

1 Cevap php

I have a strange problem. 5% of its time; i get the error "No Database selected". Only on a page where i use iframes; called from out tab script.

Burada "bazen sorun" sayfası:

http://www.thediscopalace.com/programtest.php

Every tab calls for a page and loads it into the iframe. The requested page get its content from the database like this:

$rsday1 = mysql_query($query_rsday1, $dbtdp) or die(mysql_error());

The connection is being asked with mysql_pconnect.
I tried mysql_connect but instead I got 100% the error.

I really cannot find the reason; i googled alot. I guess it has something to do with the MySQL; and not with the scripts. Maybe i'm wrong.

Bu kullanılan sekme betik:

http://www.dynamicdrive.com/dynamicindex17/ajaxtabscontent/

Iframe i tje jcarousel kullanın:

http://sorgalla.com/jcarousel/

Burada sunucu hakkında bilgiler

http://www.thediscopalace.com/info.php

Thanks for helping or passing any ideas. Dave

1 Cevap

Thanks for responding. I made some changes like:
- i put the connection data directly in the requested pages instead of require_once.
- I used < ? instead of < ? php

Kullanıcı o görevi yapmak için yeterli izni vardır. Bu erro zaman% 5 oluştu garip kalır. Çözümlerinde beni geçtin; onlar her zaman bu hata vardı.

Şimdi takip ve hata geri gelirse göreceksiniz.

Meanwhile, if somebody has some other ideas or resaons; please let me now. It's a kind of magic that happens here; i thought programming was a fact of 1 or 0. Not sometimes 1 or 0. :-)