hi there friends..
hope you guys are in greatest of condition..
okay, 2 question for today is..
how do i have more than 1 condition in a SQL query..
do i use the 'AND' thingy??
for example..
$query = mysql_query("SELECT * FROM names WHERE first_name = 'Mike' AND first_name = 'Joe' ");
i tried that, but it doesnt seems to return any value..
even though theres a guy name "mike Shinoda"
and a guy name "joe Han"
is there something wrong with my query?
and here's another question on database..
how do i highlight the word in a chunk of text,
(or bold it) based on the text query..
i know if i have the following sentences..
"my dad is a secret agent man"
"i have a little secret"
and i use this query...
$query = mysql_query("SELECT * FROM notes WHERE first_name contents like 'secret' ");
so the result will bold the word secret in the result echoed
2 matches found
"my dad is a secret agent man"
"i have a little secret"
===
Secondly...
i am used to write my code using notepad..
sometimes.. my line of code is so long..
like a SQL query.. so i have to scroll vertically
if i try to press enter.. it usually doesnt work...
i think because PHP think that it is a new line...
is there any way i can do this efficiently..???
lastly..
this is about error checking..
is there anyway i can ask PHP
to detect which line my code is wrong..
ya know, sometimes i might forgot to put the ';' sign..etc
and i spent quite sometimes looking fer it..
normally, if my code has error.. `
it doesnt return anything.. a.k.a a blank screen...
by the way, other than dreamweaver..
any nice application used to write php code??
i'd love something as light and simple as notepad.exe
but perhaps.. with line numbering.. and maybe..
just maybe... syntax color coding...
know anything like that anybody??
anyway,
thanks fer yer time..
i wish yer all the best in todays work...
thanks in advanced..
-jassh