Default Re: Mga Tanong tungkol sa PHP, CSS, jquery, HTML at MySQL pasok D2
Pa help sa update code ko po, na-uupdate niya kasi lahat ng nasa tables ko.
ano po problem sa query?
Here's my code for my update, the problem is when i submit, it updates all the data in my table.. what is wrong????
Code:
<?php
include("connect.php");
if(isset($_POST['submit']))
{
$upd="update news set title='$_POST[title]',date='$_POST[date]',post='$_POST[post]'";
$up=mysql_query($upd);
$msg="you have updated";
}
?>
Reply With Quote
lastgame2007 -3 Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.