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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. beirti

    Javascript with PHP integration

    Heres the source view: <html> <head> <script language=&quot;JAVASCRIPT&quot;> function preload() { }// End of preload() function reloadPage() { alert(&quot;reloadPage&quot;); parent.Foot.location.href=&quot;hwSpecs.php?intInfoNo=&quot; + $intInfoNo +...
  2. beirti

    Javascript with PHP integration

    If You look at both files, they are very similar. What is happening is that the second one does not seem to let me call the javascript functions. Javascript code works: <select name='a' onChange='JAVASCRIPT:alert(&quot;TEST&quot;);'> however when I do this I get nothing.: <select name='a'...
  3. beirti

    Naming a hyperlink

    Using the name property of an <A> tag is for linking to different parts of the same page. e.g. <a href=#myLocation>Location</A> and down farther you would have: <A NAME='myLocation'>DATADATADATA</A> There is an ID property normally used for styling but ou should be able to adopt it to your...
  4. beirti

    Javascript with PHP integration

    The problem is that the function is in javascript and calls a reload on the page - Sorry bout all the code, just posted it so you could see the relevance of what I was doing - heres the relevant function: <select name=\&quot;lstSerial\&quot; onChange='javascript:reloadPage();'> function...
  5. beirti

    Javascript with PHP integration

    This is a good example for a need for attachments in this forum, its a bit of a long post. Sorry... I've been mainly using PHP since I started this project and have posted up the odd question here - thanks for all the replies! This one is a bit strange, maybe I'm just missing a simple syntax...
  6. beirti

    is it possible to runn sql script files via php?

    thats a bit beyond me at the moment - im just a beginner 2
  7. beirti

    Validating dates with Reg. Exp.'s

    Its a habit of mine from JAVA. only started PHP bout a month ago. Have the code here for the date validation function: it takes in a date in the format dd-mm-yy function isDateValid($strDate) { $dayArray=array(0,31,28,31,30,31,30,31,31,30,31,30,31); if...
  8. beirti

    Validating dates with Reg. Exp.'s

    Figured it out. Php doesn't have any types for variables. You need to do this: $dayArray[(int)$tempDate[2]]; I was just writing a function to validate the dates - its pretty simple. I'll post it if anyone wants
  9. beirti

    is it possible to runn sql script files via php?

    Oracle - i presume you're using mysql like everyone else - it shouldn't be too much hassle to convert the code
  10. beirti

    is it possible to runn sql script files via php?

    I know you prob dont want to do this but you could always connect to the database from your script and run the different lines of code. include(&quot;/vweb/stockcontrol/html/config.php&quot;);// Contains connection details $connection = ocilogon($strUsername,$strPassword,$strDB) or...
  11. beirti

    Validating dates with Reg. Exp.'s

    For anyone interested, I worked out the ereg code. It's a bit easier to just take it in as 01-01-2003 instead of 01-JAN-2003 and convert the month to letters for use in oracle. Came across another interesting bug in php while doing this though. If you call a value in an array e.g. $myArray[1]...
  12. beirti

    Validating dates with Reg. Exp.'s

    If you want it done so that you can't select a startdate as February 31st and an enddate in January of the previous year you need extra code. All of this needs to be done before the date is entered, otherwise it just leads to more validation code
  13. beirti

    Validating dates with Reg. Exp.'s

    I didn't want to use the combo boxes as it can be annoying at the best of times. Also, with combo boxes, i need to use javascript to ensure that the correct number of days is available for the selected month, not to mention leap years. I sis eactly that in a Java project and ended up with a lot...
  14. beirti

    Image!!

    1 question: Why would you want to open a gif in notepad?
  15. beirti

    Image!!

    I am guessing it is because the browser may be picking up on 'a' as a special character(a href=...). Could you send me the code you have?
  16. beirti

    Validating dates with Reg. Exp.'s

    Im pretty new to using regular expressions - up to now ive never had a problem but I need to validate a date on my form for use in oracle(DD-MMM-YYYY or DD-MMM-YY). My first attempt goes a little something like this... if (!eregi(&quot;^ ( (([0-2]{1})([0-9]{1})) | (([3]{1})([0-1]{1})) )...
  17. beirti

    Oracle select bug

    Cheers - will try that
  18. beirti

    Oracle select bug

    I have built a stock control system using HTML, PHP, & Oracle. Whenever stock is inc/decreased, an entry is made in the transaction table. I can search through these transactions using each field but whenever I search between a certain date and the start of the month, e.g.('1-JAN-03' to...

Part and Inventory Search

Back
Top