PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
Hey all,
I am fairly new to php and programming in general and I am having problem with this. What I have is a multiple selection box. I also have 2 arrays and I need to compare them to see if they match. If any of the items match I need that item to be selected if it doesn't match I don't want it to be selected. Here is what I have but isn't working. The info is take from a mysql database.
You were printing every single value in $sel_projects for each item in $projects->result(). There is probably a more elegant way to handle this, but the flag works just fine.
mysql_function(): WARNING: This extension is deprecated as of PHP 5.5.0, and will be removed in the future. Instead, the MySQLi or PDO_MySQLextension should be used. See also MySQL: choosing an API guide and related FAQ for more information.