Wow, you lead the horse to water
I am so close, but it isn’t quite working yet for me and could use another nudge:
I have the php side working if I put in hard numbers for the birth year and month, but I haven’t been able to pass the variables over properly. After reading the wiki, I’m pretty sure it’s my lack of php training.
I have TVs set up to create numbers for birthYear and birthMonth (days aren’t important for this use)
I have a call in my chunk that says this:
[tt]<a href="#">[! getAge&birthYear=`[*birthYear*]`&birthMonth=`[*birthMonth*]`!]</a>[/tt]
And then the end of my php looks like this:
[tt]$date_birth = (&birthYear)"-"(&birthMonth)"-01";
$date_now = date(’Y-m-d’);
$age = get_age($date_birth, $date_now);
print_r($age);
?>[/tt]
Can you spot the problem?