Jump to content

stevesmename

Members
  • Posts

    13
  • Joined

  • Last visited

    Never

Everything posted by stevesmename

  1. [img src=\"style_emoticons/[#EMO_DIR#]/smile.gif\" style=\"vertical-align:middle\" emoid=\":smile:\" border=\"0\" alt=\"smile.gif\" /] I found some information on the Server I'm trying to grab data from and found that the above code is surely XML file. Now I just have one problem, How in the heck do I parse the XML into the PHP file? so $zipcode = MBR_ZIPCODEFROMXML --------------- Right now I swipe the card, and it gives me an XML file with all the person's info. I want it so that I swipe the card get the xml file through php, query the information and make it available to move on to the next step. So i can pull there first name, last name, address, and zip and fill them in the FORMS automatically (PLUS MANY OTHER HELPFUL THINGS!!) ---------------- So how do I read XML in PHP? I checked out php.net, that was confusing as hell.
  2. So I have a new company project, our company got these new Card Readers (swipe the card), it reads the sting decodes it with a simple php script, and then it runs a search on the member through an online database. SO 1. Swipe 2. Decodes & Extracts, Member Number 3. Takes member number, and does FORM ACTION POST Search Now, this is great! But I want to go a little further, in the page source of the search field there is the following [NOTE: I deleted confidential fields] <!CDX BEGIN> <!CDX RETURN_CD:0> <!CDX MBR_ID:1020594> <!CDX Mbr_Orig_Id:1020594> <!CDX ASSOC_MBR_ID:> <!CDX MBRS_PLS_IN:P> <!CDX MBR_LST_NM:LASTNAMEHERE> <!CDX MBR_FST_NM:FIRSTNAMEHERE> <!CDX MBR_MID_INIT_NM:> <!CDX MBRS_EXPIR_DT:EXPIRYDATEHERE> <!CDX MBR_SLTN_CD:> <!CDX MBR_NM_GEN_CD:> <!CDX MBR_NM_SUFX_CD:> <!CDX MBR_BSC_AD:ADDRESSOFCUSTOMERHERE> <!CDX MBR_SUPL_AD:EXTRAADDRESSINFOHERE> <!CDX MBR_ADR_CTY_NM:CITYOFCUSTOMERHERE> <!CDX MBR_ADR_ST_PROV_CD:STATOFCUSTOMERHERE> <!CDX MBR_ADR_PSTL_CD:ZIPCODEOFCUSTOMERHERE> <!CDX MBR_TEL_NR:PHONENUMBERHERE> <!CDX MBR_TEL_EXT_NR:> <!CDX END> Now like I said earlier this is in HTML Source. Questions 1. What is this? xml? 2. Can I use this to extract the data with PHP? if so how? So I would like to say just to give an idea: $zipcode = $_GETfromFILE['ZIPCODE']; I hope this makes sense Any help is going to be very appreciated, Thank you in advance for your help.
  3. Here is what I wish to do. I have created a RSS Feed the other day off of Feedburner.com, and they create this graphic which looks like the following for our feeds [img src=\"http://feeds.feedburner.com/aaanwohio.gif\" border=\"0\" alt=\"IPB Image\" /] Now these get dynamically updated from our XML Feed in our Newsroom. My Question - How do they do it? I wish to create something like this for our company so we can dynamically change the graphic in our employees email signatures - so we can give out Coupons, Specials, Announcements, and etc. Sure I could make feeds for each and everyone of em' but that's not what I want, I don't want that graphic, i want to be able to create my own template graphic. --------------------- The only idea I have is to create a Signature for the employees to read like the following [code] <a href="http://mywebsite.com/emailsig.php"><img src="http://linktoimageonyoursite/image.gif"></a> [/code] I add that code, change the image whenever I wish - and everone's image changes along with it. But I don't beleive that's what Feedburner.com is doing. And I feel that isn't dynamic enough - I like to do a project, and be done with it. Not constantly do tedious work. (I don't think I'm alone on this - lol) I think they might be having a cron job, or something similar. I had a feed update yesterday, it took Feedburner 1/2 hour to update everything, on their site, and in my email signatures. ----------------------- I have found one site which is a possiblity how they do it. [a href=\"http://msdn.microsoft.com/coding4fun/weekend/dynemail/default.aspx\" target=\"_blank\"]http://msdn.microsoft.com/coding4fun/weeke...il/default.aspx[/a] -- But to be honest, Screw That! I refuse to use ASP, I believe in 100% freedom of knowledge. So I ask you - if you have an idea how to get this to work, please let us all know.
  4. I'm Currently Running the Newsletter Script Now, Sending to 16,160 Subscribers, and it's DOING FABOLOUS!!! Thank you AndyB The smallest addition of sleep(); helped my script immensly!
  5. Thank you both for your fast reply! I originally intended to have the script run via Command Line - but I wanted to view the Emails it sent too so I did not send duplicates, and made sure the script worked okay. I still enjoy that feature, so I don't think I would want to move on to a command line just yet. I started to do some research and testing with a small amount of emails [code]    $sql= "SELECT * FROM $table WHERE ($newsletter = Yes) AND ID between 1 and 10";[/code] It seemed okay, I then did between 11 and 30 Ok. I then did between 30 and 100 Ok. I then did between 101 and 200 Problem, I noticed an email got sent twice and maybe more times. Which makes no sense, the Column ID is an AutoNumber generated auotmatically and Indexed (no duplicates). But it displayed "Emailed 101 of 200: ckay@...something.com" I did a search for 101 in the ID Column and found that it should of been BJAY..@aol.com This thing is driving me nuts. AndyB: You mentioned something with the Sleep() Command, this may help a lot for my script. I think if I change the code back to [code]    $sql= "SELECT * FROM $table WHERE ($newsletter = Yes)";[/code] Which Sends email to eveyone at once who wish for the certain newsletter. I already have a counter script in place. Is there some more info you could give me with the Sleep() function? Thanks a lot to the both of you.
  6. I have a table with 20,000+ Email Addresses, I run a php script which is suppose to email all the Email Addresses (LEGITLY - Am Not a spammer). Sometimes the script seems to stop and never email them all. So my proposed solution is to Divide up the labor for the script. I wish to have a sql command for MSACCESS Database so I can select the First 1000 emails, send them out. Then wait 20 minutes - and send out 1001 - 2000 emails. Then wait 20 minutes - and send out 2001 - 3000 emails. and repeat. This will be easier on the Company's Email Server, plus I can verify all the emails get sent. Hope this isn't to difficult, Currently the database is setup with the Email Field as the Primary Key so I don't have any duplicates, and there is no numbering system. But I wouldn't mind adding one with an AutoNumber format so I can keep track who I emailed and who I haven't yet. I don't mind changing the script every 20 minutes by hand. Hope that makes sense.
  7. [code]<?php if($stepdone != "done")     {     echo ("<form id=\"form1\" name=\"form1\" method=\"post\" action=\"step_5.php?username=".$username."&filename=".$filename."&stepdone=".$stepdone.">  <p align=\"center\">If you had made any changes be sure to save changes before continuing. </p>  <p align=\"center\">    <input type=\"submit\" name=\"Submit\" value=\"Continue\" />  </p> </form>");     } ?>[/code] Everything seems to look okay on the page. But when I click "Continue" the Address changes to [a href=\"http://aaanwont01/boards/portal/create_new/step_5.php?username=admin&filename=admin084857am031006&stepdone=car%3E%20%20%3Cp%20align=\" target=\"_blank\"]http://aaanwont01/boards/portal/create_new...20%3Cp%20align=[/a] Instead of [a href=\"http://aaanwont01/boards/portal/create_new/step_5.php?username=admin&filename=admin084857am031006&stepdone=car\" target=\"_blank\"]http://aaanwont01/boards/portal/create_new...06&stepdone=car[/a] WHY!!!!???? I really for the text to be centered, I tried <center></center> - It get's worse - It doesn't even display. I tried splitting the coding into two php scripts - Problem got worse - it added even more to the address string. help please. [u]UPDATE LINKS[/u] Displays step_5.php?username=admin&filename=admin084857am031006&stepdone=car%3E%20%20%3Cp%20align= instead of step_5.php?username=admin&filename=admin084857am031006&stepdone=car I hope this displays better. Nevermind -- I HATE QUOTES!!! Found the problem being that I didn't add an extra quote (didn't even out). [code] <?php if($stepdone != "done")     {     echo ("<form id=\"form1\" name=\"form1\" method=\"post\" action=\"step_5.php?username=".$username."&filename=".$filename."&stepdone=".$stepdone."\">  <p align=\"center\">If you had made any changes be sure to save changes before continuing. </p>  <p align=\"center\">    <input type=\"submit\" name=\"Submit\" value=\"Continue\" />  </p> </form>");     } ?>[/code] fixed, this can be deleted.
  8. The @ Symbol worked perfectly. Thanks for both of your help.
  9. When using check boxes in forms on HTML Pages -- I send the data over to PHP and then request to pull the data from the checkbox -- BUT if the checkbox wasn't selected, then a notice displays on the screen saying variable not defined. How do I get this notice to not display. I know I can shut it off in php.ini settings, but I rather not do this way - I like to debug my errors. -- Thanks for your help.
  10. Bump - for the modified post. Need help with Update Query
  11. Tried using the original snippet from the PHP Library without any modifications, also checked IIS privilages for Write/Read settings -- still had same problems. Won't bring Text box up to edit code.
  12. Hello -- I am attempting to create a portal for our employees to use. This is so we can go paperless on one more thing. I want to have it so the members will login with their PHPBB2 Message boards account and then taken to a portal. - This has been done! Then I want them to see their own personal files - This has been done! Now I wish for them to be able to edit the files, not just be able to read them, and when they submit the files, they get saved/modified. - WENT ALTERNATIVE WAY This is on a IIS 5.x Server with PHP I took the snippet from here under file management, but it doesn't seem as it is working correctly - because when I click on edit, nothing comes up - it's just the same page - no errors or anything, just the list of editable files. - WENT ALTERNATIVE WAY [code]code no longer needed.[/code] MODIFIED [UPDATED] Alternative Way - Well no one was helping with the php functions to read/write/edit files, so I'm taking it through msaccess - many reasons why I didn't want to do this, but it's not going to hurt anything. I have the database setup - I'm working on adding content via a WYSIWYG Editor, and when doing so I get an update SQL Error [!--quoteo--][div class=\'quotetop\']QUOTE[/div][div class=\'quotemain\'][!--quotec--]Warning: odbc_exec() [function.odbc-exec]: SQL error: [Microsoft][ODBC Microsoft Access Driver] Syntax error (missing operator) in query expression '' <html><head></head><body><align=\'right\'> <strong>Trying to save document.</strong> </align=\'right\'></body></html>''., SQL state 37000 in SQLExecDirect in F:\Inetpub\wwwroot\boards\portal\save.php on line 8 ERROR[/quote] Now I know it's to do with quotes - is there a script to automatically put a backslash on quotes? it seems the wysiwyg editor (HTMLArea) is trying to do that, but is failing. Let me know if there are any suggestions.
×
×
  • 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.