|
As Nullpointer said it seem quite simple already.
It may get a tiny bit simpler by correcting data (using stripslashes for example) before putting it in your database, instead of when you're retrieveing it. That way you can do all the necessary checks on all data at the same place and you know that all data in the database is correct and won't need any extra formatting when being output.
And, correct me if I'm wrong, but by using mysql_fetch_array() the keys in $rows will be 0, 1 and 2, not 'code', 'code1' and 'code2'. You shoule be using mysql_fetch_assoc().
__________________
Your answers will only be as good as your question. Formulate it well and give all the necessary information.
|