Equivalent of explode() to work with strings in MySQL

MYSQL has no explode() like function built in. But you can easily add similar function to your DB and then use it from php queries. That function will look like: Usage: The example above will return apple. I think that it will be impossible to return array in MySQL so you must specify which occurrence … Read more

How can I use jQuery to run MySQL queries?

You can use ajax to call a server page (PHP / ASP /ASP.NET/JSP ) and in that server page you can execute a query. http://api.jquery.com/jQuery.ajax/ HTML Javascript This code will be excuted when user clicks on the button with the id “btnVote”. The below script is making use of the “ajax” function written in the … Read more