J
|
Jane 1/23/2009 |
Hi, |
N
|
nicolagrimshaw author 1/23/2009 |
Hi, use custom events (Insert PHP code snippetoption on the Visual Editor tab) to select and show records from detail table on the master view page.
|
N
|
nicolagrimshaw author 1/29/2009 |
Hi, use custom events (Insert PHP code snippetoption on the Visual Editor tab) to select and show records from detail table on the master view page.
|
J
|
Jane 1/30/2009 |
Hi, global $conn, $strTableName; if ($_REQUEST["editid1"]) { $str = "select Field1,Field2 from MasterTable where Key=".$_REQUEST["editid1"]; $rs = db_query($str,$conn); while($data = db_fetch_array($rs)) { echo $data["Field1"]." ".$data["Field2"]; } } |
N
|
nicolagrimshaw author 1/30/2009 |
Hi, here is just a sample:
|
J
|
Jane 2/2/2009 |
Nicola, |
N
|
nicolagrimshaw author 2/6/2009 |
Nicola, Please publish your project on Demo Account and open a ticket at http://support.xlinesoft.com sending a URL to your pages along with instructions on reproducing this error.
global $conn, $straccommodationsummary;
|
J
|
Jane 2/6/2009 |
Nikola, $str = "select spaname,facilities from spa where accname='".$_REQUEST["editid1"]."'"; |
N
|
nicolagrimshaw author 2/6/2009 |
Nikola, here is a sample:
|
N
|
nicolagrimshaw author 2/17/2009 |
Hi Jane, That's fantastic - thank you. I guess it's only a very simple little thing, but it was driving me mad... NOw I need to think about formatting! Perhaps I'm just trying to do too much for someone that only has a brief understanding of PHP/SQL Thanks again Nicola (I'll be back with more questions soon now you've solved this one!)
|
N
|
nicolagrimshaw author 2/17/2009 |
I've realised this will not solve the problem I have, because on testing (having added multiple email addresses manually) this does not work. I will post in another thread for possible alternatives. Hi Jane, Is it possible to use something similar in the following situation: I have a large number of properties which are of the same 'Type' and share other characteristics such as number of 'Bedrooms'. Each property has it's own 'EnquiryEmail'. I have made a new table multipleproperties which share the related colums 'Type' and 'Bedrooms' but need a custom expression for the EnquiryEmail fields - which I want to contain multiple email addresses (with a semicolon between) for all the hotels which meet the expression: SELECT DISTINCT EnquiryEmail from property WHERE Type='multipleproperties.Type' and Bedrooms='multipleproperties.Bedrooms' I think, again, I have an error with the quotes around 'multipleproperties.Type' and 'multipleproperties.Bedrooms' and I'm not sure of the bits that need to go before and after... Thanks in advance Nicola |
N
|
nicolagrimshaw author 2/17/2009 |
It seems this might actually work IF I can figure out how to do it although I would require a comma rather than a semicolon between the email addresses! I tested it by adding the email addresses manually and this worked! |