Re_Boot Posted April 27, 2008 Report Posted April 27, 2008 Emm, sveiki atkal! :D Man vajag palidzibu... Man ieksh MYSQL ir kads ROW kur ir shads teksts 'ABOLS GROZA' un IF(ABOLS GROZA) vinjs nepielauj! Ka var pateikt ka starp ABOLS GROZA ir atstarpe? Abols...Groza, Abols-Groza,Abols*Groza, tjip kautka ta( bet neviens no shiem variantiem man nesanaca )
werd Posted April 27, 2008 Report Posted April 27, 2008 (edited) Emm, sveiki atkal! :D Man vajag palidzibu... Man ieksh MYSQL ir kads ROW kur ir shads teksts 'ABOLS GROZA' un IF(ABOLS GROZA) vinjs nepielauj! Ka var pateikt ka starp ABOLS GROZA ir atstarpe? Abols...Groza, Abols-Groza,Abols*Groza, tjip kautka ta( bet neviens no shiem variantiem man nesanaca ) Es darītu šādi: //šeit izvelkam datus no datubāzes $tavs_text = $row['text'];//tas ir tas ABOLS GROZA if($tavs_text = "ABOLS GROZA"){ echo "viss ok"; } else{ echo "kkas nav"; } Edited April 27, 2008 by phpjanis
Re_Boot Posted April 27, 2008 Author Report Posted April 27, 2008 (edited) aa man pietruka "" :D Paldies. Edited April 27, 2008 by Re_Boot
Aleksejs Posted April 28, 2008 Report Posted April 28, 2008 Piebilde: nevis if($tavs_text = "ABOLS GROZA"){ bet gan if($tavs_text == 'ABOLS GROZA'){
Recommended Posts