nemakuphp Posted May 27, 2008 Report 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
martins256 Posted May 27, 2008 Report 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) {}
Grey_Wolf Posted May 27, 2008 Report 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
nemakuphp Posted May 27, 2008 Author Report Posted May 27, 2008 pirmais ieraksts no MySQL db otrs ieraksts no formas
Grey_Wolf Posted May 27, 2008 Report 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)
nemakuphp Posted May 27, 2008 Author Report Posted May 27, 2008 (edited) EDITED: Paldies mārtiņ un grey_wolf. Laikam aizgāja Edited May 27, 2008 by nemakuphp
Recommended Posts