P.S. I'm barely able to program in PHP, but your Snippets program encouraged me and pushed me to get this to work. Now I have a 1,000 member site where we discuss these various school programs and how to integrate them.
Peter, one last HUGE favor. The select code in SQL appears to stil be selecting ALL of the school districts, not just the ones with the actual value. Any other suggestions?
I'm using this snippet code:
{snippet alias="system17" key="ada" value="Monsido"}
ANd this SQL code below, but it's pulling ALL of the organizations instead of just the 6 that are using the Monsido app.
Also, I recommend you clean up that PHP code, so you don't have all the commented-out stuff in there.
And to test if the snippet output is as you want it, disable Sourcerer temporarily, or change the {source} tags to {xsource} or something, to see the PHP output on the frontend.
Thanks for the tip about changing source to xsource. I did, and I can see it is not passing through the second variable.
$sql = "SELECT * FROM `schoo126_sd`.`systems_2017` WHERE `ada` like '' ORDER BY `SchoolDistrict` ASC"; $result = $conn->query($sql); if ($result->num_rows > 0) { echo "
Nope, it should work, and working on my tests here...
Can you give me (super) admin and (s)ftp access so I can take a look?
And tell me on what url I can see/reproduce the issue.
You can use the 'Confidential information' button in the forum editor to hide sensitive information.
Are the double %% causing the issue? Or the use of the " ' " instead of the ' ` "?
The value is getting passed through by your snippets, because the first sentence says "School Districts in California that use "value" - and the Value is coming through. So it's just something strange about the sql code intepreting the double %% maybe ?