mysql update row if exists

hammatimebiatch

New Member
quick mysql php question.i have a a \[code\]$row['sentence']\[/code\] and another \[code\]$row['rank']\[/code\]i'm tryin to write a thing..that says..if you find ...these certain words in the \[code\]$row['sentence']\[/code\].. insert or update the \[code\]$row['rank']\[/code\] by anything i specify..ex. this sentence has badwords..so the \[code\]rank row\[/code\]..will become \[code\]1\[/code\].ex2. this sentence is cleanso the \[code\]rank row\[/code\] will become \[code\]5\[/code\]thanks..if i confused u ..tell..me i will try another way..
 
Back
Top