Jump to content

salparadi

Newbies
  • Posts

    4
  • Joined

  • Last visited

salparadi's Achievements

Rookie

Rookie (2/14)

  • First Post
  • Conversation Starter
  • Week One Done
  • One Month Later
  • One Year In

Recent Badges

0

Reputation

  1. having some trouble getting the code right to return 20 of say 100 results and have a button at the bottom to go to the next 20 and so on. any ideas, using FX and php? thanks
  2. Okay, very new to Filemaker and CDML. I basically have a photo database that has the photo in a container field along with a ton of information fields. There is also a keyword field for every record. I want to create the functionality so that when someone on the web searches for a certain keyword, the database will return all the corresponding images and arrange them in a table that is 4 <td>'s wide and however many tall to accommodate the results. I am not a programming whiz, but I assume this involves a for loop of some kind, is this possible in CDML? Is there another way? How could I return the first 4 results, and then close that row and either start a new one or even start a whole new table? I hope this makes sense, I could really use some help if anyone has the time, thank you very much.. Noah
  3. how do you specify to only print 4 <td>s before either starting a new row or a new table? i basically want a grid of images 4 wide by however long it has to be by the number of results, so 20 results would be 4 wide by 5 tall i don't mind using cdml, but i couldn't figure out how to specify 4
  4. Hello. I have just begun working on tying a Filemaker database to the web using PHP and the FX.php tool. I'm very new at all this stuff and am just getting my feet wet, but I have a question that is PHP related. If anyone has used this method to get their database hooked up, I would love some help. So, here is the situation Database of photos with keywords When you search for a keyword, the search result is a 4 x "however many necessary" table. I currently have it working so it just shows the images in one long table row, each image it finds it just adds another <td>img</td> section. Using a loop, how do i make it just write 4 <td>'s and then close the row and start again? my code is as follows. <?php include ("FX/FX.php"); include ("FX/prefs.php"); $FX = new FX ($FMAddress, $FMPort); $FX->SetDBData('phdb.fp5', 'Web', 'All'); $FX->AddDBParam('keywords', 'football', 'eq'); $FX-> AddSortParam ('Name', 'Ascend'); $search = $FX-> FMFind(); if ($search['foundCount'] > 0) { echo "<table width=100%>"; echo "<tr>"; foreach ($search['data'] as $key => $value) { echo "<td><img src="http://$FMAddress:$FMPort/".$value['Image'][0]."" /></td>"; } echo "</tr>"; echo "</table>"; } else { echo "There Are No Search Results"; } ?> I'm not sure if I am explaining this well as I'm having a hard time getting my head around it, but if anyone has any ideas I would really appreciate it. Thanks very much Noah
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.