andante

because that name implies to me its a many, not a one

andante

ok, and have you verified that $Podcasts->ID === 1?

customPhpDev

I want to get all my PersonID which has PodcastID 1.

andante

->sql($params) is just a sanity check that the right id is being passed in

andante

im not sure i understand what you are trying to achieve

andante

no its just for the sql() method - the data should be $Podcasts->ID

customPhpDev

Can I use that $param array in filter as well and get the data?

andante

are you calling ->sql() on the above? it looks like you can call ->sql($params) and then $params will be loaded as an array with all of the bindings in place

andante

as much as i hate to link to w3schools = https://www.w3schools.com/php/php_mysql_prepared_statements.asp

Show 1 attachment(s)
w3schools.com  
PHP Prepared Statements

Well organized and easy to understand Web building tutorials with lots of examples of how to use HTML, CSS, JavaScript, SQL, PHP, Python, Bootstrap, Java and XML.

Hide attachment content