When trying to update a table, the following works only occasionally;
it doesn't work reliably. Can anyone show me where I'm going wrong,
please?
// $commenrts_new is the data from the form ;
$Query="SELECT comments FROM clients WHERE id='$cli_update _id' ";
$Result=mysql_d b_query ($DBName, $Query, $Link);
while ($Row=mysql_fet ch_array ($Result))
{
$comments_old=$ Row[comments];
}
$comments=$comm ents_old." <br>".$comments _new;
$Query="UPDATE clients SET comments='$comm ents' WHERE
id='$cli_update _id' ";
$Result=mysql_d b_query ($DBName, $Query, $Link);
TIA.
it doesn't work reliably. Can anyone show me where I'm going wrong,
please?
// $commenrts_new is the data from the form ;
$Query="SELECT comments FROM clients WHERE id='$cli_update _id' ";
$Result=mysql_d b_query ($DBName, $Query, $Link);
while ($Row=mysql_fet ch_array ($Result))
{
$comments_old=$ Row[comments];
}
$comments=$comm ents_old." <br>".$comments _new;
$Query="UPDATE clients SET comments='$comm ents' WHERE
id='$cli_update _id' ";
$Result=mysql_d b_query ($DBName, $Query, $Link);
TIA.
Comment