Hi Tim, Wieringa Timotheus wrote: > Hello i'm just building my first qooxdoo application. Welcome to the qooxdoo project ;-)
> I try to get some > data out of a mysql database and display it in a list. I figured out how to > connect to the database and get my data. > But somehow the format of the data that i get back is wrong. Did you already check with e.g. Firebug what the response of your request looks like? Maybe the data is put together in a wrong way at the server side. Instead of doing a database query you can use some dummy data to test your php script. > And this is the php-code: > > $sql = "select REPNR, KID, FEHLER, EINH from reparatur WHERE RID='1'"; > $result = mysql_query("$sql"); > $daten = array(); > while ($row = mysql_fetch_assoc($result)) > { > $repnr=$row["REPNR"]; > $kid=$row["KID"]; > $fehler=$row["FEHLER"]; > $einh=$row["EINH"]; > > $daten []= $repnr; > $daten []= $kid; > $daten []= $fehler; > $daten []= $einh; > } > > echo json_encode($daten); I'm no PHP expert, but it would be interesting what output this "json_encode" method produces. Maybe you have to pass in your data in another way. > The "alert(content)" gives me ["blabla","bla","dved","dwq"] back. Again, it would be interesting how the data of the response looks like. Your current output is an array object rather than JSON data. cheers, Alex ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ qooxdoo-devel mailing list qooxdoo-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel