The following program lists the data of that ID after you enter the ID.Then you can modify and write. (isset($id))
{
if(!mysql_connect("localhost","username","password"))
{echo "Unable to connect to the database";
exit() ;
}
if(isset($url))
{
$query="update $jpg set id='$id',url='$url',mess='$mess ',
fromx='$fromx',url1='$url1',mess1='$mess1',fromx1='$fromx1',url2='$url2',
mess2='$mess2', fromx2='$fromx2',url3='$url3',mess3='$mess3',fromx3='$fromx3'
where id='$id'" ;
$result=mysql_db_query("elong" ,$query); //Perform writing
if (!$result)
{echo "An error occurred!";
exit();
}
echo "$id has been updated !
";
echo "
ID | $id |
url address | $url |
Small image | $mess tr>n |
Description | $fromx |
url address 1 | n |
Picture 1 | $mess1 | $fromx1n 🎜> | n ;tr>n | url address 3 | $url3n ;n |
Instruction 3 | $fromx3 |