This example illustrates how to create the variable in php for sql operation.
In this example we create a variable $con for mysql connection and $update for query. The sign ($) is used to create the variable in php.
Table: emp_table before insertion

Table: emp_table after insertion

Source Code of sql_variable.php
<?php
|
Output:

If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.