...

View Full Version : How Do I Create A Link That Runs A MySql Query When Pressed!!



-CrAzY-
08-12-2007, 01:17 PM
I Want To Create A Link, And When You Press That Link It Runs A MySql Query
Can Someone Post The code Here, Thanks!!

rafiki
08-12-2007, 01:26 PM
no body is goin to do it for you, if you have code post it and people will help you get it working, otherwise pay someone.

Yaggles
08-13-2007, 05:19 AM
That is too broad of a request.
First, if you want it to run the query without a new page loading, you'll need some AJAX integrated. If you don't mind a new page loading, then it's simple PHP/MySQL. But we need to know WHAT you're wanting to do also.

If you have any code that you've already got made could you please post it here so we can look at it and see what we can do? :) If not, I suggest finding someone who you can pay to do what you want. :)

Len Whistler
08-13-2007, 06:17 AM
I Want To Create A Link, And When You Press That Link It Runs A MySql Query
Can Someone Post The code Here, Thanks!!

Here is two I use, but you are better off getting a PHP/MySQL book because a MySQL database query is PHP/MySQL 101.


$total_results = mysql_result(mysql_query("SELECT COUNT(*) as Num FROM images"),0);


$result = mysql_query("SELECT * FROM images WHERE image_id = '$image_id'");



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum