Skip to content

Tag: sql

What does this $_SERVER[‘REQUEST_METHOD’] === ‘POST’ do?

A little new to php and reading some people’s code and saw this: I get what isset(…) is doing but don’t understand the what the first if statement. Especially because the if statement was working when my request method was GET but wasn’t when my request method was POST Answer say your …

MSSQL DATABASE CONNECTION WITH PHP

Please i am trying to connect to an mssql database on a different machine. Below is my code but i just keep getting a blank page. I dont know what the issue may be. i have installed php and the mssql drivers. Answer I would suggest that you display the connection error using sqlsrv_errors(). Load the PHP driv…

Inserting data into MySQL from a dropdown

I’m trying to make a dropdown list that allows users to select a training program that matches their needs, so when they select it, the option will go into a table in the MySQL database. This is my HTML form: What I need is an SQL query that will go with it, so when they select ‘Example option 3&#…