fmwebschool.com
Top Experts [learn more]Top 4-10
webko

9743 K
bandmandq

2458 K
Genx

1525 K
4. tcmeyers
5. kbata
6. Martie
7. Hammerton
8. rrenfrow
9. bneeman
10. plegler
Welcome, Guest. Please login or register.
December 19, 2014, 12:37:36 AM

Login with username, password and session length
Search:     Advanced search
FMWebschool releases more educational FMStudio webinars - check them out here:
http://www.fmwebschool.com/webinars.php
27830 Posts in 6157 Topics by 1525 Members
Latest Member: alkyred
* Home Help Search Calendar Login Register
+  fmwebschool.com
|-+  Recent Posts
Pages: [1] 2 3 ... 10

 1 
 on: December 18, 2014, 03:40:33 PM 
Started by PhanMan - Last post by webko
Trap for the relevant error (401 from memory) and use an If statement to do something different...

Cheers

Webko

 2 
 on: December 18, 2014, 03:10:39 PM 
Started by PhanMan - Last post by PhanMan
I have a recordset that I want to count how many records have "New" in a "status" field.  Then i would use the "getFoundSetCount" to display the number of records found.  This works however if there are no records meeting the criteria, the page displays an error which I don't want it to go to an error page. 

Is there a way to display the count on the page as 0 instead of having forward to an error page and also display the count when it meets the criteria?

 3 
 on: November 26, 2014, 12:19:06 PM 
Started by starlucks - Last post by jruzinok
Ok, got it working.

Please shoot me an email... justin@pkinformation.com

Thanks!

Justin

 4 
 on: November 25, 2014, 07:30:37 PM 
Started by starlucks - Last post by jruzinok
This is quite puzzling... I will look at it more later. But I was able to make an image appear on another page, using your code.

Code:
<?php require_once('Connections/FMConnection.php'); ?>
<?php
if(isset($_GET['recid']) && isset($_GET['image']) && $_GET['image'] == 'image') {
fmsShowImage($FMConnection,'PROMOTIONS','image',$_GET['recid']);
}
 
$cruises_find $FMConnection->newFindCommand('PROMOTIONS');
$cruises_findCriterions = array('Publish to web'=>'=='.fmsEscape('Yes'),'Category'=>'=='.fmsEscape('Cruise'),'zctDatePassed'=>'=='.'No',);
foreach(
$cruises_findCriterions as $key=>$value) {
    
$cruises_find->AddFindCriterion($key,$value);
}

fmsSetPage($cruises_find,'cruises',6); 

$cruises_find->addSortRule('date',1,FILEMAKER_SORT_ASCEND); 

$cruises_result $cruises_find->execute(); 

if(
FileMaker::isError($cruises_result)) fmsTrapError($cruises_result,"error.php"); 

fmsSetLastPage($cruises_result,'cruises',6); 

$cruises_row current($cruises_result->getRecords());

$cruises__BUSINESSES5_portal fmsRelatedRecord($cruises_row'BUSINESSES 5');
$cruises__SELECTEDMOREINFO_portal fmsRelatedRecord($cruises_row'SELECTED MORE INFO');
$cruises__itineraryselected_portal fmsRelatedRecord($cruises_row'itinerary selected');
$cruises__PROMOTIONSselectednote_portal fmsRelatedRecord($cruises_row'PROMOTIONS selected note');
$cruises__Selecteddocument_portal fmsRelatedRecord($cruises_row'Selected document');
$cruises__selectedEVENTitinerary_portal fmsRelatedRecord($cruises_row'selected EVENT itinerary');
$cruises__EVENTitinerary2_portal fmsRelatedRecord($cruises_row'EVENT itinerary 2');
$cruises__ReeceLovesTravelexchangerate2_portal fmsRelatedRecord($cruises_row'Reece Loves Travel exchange rate 2');
$cruises__RLTcountryguides2_portal fmsRelatedRecord($cruises_row'RLT country guides 2');
$cruises__COMPANYINFO_portal fmsRelatedRecord($cruises_row'COMPANY_INFO');
$cruises__PROMOTIONSmoreinfo_portal fmsRelatedRecord($cruises_row'PROMOTIONS more info');
$cruises__packageitinerary2_portal fmsRelatedRecord($cruises_row'package itinerary 2');
$cruises__NOTES4_portal fmsRelatedRecord($cruises_row'NOTES 4');
$cruises__DOCUMENTS2_portal fmsRelatedRecord($cruises_row'DOCUMENTS 2');
$cruises__PROMOTIONSsidebar_portal fmsRelatedRecord($cruises_row'PROMOTIONS side bar');
 
 
?>


