Jump to content

ways to handle events in php?


CavemanUK

Recommended Posts

Hi,

 

Im still very new to php.. i was wondering how i would go about the following..

 

i have a table with records pulled from a mysql database like so....

 

name

address

phone number

[/td]

[td]John Smith

123 sdkfsdfh

2342342342

(e) (x)

Bob Jones

45 dsfjjhsdf

skj ksdjl skljd

(e) (x)

 

the (e) and (x) are just images and i wanted to make them clickable so i can delete or edit records.  I have done the edit already which simply hrefs a "edit" page but for the delete i wanted it to pop up a quick "are you sure" window and then just send the query to the database..

 

so my question is this..

 

if i make a function for doing this in php, how do i code the "(x)" to link to it and call it?

 

on a side note, is it possible to do "are you sure?" pop-ups too?

 

Thanks

 

 

Link to comment
https://forums.phpfreaks.com/topic/107171-ways-to-handle-events-in-php/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.