For Programmers: Free Programming Magazines  


Home > Archive > PHP Smarty Templates > February 2005 > INFO: 'Replacing' form data from a web table/database









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author INFO: 'Replacing' form data from a web table/database
George Pitcher

2005-02-01, 4:01 pm

Sorry about the cross-posting.

I've been a Filemaker user for around 10 years now. Its brilliant for small
scale applications, but over recent months, I've been porting a site based
on Filemaker v5 to PHP/MySQL. I am using PEARD:DB and the Smarty templating
engine.

One of the nice tricks in FM is the ability to select a field and have the
value of that field set in the current found set.

By using a little bit of javascript in the form, I am able to capture the
filed in focus, and have built a function that will form the SQL query so
that it takes account of the column type being selected.

This morning, I have extended this by making it work on a multi-row table.
So I can be working on a 75-row table and I can now update one of the
columns to store the data that I have selected in one of the rows (obviously
in the same column).

If anyone would like more info (and code snippets) please let me know off
list.

Cheers

George in Oxford
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com