Lazyy Posted September 3, 2004 Report Share Posted September 3, 2004 Kā var parbāudīt vai ir savienojums ar datubāzi. Link to comment Share on other sites More sharing options...
рпр Posted September 3, 2004 Report Share Posted September 3, 2004 ja tu domaa ar mysql, tad mysql_connect() atgriezj false, ja nepiekonekteejaas. ar mysql_error() utt Link to comment Share on other sites More sharing options...
Lazyy Posted September 3, 2004 Author Report Share Posted September 3, 2004 Jā , sorry es domāju mysql, bet mysql_connect () ir savienojums ar serveri (cik es saprotu). mysql_error() hm... domaaju derees.Paldies. :huh: Link to comment Share on other sites More sharing options...
Roze Posted September 3, 2004 Report Share Posted September 3, 2004 @mysql_connect('hosts','useris','parole') OR die('nevaru piesleegties'); vai teiksim if(!@mysql_connect('hosts','useris','parole')) { echo 'nevaru piesleegties iemesls :'.mysql_error(); } else { echo 'viss okej'; } Link to comment Share on other sites More sharing options...
Recommended Posts