Initial experience - it breaks ;)

From: Date: Mon, 19 Jul 1999 21:48:46 +0000
Subject: Initial experience - it breaks ;)
References: 1  Groups: php.version4 
Request: Send a blank email to php-version4+get-2262@lists.php.net to get a copy of this message
Okay, i've compiled it, put it online and... it breaks :) Most of the stuff works, but I've been getting weird MySQL and uksort() errors: First, MySQL: Warning: MySQL Connection Failed: Unknown MySQL Server Host (tdn_sections) (0) in tdn_functions.x on line 407 The piece of code: Function TDN_Frontpage_Sections() { global $sectionsdatabase,$sander,$pollcookie,$pollid; $p_sec="tdn_fp"; $q="select identifier,url from sections where section='$p_sec' order by added desc"; <407> $r=mysql($sectionsdatabase,$q); echo "Err.".mysql_error(); ... This is wack, because other mysql() calls to the same database, same table seem to work. Second, where uksort() previously worked, it doesnt now: Warning: Wrong datatype in uksort() call in include/ne_baselib.x on line 11 --- function key_desc($a, $b) if ($a == $b) return 0; return ($a > $b) ? -1 : 1; } functiOn ksort_desc($array) { <11> uksort($array,'key_desc'); } --- Both of these errors are new and I've never seen them before. So, I threw it offline again and I intend to figure it out later (tomorrow) If any of you have some brilliant ideas, lemme know. Sander

« previous php.version4 (#2262) next »