J
|
Jane 10/28/2009 |
Hi, $str = "select superEmail from supervisors inner join users on supervisors.supnum=users.supervisor where users.user_id=".$values["user_id"]; |
M
|
mid3vil author 10/28/2009 |
Coming up with the following |
J
|
Jane 10/29/2009 |
Hi, if ($values["user_id"]) |
![]() |
greggk 11/6/2009 |
I have a very similar query that I'm trying to do. |
D
|
Dale 11/6/2009 |
Just a quick stab at this for you, |
![]() |
greggk 11/6/2009 |
Just a quick stab at this for you, you had $str = "select emailAddress from User inner join Site on User.userID=userID AND inner join Status on Site.siteID=siteID where Site.siteID=".$values["siteID"]; Try $str = "select emailAddress from User inner join Site on User.userID=userID AND inner join Status on Site.siteID=siteID where Site.siteID=".$values["siteID"]."";
|
![]() |
greggk 11/6/2009 |
Ok, I did this in a much easier way, at least for me it was. |
E
|
elliespotter 11/7/2009 |
Ok, I did this in a much easier way, at least for me it was. I used phprunners own query designer and linked the Site and User to the Status table. Then I added the emailAddress as an alias from User to Status. Then I only have to use $values=["email"] and I select the email properly. I can't believe it was as easy as that. At least in my case the query designer in phprunner itself was the best way to do it, I didn't have to manually create an sql query to get to the emailAddress <img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=reply&id=45243&image=1&table=forumreplies' class='bbc_emoticon' alt=':D' />
// ********** Send confirm email ************
|