Can you select and update in the same query? I\'m trying to count views to create a top blog posts by views for my sidebar.
$sql = mysql_query(\"SELECT * FRO
Basically, NO, you cannot SELECT and UPDATE with the same query. Your only option would be to write a STORED PROCEDURE which is a more advanced technique of database interaction.
SELECT
UPDATE
STORED PROCEDURE