PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
I’m then trying to pass a value to the following but without success and I wonder if it is possible or am I simply getting the syntax wrong. I have tried various ways but most keep throwing different errors.
$query_rstThumbs = sprintf("SELECT * FROM images WHERE idpk = '{$row_getProperties['properties_idpk']}'", $colname_rstThumbs);
with that said, sprintf() doesn't seem like it's a best fit for that query unless $row_getProperties['properties_idpk'] is like %s or something that'd use $colname_rstThumbs..
Thanks for your help it’s much appreciated.
I have tried what you suggested but it didn’t work and I even removed sprintf() as I actually can get away without this and tried this -
with a number i.e. 1 it gives me the desired output in my browser.
I will happily post all the code if necessary but maybe this is sufficient for more help for the moment.
Thank you again
B
$query_rstThumbs = "SELECT * FROM images WHERE idpk = '".$row_getProperties['properties_idpk']."'";
echo $query_rstThumbs;
See if it's giving you what you think it should be giving you.
Set Search Time - A google chrome extension. When you search only results from the past year (or set time period) are displayed. Helps tremendously when using new technologies to avoid outdated results.
$var = $row_getProperties['properties_idpk'];
$query_rstThumbs = "SELECT * FROM images WHERE idpk = '$var'";
Set Search Time - A google chrome extension. When you search only results from the past year (or set time period) are displayed. Helps tremendously when using new technologies to avoid outdated results.