Ok today we're going to create a quick and simple mysql command line via php. first we need to make our form:
Ok heres the lodown we choose an action of the page itself, and the method as post, we then have an input for the command line itself, and a submit button named commandline. now we need to input that data:
Here what we're doing is first checking if the form is posted, then we're taking the data and stripping any slashes, then we're checking if it was able to, else we die and echo the error, if succesful we echo Query executed successfully!, now let's try putting all this together:
There you go!
Hope you understand this, have fun!






lol.
Reply With Quote
