Jump to content

Cyto

Members
  • Posts

    69
  • Joined

  • Last visited

Contact Methods

  • Website URL
    http://www.suby.nl/

Profile Information

  • Gender
    Not Telling

Cyto's Achievements

Member

Member (2/5)

0

Reputation

  1. It sounds like your content file(.html) is not a .php file? Or you forgot to include the php code ($price_per_day=100;) where you called your variable inside your Javascript code.
  2. Hi, I have set a Rewriterule(works): RewriteRule ^([a-zA-Z0-9_+-]+).html$ search.php?q=$1&site_id=0 Is it possible if I go to a link like this search.php?q=something&site_id=0 that it will go to something.html? Because some urls in search results are like search.php?q=something&site_id=0 instead of something.html. Cyto
  3. I explained it wrong. The old records don't get updated, but new ones come. I'm trying to get only the new added records. Timestamp looks like this: 2012-09-01 21:29:06
  4. Hi, Lets say the script is searching something and finds some records and at the same time it updates his records for new ones. (I have succesfully done this, no issues here) I would like to show the new added records with timestamp. This is what I have so far: $sql = "SELECT * FROM records WHERE timestamp > (NOW() - INTERVAL 30 SECOND)"; This code shows the old records again. I want it to show only records that are new added. If someone can help me. thanks. -Cyto
  5. $str = "00:01:54,938", "00:03:10,900", "00:03:14,826" $str2 = "00:01:57,974", "00:03:14,825", "00:03:17,851" I could only get this from firebug in a console.log, but these are the values that I get from ajax. Btw thx for helping me.
  6. I thought of that at the first place, but I didn't know how. The strings come from a ajax post in a array. I'm calling the array like: var numbers = []; The post contains like this: '10,24,13,145' etc.
  7. My code: $a = explode(",", $str); $b= explode(",", $str2); for( $i = 0, $c = count($a); $i < $c; $i++ ) { echo $a[$i]."\n"; echo $b[$i]."\n"; }
  8. Thx it works, but I'm using it in a for loop. How can I do this in a for loop?
  9. Hi, I'm exploding a list of result that are separated with comma, but I have also comma's in the value from the list. Is it possible to explode without removing the comma of the values? Example of list: 10,24,13,145 etc. Values are: 10,24 13,145 P.S I didn't wanted to open a new topic. Is it also possible when I browse a file to upload. I can select any file(All Files). Can it be done so I can choose only image file types? Cyto
  10. Hi, Thx for your reply. I tried the above code and echoed it, but gives me a empty result.
  11. I'm getting the inputs from a file like above(00:01:08,035) start and end time, so it's hard * no clue*
  12. Can you give me a example code, cant come out
  13. Hi, Is it possible to do a calculation by php from this: 00:01:08,035 - 00:02:03,054 = 00:00:55,019 I'm trying to get the duration of a start and end time. Cyto
  14. Hi, I have a function that returns the value of a array if it matches $string, but it only returns Test 1 instead of returning Test 1, Test 2. Can you someone see what I'm doing wrong? And it has to return N if nothing found. Code: function fes($string){ $fes['Test 1'] = '104'; $fes['Test 2'] = '104'; return in_array($string, $fes) ? array_search($string, $fes) : 'N'; } echo fes('104'); Thx, Cyto
×
×
  • 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.