6
if ($myrow['Noticia'] !== '<' && $myrow['Noticia'] !== 'Nao') {
echo "Noticia mal colocada!";
}
I have this code and I’d like you to just check the first character of the column Noticias
that would be this <
and if I didn’t have this character at first, and it was different from Nao , presented the message.
you can add the (s) example(s) of the correct string(s))?
– Sergio
$Myrow just get the columns from my table, nothing more..
– thecreator
but if you want to compare/analyze
$myrow['Noticia']
You’re comparing/analyzing a string, right? My question is, what are the correct values$myrow['Noticia']
have inside you want to check. Gives example(s) of right and wrong cases to better understand the problem...– Sergio
I’m sorry, but I don’t understand your question/question :
– thecreator
What I wanted was for PHP to just check if the column is
<
or not. if no message appears ..– thecreator
So you want to check if the string starts with
<
right? and besides you want to check if it’s different from "No". Right?– Sergio
All right, that’s right, buddy!
– thecreator