Jump to content

pthes

New Members
  • Posts

    7
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

pthes's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. I wonder if it's a PHP 5 thing. Which version are you running? Peter.
  2. Tagged like that because of quick copy and paste to create the script. As for 01,02,03 not being numbers, that how it comes out of date/time field in mySQL. Also, if they're not numbers why does it work perfectly for all numbers from 00 to 23 except for 08 and 09?
  3. I have come across the strangest error in one of my sites today. I checking to see what hour of the day it is and then use it as the default value of a dropdown box. The problem is that if the hour is "08" or "09" the value gets set to "00". I created simple code to test. <?php $val = 01; ?> <?php if ($val == 01) { echo $val." what is this!!";} else {echo "should be 1";} ?> <?php $val = 02; ?> <?php if ($val == 02) { echo $val." what is this!!";} else {echo "should be 2";} ?> <?php $val = 08; ?> <?php if ($val == 08){ echo $val." what is this!!";} else {echo "should be 8";} ?> <?php $val = 09; ?> <?php if ($val == 09) { echo $val." what is this!!";} else {echo "should be 9";} ?> This is what I get 1 what is this!! 2 what is this!! 0 what is this!! 0 what is this!! It looks like when $val == 08 is executed it sets $val to 0 !! I'm using PHP 5 If anyone has seen this before please let me know what's going on. Thanks.
  4. The Macromedia DW support site has a bookstore application example. I think it would be a good starting place for you.
  5. I don't know if this is what you want, but I suggest changing your approach. I don't see why you want to send the user to another page after they have updated a record. Instead how about if the record which is being updating shows the current data from each field as the default value. When you submit to update the record now the new data will be displayed. This way if a change has to be made it can be done quickly since you're already at the update screen.
  6. I see DWMX has a nav bar that allows you to go back and forth one record or to the first or last record. I'd also like the user to be able to go to a record directly by entering an ID code into a text field and submitting. Is there a nav bar that does all these functions?
  7. I've gather a bunch of data through a survey. Now I want to create web-based reports where the clients can review results in real time. Are there any tools that are suggested to make creating reports quick? I've created some from scratch but would prefer not to.
×
×
  • 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.