PHP_Framework

Wh1t3projects' PHP framework. Small PHP framework for building web apps and websites

View the Project on GitHub

Syntax: SQL_update(string $tableName, string $columnToUpdate, string $valueToSet,string $columnToMatch, string $valueToMatch [, string $additionalArguments])

Update row(s) that match the given criteria


Parameters

$tableName
The table to update row(s) in

$columnToUpdate
The column to update

$valueToSet
The new value to set

$columnToMatch
The column to find a match in

$valueToMatch
The value to match

Optionnal $additionalArguments
Addtional arguments to append to the query
Warning: Make sure that the specified arguments works for all types of SQL servers. Otherwise, errors may occur if a different SQL driver than expected is used. One way to work around this kind of issue is to adapt your arguments based on the currently loaded driver


Return values

TRUE if the query was successful. FALSE if an error occurred.


Examples:

To be completed

Example 1 description
Block of code

Example 2 description
Block of code