YUILibrary - Open source JavaScript and CSS for building richly interactive software.
Fork YUI on GitHub
  [ 6 posts ]

ady puffy

  • Username: ciungulete
  • Joined: Wed Jul 21, 2010 9:22 am
  • Posts: 3
  • Offline
  • Profile
Tags:

Mysql datafeed

Post Posted: Sat Jul 31, 2010 5:00 am
+0-
Hy all,
Who can help me with a datatable, i want too use datafeed from mysql, i try but DATA ERROR, pls help me with an example who work.

Thx

Satyam

YUI Contributor

  • Username: Satyam
  • Joined: Tue Dec 09, 2008 12:34 am
  • Posts: 1393
  • Location: Sitges, Spain
  • GitHub: Satyam
  • Gists: Satyam
  • YUI Developer
  • Offline
  • Profile

Re: Mysql datafeed

Post Posted: Sat Jul 31, 2010 6:34 am
+0-
I am not sure what you mean by a mysql datafeed. Usually, we deal with some server-side script, such as a PHP script that handles the MySql database. This works, there is no particular trick in this and you can find very many examples. So, allow me to assume you have a bug in your code and, since I can't see it, I can't help.

ady puffy

  • Username: ciungulete
  • Joined: Wed Jul 21, 2010 9:22 am
  • Posts: 3
  • Offline
  • Profile

Re: Mysql datafeed

Post Posted: Sat Jul 31, 2010 6:46 am
+0-
i need an example, a datatable from a mysql.

Satyam

YUI Contributor

  • Username: Satyam
  • Joined: Tue Dec 09, 2008 12:34 am
  • Posts: 1393
  • Location: Sitges, Spain
  • GitHub: Satyam
  • Gists: Satyam
  • YUI Developer
  • Offline
  • Profile

Re: Mysql datafeed

Post Posted: Sat Jul 31, 2010 7:30 am
+0-
I believe there is a basic misunderstanding: no browser can communicate directly with a database server. You need a PHP script or some such server-side script that will receive the request from the browser, query the database and then reply with the results.

On the browser side, this example:

http://developer.yahoo.com/yui/examples ... rjson.html

is what you would be looking for, just up to line 23 in the code box, the rest shows how to add further requests.

The server side depends on what scripting language you have installed, most of them have JSON encoders either built-in or as an add-on.

It will certainly help if you read the tutorials in the YUI Blog, which are linked from the DataTable's front page.

ady puffy

  • Username: ciungulete
  • Joined: Wed Jul 21, 2010 9:22 am
  • Posts: 3
  • Offline
  • Profile

Re: Mysql datafeed

Post Posted: Sat Jul 31, 2010 8:11 am
+0-
Thx dude, i try and work, sorry because i don`t read this tutorial, Thx again

suchetagautham

  • Joined: Fri Jan 22, 2010 2:46 am
  • Posts: 31
  • Offline
  • Profile

Re: Mysql datafeed

Post Posted: Sat Aug 07, 2010 1:53 am
+0-
Search for MySql rowset into json_proxy post on this Forum .

I have posted the code , see if it helps

Sucheta
  [ 6 posts ]
Display posts from previous:  Sort by  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum