DatabaseQuery::bindValue() method

Bind a parameter value

Usage

// basic usage
$databaseQuery->bindValue(string $key, mixed $value);

// usage with all arguments
$databaseQuery->bindValue(string $key, mixed $value, $type = null);

Arguments

NameType(s)Description
keystring

Parameter name

valuemixed

Parameter value

type (optional)

Return value

$this

Object instance it was called from (method supports fluent interface).


DatabaseQuery methods and properties

API reference based on ProcessWire core version 3.0.155

Twitter updates

  • This post covers a few of the bigger updates in ProcessWire 3.0.154+3.0.155. This includes new live replacement of text in core and modules, a new method for creating canonical URLs, and some major upgrades to our input->urlSegment() method! More
    24 April 2020
  • A brief look at what's new in ProcessWire 3.0.154 in this forum post: More
    17 April 2020
  • This week we’ve got a few new and interesting core updates in progress, though none quite ready to release just yet. So rather than releasing version 3.0.154 today, I thought we'd instead take a brief look at what’s coming over the next few weeks… More
    3 April 2020

Latest news

  • ProcessWire Weekly #313
    In the 313rd issue of ProcessWire Weekly we're going to walk you through the weekly update from Ryan, introduce the latest third party modules out there, and dig into a brand new site of the week. Read on!
    Weekly.pw / 9 May 2020
  • ProcessWire 3.0.154 and 3.0.155 core updates
    This post covers a few of the bigger updates in ProcessWire 3.0.154 and 3.0.155 on the dev branch. This includes a new function for live replacement of text in core and modules, a new method for creating canonical URLs, and some major upgrades to our $input->urlSegment() method that I think you’ll like!
    Blog / 24 April 2020
  • Subscribe to weekly ProcessWire news

“…building with ProcessWire was a breeze, I really love all the flexibility the system provides. I can’t imagine using any other CMS in the future.” —Thomas Aull