I need to know either my PHP script could delete some data from data base, or couldn’t.
For example I have JS function public void removeNumber(); How i can to know that data was removed correctly? May be i must to return from server some String that indicates success or failure attempting to remove data from db? public String removeNumber(); What is best practices? I know that better to throw exception, but in this case client and server both must know about Exception class (class mapping).
P.S.
I use ajax.
I need to know either my PHP script could delete some data from data
Share
Using ajax would be an easier & better solution. And using jquery ajax would be easier, like.
Hope it helps