nemakuphp Posted May 27, 2008 Report Share Posted May 27, 2008 (edited) Kas jāraksta pie if, la pārbaudītu vai ieraksts no datubāzes sakrīt ar citu ierasktu? Edited May 27, 2008 by nemakuphp Link to comment Share on other sites More sharing options...
martins256 Posted May 27, 2008 Report Share Posted May 27, 2008 Pieņemu, ka mysql if(mysql_result(mysql_query("SELECT COUNT(*) FROM t1,t2 WHERE t1.l = t2.l"),0,'COUNT(*)') > 0) {} Link to comment Share on other sites More sharing options...
Grey_Wolf Posted May 27, 2008 Report Share Posted May 27, 2008 (edited) vai ieraksts no datubāzes sakrīt ar citu ierasktu? isakies mazliet skaidraak ieraksts 1 no DB --> tas skaidrs ieraksts 2 ?? arii no Db , tas pashas tabulas , no formas, mainiigaa vertiiba??? Kas? Edited May 27, 2008 by Grey_Wolf Link to comment Share on other sites More sharing options...
nemakuphp Posted May 27, 2008 Author Report Share Posted May 27, 2008 pirmais ieraksts no MySQL db otrs ieraksts no formas Link to comment Share on other sites More sharing options...
Grey_Wolf Posted May 27, 2008 Report Share Posted May 27, 2008 nemakuphp --> uzreiz vajadzeeja taa ;) tad : SELECT count(*) AS skaits FROM tabulis WHERE rows_kas_jasaliidzina ='{$_POST['formas_lauks']}' izpildi vaicajumus & savaas rezultaatu un talak jau parbaudi vai sanjemtais rezultaats ir 0 (nesakriit) vai kats cits Ints (atrastaas sakritiibas) Link to comment Share on other sites More sharing options...
nemakuphp Posted May 27, 2008 Author Report Share Posted May 27, 2008 (edited) EDITED: Paldies mārtiņ un grey_wolf. Laikam aizgāja Edited May 27, 2008 by nemakuphp Link to comment Share on other sites More sharing options...
Recommended Posts