Update statement with PHP

This shows you how to update a sql query in php.

<?php
include 'dbloc.php';

$query = “UPDATE address SET name = ‘SQLTEST’ WHERE db_id = 2339″;

mysql_query($query) or die(’Failed to update’);

?>

No Comments »

No comments yet.

RSS feed for comments on this post. TrackBack URL

Leave a comment