Coding standards
Security in ResourceSpace
Developer reference
Database
Action functions
Admin functions
Ajax functions
Annotation functions
API functions
Collections functions
Comment functions
Config functions
CSV export functions
Dash functions
Debug functions
Encryption functions
Facial recognition functions
File functions
General functions
Language functions
Log functions
Login functions
Message functions
Migration functions
Node functions
PDF functions
Plugin functions
Render functions
Reporting functions
Request functions
Research functions
Slideshow functions
Theme permission functions
User functions
Video functions
Database functions
Metadata functions
Resource functions
Search functions
Map functions
Job functions
Tab functions
Test functions

sql_query_prepared()

Description

Used to perform the same DML operation over-and-over-again without the hit of preparing the statement every time.
Useful for re-indexing fields etc.

Example usage:
sql_query_prepared('INSERT INTO `my_table`(`colint`,`colstring`) VALUES (?,?)',array('is',10,'Ten');
Where first array parameter indicates types of bind data:
i=integer
s=string

Parameters

ColumnTypeDefaultDescription
$sql string
$bind_data array

Return

void

This article was last updated 15th October 2021 16:35 Europe/London time based on the source file dated 8th October 2021 10:10 Europe/London time.