Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by topjimmie

  1. topjimmie

    How to test value of multiple fields and update value if neccessary?

    Now that's pretty cool! Thanks Vacunita, I'll give it go. @whosrdaddy - Thank you also, looks like a great library, will keep in mind for additional projects
  2. topjimmie

    How to test value of multiple fields and update value if neccessary?

    All of the fields are date type, and each has "date" in the field name. Is it possible to use wildcard for the field names in the array?
  3. topjimmie

    How to test value of multiple fields and update value if neccessary?

    I'm performing a very simple step as seen in the following code: var d = new Date("Cancelled Date"); if (d.getFullYear< "1900") { SetFieldValue( "Cancelled Date", ""); } On the same form, I have several date fields that must also be tested. Rather than write each one out, could someone...
  4. topjimmie

    Oracle DB Web Services confusion-starting out

    Is it possible to enable a PL/SQL query or stored proc as a web service in 11g without standing up a Web App Server? If so what is the required configuration? Do I need anything other than the standard enterprise db package? Additional Info: I am new to Oracle (new job) and my current project...
  5. topjimmie

    strtotime syntax problem I think. Not getting expected value

    Thank you jpadie for the great information! I didn't realize that the date object for php was new in 5.3, so that helps me understand why I couldn't find much information on it. I was aware of the Unix Epoch, but was NOT aware of the adjustment for GMT position, so that explains the date! You...
  6. topjimmie

    strtotime syntax problem I think. Not getting expected value

    Thank you, but still not getting anything expected. It's really odd, but everything I do returns some form of 19691231_1800 $formdatetime = $_POST['hidtimestamp']; echo $formdatetime; Returns: 20100128_23:00 $formtimestamp = date ('Ymd_Hi', strtotime($formdatetime)); echo $formtimestamp...
  7. topjimmie

    strtotime syntax problem I think. Not getting expected value

    I have a POSTed key of hidtimestamp. Naturally, the value of this key is a string. print_r($_POST['hidtimestamp']); Returns: 20100128_18:02 What I want is a DATE object like: 20100128_1802 So, I tried this: $adate = date ('Ymd_Hi', strtotime($_POST['hidtimestamp'])); echo $adate; Which...
  8. topjimmie

    exploding string from array while in loop syntax problem

    feherke, I think it's working!! THANK YOU (I've been trying to figure this out for many hours!) I'll throw it in the script and hopefully it will work like expected Here is what I ended up with just in case another person is looking for the same thing: foreach (explode(',',$_POST['listshift'])...
  9. topjimmie

    exploding string from array while in loop syntax problem

    Sorry, I didn't provide a very good example. You are correct about it not looking right. Here is the code with key, and result: print_r($_POST['listshift']); And this is what is returned: 17:00@http://localhost/ahems/index.php, 17:00@http://localhost/ahems/index.php...
  10. topjimmie

    exploding string from array while in loop syntax problem

    Thanks feherke, that helps! I've run into a problem related to this post. I was trying to do a test just to fill out the PDF file I'm building by using an array I made up. The idea then was to replace that with the _POST array from my form. I kept getting errors thrown up when using Foreach...
  11. topjimmie

    exploding string from array while in loop syntax problem

    Thank you Vacunita, that is exactly what I was trying to do! Amazing how the simple things can get really convoluted
  12. topjimmie

    exploding string from array while in loop syntax problem

    I am trying to build a test to explode each string from an array while doing foreach loop. Can someone show me what I'm doing wrong with the array and construction of the statement. All I get in return is 'array'. $posted = array('text1@url1', 'text2@url2', 'text3@url3'); Foreach($posted as...
  13. topjimmie

    Should be easy PHP/MySQL query but having problem with syntax or??

    Thanks Jpadie, that works! Hadn't realized the difference. Learning continues!
  14. topjimmie

    Should be easy PHP/MySQL query but having problem with syntax or??

    I know there is a syntax problem here but I just can't figure it out. Trying retrieve eventdetail_id from a table. I have gone through countless permutations of this code and every time it returns as if there is not a matching record (array, etc). I know there is a matching record, and the...
  15. topjimmie

    PHP/MySQL query is simple, but not returning a value. Any advice?

    Need some help if someone would be kind enough to offer. I'm modifying the edit view in JEvents All I'm trying to do is lookup the eventdetail_id from a table. I have gone through countless permutations of this code and every time it returns as if there is not a matching record (array, etc). I...

Part and Inventory Search

Back
Top