I have a php code that searches through a mysql table and prints blank / null areas. Now I want to print the message on the pop-up / modal window.
& lt ;? Php mysql_connect ('localhost', 'root', ''); Mysql_select_db ("user") or die (mysql_error ()); $ Emptyfield = array (); // $ row_count = 1; $ Sql = "Select * From User"; $ Res = mysql_query ($ sql); {$ Line = mysql_fetch_array ($ res)} {foreach ($ line as $ line = & gt; $ field) {if (! Is_integre ($ key) and empty ($ field)) {$ emptyFields =] sprintf (The field "% s" is empty / null on the entry "% d", $ key, $ line ['card_id']); }}} Echo fonts ('& lt; br & gt;', $ emptyFields); Echo sizeof ($ emptyFields); ? & Gt; How can I get it onto an 'expandable' modal page using javascript / jquery? Where a page is empty I have a column header and it also shows a detailed description link when clicking, spreads to give more details
There are several plugins that allow modal functionality with jQuery Allow. You can use the jQuery UI and you can use it in the "dialog" function. Another simple plugin:
All of these can display HTML, so basically you just need to create your PHP script output in HTML DOM, and then to display data in a model, jQuery Use the plugin.
Comments
Post a Comment