Artenis Posted November 20, 2008 Report Share Posted November 20, 2008 Tātad ir pilnīgi vienādi faili, pilnīgi vienādas datubāzes, bet uz mana wamp šāda rindiņā iet, bet uz datateks servera neiet... Sintakse nav tāda vai kā?? if(!isset($_GET['edit_t'])){ $pie=$this->last_tame_id(); }else{ $pie=(int)$_GET['edit_t']; } $result=mysql_query("select * from $tb9 where liet_pie='".$_SESSION['id']."' and ds_r_piesaiste='".$pie."' order by ds_id desc"); Nojaucies esmu lizd nelabumam un nevaru saprast kādēļ tā... mysql_fetch_assoc met uz datateks erroru... Kāds varbūt zin kādu ieteikumu?? Paldies. Link to comment Share on other sites More sharing options...
Aleksejs Posted November 20, 2008 Report Share Posted November 20, 2008 Vai vaicājums formējas pareizs? Kādu tieši kļūdu met? Link to comment Share on other sites More sharing options...
Klez Posted November 20, 2008 Report Share Posted November 20, 2008 varbuut erroru paraadiisi ? mysql_query($q) or die(mysql_error()); Link to comment Share on other sites More sharing options...
andrisp Posted November 20, 2008 Report Share Posted November 20, 2008 Artenis, pastāsti savu motivāciju, kāpēc uzreiz neiepeisto šeit kļūdas paziņojumu. Nu tiešām. Link to comment Share on other sites More sharing options...
Artenis Posted November 20, 2008 Author Report Share Posted November 20, 2008 (edited) motivāciju nepateikšu!! :) Kļūda: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'where liet_pie='6' and ds_r_piesaiste='87' order by ds_id desc' Cik saprotu tad MySQL versija, bet kā ta, lai es to sintaksi salaboju? Uz mana servera tas vaicājums ir pareizs, nekādu erroru nemet, bet padod normālus datus ar tām pašam vērtībām! :\ Edited November 20, 2008 by Artenis Link to comment Share on other sites More sharing options...
andrisp Posted November 20, 2008 Report Share Posted November 20, 2008 Uztaisi echo "select * from $tb9 where liet_pie='".$_SESSION['id']."' and ds_r_piesaiste='".$pie."' order by ds_id desc"; Un parādi mums. Link to comment Share on other sites More sharing options...
Aleksejs Posted November 20, 2008 Report Share Posted November 20, 2008 Minēšu - mainīgais $tb9 ir tukšs. Link to comment Share on other sites More sharing options...
Artenis Posted November 20, 2008 Author Report Share Posted November 20, 2008 (edited) select * from where liet_pie='6' and ds_r_piesaiste='87' order by ds_id desc šādi te, pats it kā neredzu, kur varētu būt vaina... Edited November 20, 2008 by Artenis Link to comment Share on other sites More sharing options...
Artenis Posted November 20, 2008 Author Report Share Posted November 20, 2008 (edited) select * from where liet_pie='6' and ds_r_piesaiste='87' order by ds_id desc šādi te, pats it kā neredzu, kur varētu būt vaina... Man liekas, ka redzu vainu... :) stulba tāa bišku! :)... Vaina tur, kur jocīgā kāŗtāman neņēma $tb9. Paldies! :) Edited November 20, 2008 by Artenis Link to comment Share on other sites More sharing options...
Kaklz Posted November 20, 2008 Report Share Posted November 20, 2008 nu ja tu mysql nesaki no kuras tabulas datus atlasīt, tad diez vai viņš kaut ko tev tur atlasīs. Tb. Aleksejs, Today, 13:11Minēšu - mainīgais $tb9 ir tukšs. Link to comment Share on other sites More sharing options...
Recommended Posts