<?php // FMStudio Pro - do not remove comment, needed for DreamWeaver support ?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Test Cruise Image</title>
</head>

<body>
<img alt="" src="<?php echo fmsImageURL('image',$cruises_row->getRecordId()); ?>" width="100" height="100" id="test" name="test">
</body>
</html>

 5 
 on: November 25, 2014, 05:32:18 PM 
Started by starlucks - Last post by starlucks
Hi Justin,

Thanks for your reply...
I'm hosting the database with a hosting company. But the website is referencing the same database (same records in the results) as the current site, which is working fine...

So I'm not able to get the files from FileMaker Server as I can't access the hosting server. But what I did do was copy the FileMaker folder and FileMaker.php files from the current (working) site, into this new one. Unfortunatly is hasn't made any difference, ie. the dynamic images are still not loading.

 Angry

 6 
 on: November 25, 2014, 07:33:43 AM 
Started by starlucks - Last post by jruzinok
It looks like you are using the FileMaker PHP API for FM 13 Server. You need to go into your FileMaker 11 Server and copy over the correct FileMaker API for FM 11.

Here is the location for the API:
MAC:
/Library/FileMaker Server/Web Publishing/FM_API_for_PHP_Standalone.zip
Windows:
drive:\Program Files\FileMaker\FileMaker Server\Web Publishing\FM_API_for_PHP_Standalone.zip
* drive is the drive on which the web server component of your FileMaker server deployment resides

Replace the FileMaker.php file and the FileMaker folder.

Please let me know how it works after this.

Thank you!
Justin

 7 
 on: November 24, 2014, 03:26:58 PM 
Started by starlucks - Last post by starlucks
hey Justin,

The images are internally stored, it's Filemaker 11 the client is using..

Thanks,
Reis

 8 
 on: November 24, 2014, 09:39:09 AM 
Started by starlucks - Last post by jruzinok
How are your image containers being stored? Internal or External Storage?

If you are storing your container images via EXTERNAL here is a trick I use:

1. Go to your FileMaker Layout and in Layout Mode make sure that the container is selected for Interactive Content.
2. Then just echo out the container field in a URL like so:
Code:
<img src="<?php echo $external_docs_row->getField('file | container_pdf'); ?>" alt=""/>

Thanks!
Justin

 9 
 on: November 23, 2014, 09:51:29 PM 
Started by starlucks - Last post by starlucks
Heya,

thanks again for your help with this..I'm getting nowhere!

I've uploaded some files to DropBox for you to see the code. The download lonk is: https://www.dropbox.com/sh/vbnngw2gc4eevnr/AACa9fneMT9JvqWfrFeIzNQda?dl=0

I see you're in Sydney. I'm in Byron Bay. If you require anything else to figure out the cause of this...please call and I'll be too happy to help. My number is 0405 373 184.

Thanks again!!
Reis

 10 
 on: November 23, 2014, 03:13:26 PM 
Started by starlucks - Last post by webko
OK, there is something different between
/Cruises.php
and
/NewOutTravel/cruises.php

Can you post or email both of these files please? I'm suspecting a relative link somewhere that works in the root directory, and not in the sub-directory...

Cheers

Webko

Pages: [1] 2 3 ... 10
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!