Pomoc - Szukaj - Użytkownicy - Kalendarz
Pełna wersja: WAMP5 error :/
Forum PHP.pl > Forum > PHP
sanchoo
Witam! mam stronke ktora dziala na sererach jak wysle... postawilem sobie serwer u siebie WAMP5

wszystko smig .. spr. ppinfo jest ok.

a jak odplam swoja stronke wywla mi tkai skromny blad:


  1. <?php
  2. "some column name", "colDir" => SRT_ASC, "compareFunc" => "myCompareFunction" ), .......................... ) 
  3. "compareFunc" element is optional - NULL by default and by default the class internal compare is used. If 
  4. External compare function is supplied it must conform to the following requirements: ~ Accept two T_STRING 
  5. parameters and return: 0 - if parameters are equal 1 - if first parameter is greater than second -- if second parameter is greater than first */ var $sortDef = NULL; //Constructor function arr_multisort(){ $this->arr = array(); $this->sortDef = array(); } //setArray method - sets the array to be sorted function setArray(&$arr){ $this->arr = $arr; } /* addColumn method - ads entry to sorting definition If column exists, values are overwriten. */ function addColumn($colName="",$colDir=SRT_ASC,$compareFunc=NULL){ $idx = $this->_getColIdx($colName); if($idx < 0){ $this->sortDef[] = array(); $idx = count($this->sortDef)-1; } $this->sortDef[$idx]["colName"] = $colName; $this->sortDef[$idx]["colDir"] = $colDir; $this->sortDef[$idx]["compareFunc"] = $compareFunc; } //removeColumn method - removes entry from sorting definition function removeColumn($colName=""){ $idx = $this->_getColIdx($colName); if($idx >= 0) array_splice($this->sortDef,$idx,1); } //resetColumns - removes any columns from sorting definition. Array to sort is not affected. fun
    ction resetColumns(){ $this->sortDef = array(); } //sort() method function &sort(){ usort($this->arr,array($this,"_compare")); return $this->arr; } //_getColIdx method [PRIVATE] function _getColIdx($colName){ $idx = -1; for($i=0;$isortDef);$i++){ $colDef = $this->sortDef[$i]; if($colDef["colName"] == $colName) $idx = $i; } return $idx; } //Comparison function [PRIVATE] function _compare($a,$b,$idx = 0){ if(count($this->sortDef) == 0) return 0; $colDef = $this->sortDef[$idx]; $a_cmp = $a[$colDef["colName"]]; $b_cmp = $b[$colDef["colName"]]; if(is_null($colDef["compareFunc"])){ $a_dt = strtotime($a_cmp); $b_dt = strtotime($b_cmp); if(($a_dt == -1) || ($b_dt == -1) || ($a_dt == false) || ($b_dt == false)) $ret = $colDef["colDir"]*strnatcasecmp($a_cmp,$b_cmp); else{ $ret = $colDef["colDir"]*(($a_dt > $b_dt)?1:(($a_dt < $b_dt)?-1:0)); } } else{ $code = '$ret = ' . $colDef["compareFunc"] . '("' . $a_cmp . '","' . $b_cmp . '");'; eval($code); $ret = $colDef["colDir"]*$ret; } if($ret == 0){ if($idx < (count($this->sortDef)-1)) return $this->_compare($a,$b,$idx+1); else return $ret; } else return $ret; } } ?>
  6. Warning: mysql_errno(): supplied argument is not a valid MySQL-Link resource in C:wampwwwservicespearD
  7. Bmysql.php on line 694
  8.  
  9. Warning: mysql_errno(): supplied argument is not a valid MySQL-Link resource in C:wampwwwservicespearD
  10. Bmysql.php on line 694
krowal
To znaczy, że w linii 694, korzystając z funkcji mysql_errno() podajesz jej zły parametr, a dokładniej, podany parametr nie jest prawidłowym wynikiem zapytania MySQL. Czyli najpewniej źle napisałeś zapytanie SQL. A te komunikaty na początku to jakieś wewnętrzne komunikaty systemu obsługi błędów, zajrzyj do dokumentacji tego z czego korzystasz.

Ewentualnie standardowo sprawdź czy masz włączone/wyłączone register_globals smile.gif
To jest wersja lo-fi głównej zawartości. Aby zobaczyć pełną wersję z większą zawartością, obrazkami i formatowaniem proszę kliknij tutaj.
Invision Power Board © 2001-2025 Invision Power Services, Inc.