Jump to content

jdadwilson

Members
  • Posts

    32
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Male

jdadwilson's Achievements

Member

Member (2/5)

0

Reputation

  1. When working in the backside admin area often times users will need to do some research on a subject. While they are doing the research, the session expires and thus, when they come back the browser gets redirected to the index page. Is there a way to set what page the time-out gets directed to? TIA for your assistance jdadwilson
  2. Using PhotoShop it is possible to include information in several file fields such as author name, description, etc. Is it possible to retrieve this information using php so that it is available for use as desired? TIA for your assistance jdadwilson
  3. Fixed the array problem. Need to use "implode" not "explode"
  4. Kickstart; Thanks for the code. I tried it and it is good news bad news. The good news is that it almost works. The | A | B | string just displays as "Array". Any ideas? The bad news is that it takes about 30 seconds for the page to load and then in a flash is displayed. And yes, I was doing 26 queries. I am old school having done my first programming in Fortran 2. The previous way seemed to load faster. Thanks for your assistance. It is good to learn new techniques.
  5. Sorry, I forgot the .com in the URL http://www.wilson-moore.com/TXfannin/cemeteries.php
  6. Kickstart; Thanks for your reply. The code worked great. Problem is that the page takes forever to load. The code is doing some heavy duty computing in that I loop for 26 letters of the alphabet to build a string that can be used to jump to a specific letter and then build the page with all of the cemeteries and internment counts. You can see the page at: www.wilson-moore/TXfannin/cemeteries.php Thanks for your assistance.
  7. I was able to get most of the results I want from the following query SELECT cemetery_data.*, COUNT(person_data.per_cemid) FROM cemetery_data, person_data WHERE cemetery_data.cem_name LIKE 'A%' AND cemetery_data.cem_county = 'Smith' AND person_data.per_cemid = cemetery_data.cem_id GROUP BY cemetery_data.cem_name; The problem now is that any cemetery with zero interments are not listed. This will be the case until the database is totally populated with internments (20k down and 18k to go).
  8. I am working on a web site for a Texas County Genealogical Society. On the site I have a database that contains cemetery information table (cemetery_data) and person information data (person_data). What I need is a query that will find all of the cemetery names (cem_name) that starts with a specific letter ‘A’, within a certain county (cem_county). That is the easy part $querySQL = “SELECT * FROM cemetery_data WHERE cem_name LIKE ‘A%’ AND cem_county = ‘Smith’ ORDER BY cem_name;” Now, within the same query I would like to get the count of the number of records from the person_data table that have a cemetery_data.cem_id = person_data.per_cemid The results would then give: AA Cemetery 234 AB Cemetery 432 AC Cemetery 764 Where the count would then be the number of interments in the cemetery. Any help is greatly appreciated.
  9. I am working on a calendar system in which I print a monthly calendar to pdf. Each day of the month is a fixed width and height and contains events for the day. I am looking for a snippet of code that will wrap the text so that it will not overwrite into the next box. Presently I am just limiting the width to a certain number of characters but that does not work well given the differing width of characters. Additionally, I would prefer to wrap on a space rather than in the middle of a word. Any solutions would be most appreciated.
  10. Not sure if this is the right place to post this or not... Has anyone used the XML_Library? The XML_serialize function works great, but I am having a problem with the XML_unserialize function not returning anything. I have e-mailed the author but have not received a response and I really need to get past this problem. Any assistance is most appreciated
  11. I am working on an invoicing application that will store the invoice in xml form in a database. The following function is the start of a more comprehensive structure for the xml. Problem is that it does not work. I am using php 4. I know a little about xml and even less about the DOM. What I have comes from a tutorial on this site. What I want to generate is an xml file as follows <?xml version="1.0"?> <Invoice> <InvInfo> <InvNum>0706001</InvNum> </InvInfo> <Invoice> I want to create the xml string and then create a database record with the string as one field in the record. Because of the structure of the application I must use a function. function GenerateXML() { global $xml_String; $dom = new DOMDocument('1.0'); $xml_Invoice = $dom->appendChild($dom->createElement('Invoice')); $xml_InvInfo = $xml_Invoice->appendChild($dom->createElement('InvInfo')); $xml_InvNum = $xml_InvInfo->appendChild($dom->createElement('InvNum')); $xml_InvNum->appendChild($dom->createTextNode('0706001')); $dom->formatOutput = true; $xml_String = $dom->saveXML(); } TIA for your assistance
  12. Dragen; You are the man!!! Code worked great -- almost! I added an unset($_SESSION['checks']; statement before the initial FOREACH loop. Without it if you check an unchecked box it would stay checked. But if you unchecked a checked box the box would get checked on a reload. Additionally, I modified the one part that you removed (the part in the login script). Normally, I agree that CBs should not be checked. BUT, in this case I want them checked. So I added this code... $groupShortNameA = explode("|", $groupShortName); for ($i=1; $i<=count($groupShortNameA)-1; $i++) { $_SESSION['checks'][$groupShortNameA[$i]] = $groupShortNameA[$i]; } Thanks much for your assistance. The guys on this forum are the greatest...
  13. I think that comes from the word processor. The quotes are fine in Zend. Thanks...
  14. Thanks, I'll give it a try and let you know.
  15. Couple... 1. When I initially load the page I would like to have all CBs checked. I have set the session variables during the login process to ensure this. This is not happening. 2. Once the state of a CB is changed any subsequent load of the page should reflect the last state. Thus, the reason for setting the session variables based on the post. Again, this is not happening. Thanks for your assistance.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.