Login Register

mysql

querying a mysql db?

I'm working on a project where I'm wanting to have the user click on a link which will run a select query on my mysql db and trigger a lightbox affect with the results of the db query in the new div. I've spent the last several hours trying to learn my way around Dojo and I'm not seeing a function to perform a db query.

Can someone point me in the right direction?

tia,
jeremy

Bringing PHP, MySQL, and Dojo together

I made a pact that I’d add documentation on how to use PHP, MySQL, and Dojo together, when finishing the Dojo ItemFileReadStore demo. It’s not easy to format a JSON specific file with PHP, which includes special characters and requires JSON members. With several PHP JSON encoders out there, I recommend using the PHP encoder which came bundled with the toolkit (dojo/tests/resources/JSON.php).

Dynamic Tree From Database

I know there were a lot of people out there wanting to make a dynamic tree from a database. Here's the basic idea of what to do. If anyone wants some more concrete examples, I can add some code later.

I was using Struts 2, Spring, Hibernate and a MySQL database.

I wrote an action to parse my database into JSON and send it to the client via HTTP. I actually found a website with a good example, but unfortunately I didn't bookmark it. The basic idea is that you create a JSONObject, call toString on it, create a PrintWrite from the HttpResponse object and write the JSON string to it.

Using PHP 5.2.5 and MySQL 5 to populate a Dojo 1.1.0 Tree Widget

Hi Im working on this project for the company, and finally i found a decent tutorial, but by using the php5.2.5 and dojo 1.1.1 i can't seem to get this to work.
http://dojo.jot.com/WikiHome/Tutorials/Using%20PHP%20and%20MySQL%20to%20...
im like a newly born baby for AJAX/DOJO, took advanced java class in college and that's it.

DEMO
http://www.treetops-llc.com/etc/dojo/treedemo/eisleytree.html

so i know php5.2.0 and up is built in with json
however the tutorial's is not.. it's using the service_json.

Combobox and MySql

Hi,
I want to make a combobox which display the contenent from MYSQL I was searching for goods examples but I can't found anything, any one can help me.

My approach is using php but can't found samples...

Camilo

Syndicate content