php & mysql

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
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


Re: php & mysql wrote:
Quoted text here. Click to load it

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

Site Timeline