Added insertRowEx function
This commit is contained in:
parent
83a378b4c2
commit
4ac4245672
|
@ -63,6 +63,12 @@ function FetchData($conn, $tableName)
|
|||
}
|
||||
}
|
||||
|
||||
function insertRowEx($conn, $tableName, $dataCols, $dataValues, $dataOptions)
|
||||
{
|
||||
$stmt = sqlsrv_query($conn, "INSERT INTO [$tableName] ($dataCols) VALUES ($dataValues)", $dataOptions);
|
||||
return (insertCheck($stmt));
|
||||
}
|
||||
|
||||
function PopulateTable($conn, $tableName)
|
||||
{
|
||||
$dataCols = 'Pagename,URL,Description,Keywords';
|
||||
|
|
Loading…
Reference in a new issue