php & mysql

php & mysql

am 22.09.2007 07:07:26 von onlysaket

Actually i wanted to delete the news one by one from my newsbulletin
table using php plz help


my table structure is like this newsid int

news varchar




with regards

saket

Re: php & mysql

am 22.09.2007 10:48:28 von geevaa

onlysaket@gmail.com wrote:
> Actually i wanted to delete the news one by one from my newsbulletin
> table using php plz help
>
>
> my table structure is like this newsid int
>
> news varchar
>
>
>
>
> with regards
>
> saket


get the MySQL database connection using mysql_connect() function
select the database using mysql_select_db()

have any for or while loop...
and pass the following query
delete from tablename where newsid='$newsid'

$newsid is the php variable whose value can incremented dynamically