how to execute mysql query in php?

This forum is for Database developer ( PostgreSQL, MySQL, SQL Server, Oracle etc...) and database Administrator
mohit123
Posts: 162
Joined: Sat Sep 20, 2014 11:29 pm
Contact:

how to execute mysql query in php?

Postby mohit123 » Sat Sep 19, 2015 4:23 pm

how to execute mysql query in php?


mohit123
Posts: 162
Joined: Sat Sep 20, 2014 11:29 pm
Contact:

Re: how to execute mysql query in php?

Postby mohit123 » Sat Sep 19, 2015 4:25 pm

use below code:

query = "UPDATE table SET table_count = '1' WHERE table_approved = '0'";
$result = mysql_query($query) or die(mysql_error());


Return to “PostgreSQL, MySQL, SQL Server, SQL,PL/SQL, TeraData Developer and DataBase Administration”

Who is online

Users browsing this forum: No registered users and 2 guests