hi again my friend i have some question for u. have u ever used this plugin from jquery . its name is jatable its website is jtable.org . because i have some problems . i can not validate if i wanna add one user but if this user name already exists
2013/5/1 Chrystopher Medina <[email protected]> > really a lof of thanks my friend , now it works perfectly. i really > apreciate it > > > 2013/5/1 asgallant <[email protected]> > >> Your while loop should look like this: >> >> while($row = mysql_fetch_array($result)) { >> $temp = array(); >> $temp['DisplayText'] = $row['nombre_escolaridad']; >> $temp['Value'] = $row['id_escolaridad']; >> $rows[] = $temp; >> } >> >> On Wednesday, May 1, 2013 7:03:39 AM UTC-4, Chrystopher Medina wrote: >> >>> my friend i think that i have found the answer to my problem. but could >>> you help me to generate the next format json whit php >>> >>> i have this >>> >>> <?php >>> >>> $con = mysql_connect("localhost","**root","chrystopher"); >>> mysql_select_db("si_caoi", $con); >>> >>> $result = mysql_query("SELECT * FROM escolaridad;"); >>> >>> >>> $rows = array(); >>> while($row = mysql_fetch_array($result)) >>> { >>> $rows[] = $row; >>> } >>> >>> >>> $ff = array(); >>> $ff['Result'] = "OK"; >>> $ff['Options'] = $rows; >>> print json_encode($ff); >>> >>> ?> >>> >>> and this the result in json: >>> >>> >>> {"Result":"OK","Options":[{"0"**:"2","id_escolaridad":"2","1":** >>> "Secundaria","nombre_**escolaridad":"Secundaria"},{"** >>> 0":"3","id_escolaridad":"3","**1":"Preparatoria","nombre_** >>> escolaridad":"Preparatoria"},{**"0":"4","id_escolaridad":"4","** >>> 1":"Licanciatura","nombre_**escolaridad":"Licanciatura"},{** >>> "0":"5","id_escolaridad":"5","**1":"Maestria","nombre_** >>> escolaridad":"Maestria"},{"0":**"6","id_escolaridad":"6","1":"** >>> primaria","nombre_escolaridad"**:"primaria"},{"0":"8","id_** >>> escolaridad":"8","1":"uj","**nombre_escolaridad":"uj"}]} >>> >>> >>> and what i wanna obtain is the next format json >>> >>> { >>> "Result":"OK", >>> "Options":[ >>> { >>> "DisplayText":"**Secundaria", >>> "Value":"2" >>> }, >>> { >>> "DisplayText":"**Preparatoria", >>> "Value":"3" >>> }, >>> { >>> "DisplayText":"**Licenciatura", >>> "Value":"4" >>> }, >>> { >>> "DisplayText":"**Maestria", >>> "Value":"5" >>> }, >>> { >>> "DisplayText":"**Primaria", >>> "Value":"6" >>> }, >>> { >>> "DisplayText":"uj", >>> "Value":"8" >>> } >>> ] >>> } >>> >>> >>> >>> 2013/5/1 Chrystopher Medina <[email protected]> >>> >>> my frined have u ever used this plugin named jtable ... >>> please check this >>> http://www.jtable.org/**Demo/Filtering<http://www.jtable.org/Demo/Filtering> >>> i >>> just wanna filtering but with php and in that example is in asp.netcould >>> you helme please. there is not documentation about how to use it on >>> php. >>> please my friend >>> >>> >>> 2013/4/24 Chrystopher Medina <[email protected]> >>> >>> i found the problem my friend i think that it was because linux is >>> sensitive to case sensitive >>> >>> >>> 2013/4/23 Chrystopher Medina <[email protected]> >>> >>> its a plugin to do crud aplications but it does not work on linux my >>> friend ... u know why >>> >>> >>> 2013/4/23 Chrystopher Medina <[email protected]> >>> >>> my friend i have the next file but this is not loaded on linux u know >>> why. because i downloaded a example from jtable.orj but i tried it on >>> windows and everything looks perfectly but on linux nothing >>> >>> >>> 2013/4/23 Chrystopher Medina <[email protected]> >>> >>> Thanks my friend >>> El 23/04/2013 10:59, "asgallant" <[email protected]> escribió: >>> >>> You can use that. The license is described here: https://jquery.org/** >>> license/ <https://jquery.org/license/> >>> >>> On Tuesday, April 23, 2013 12:56:06 AM UTC-4, Chrystopher Medina wrote: >>> >>> my friend i found a plugin to do crud aplications . but it contains this >>> >>> >>> * jQuery UI Sel >>> >>> ... >> >> -- >> You received this message because you are subscribed to a topic in the >> Google Groups "Google Visualization API" group. >> To unsubscribe from this topic, visit >> https://groups.google.com/d/topic/google-visualization-api/-zapZe7dH7Y/unsubscribe?hl=en >> . >> To unsubscribe from this group and all its topics, send an email to >> [email protected]. >> To post to this group, send email to >> [email protected]. >> Visit this group at >> http://groups.google.com/group/google-visualization-api?hl=en. >> For more options, visit https://groups.google.com/groups/opt_out. >> >> >> > > -- You received this message because you are subscribed to the Google Groups "Google Visualization API" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/google-visualization-api?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
