Jump to content

Cyto

Members
  • Posts

    69
  • Joined

  • Last visited

Everything posted by Cyto

  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
  15. Did you read my first post?
  16. I know, but im equaling the names not styling with it.
  17. Hey, I'm trying to hover a id element with the same name, example: id="C_22" equeals id="C_22" both get class hlh I got this so far, but it only hovers 1 element with the same id. I want both to have the class hlh, only one gets it. var hlhid = $('[id^="D_"]'); $(hlhid).hover( function () { if(this == this){ $(this).addClass("hlh"); } }, function () { if(this == this){ $(this).removeClass("hlh"); } } ); Cyto
  18. Cyto

    Echo br

    Hi, I can't figure out how to echo <br/> after 14 characters every line from text. Any idea's? Cyto
  19. I founded out myself. Using STR_TO_DATE(date, '%d-%m') ASC.
  20. Is there a way to covert 14-3 to what you mean and order it?
  21. because i'm adding it from admin. See it as adding a event in a calendar.
  22. Hello, I would like to order by date that contains day and month, like this: 14-3 Is this possible?
  23. I would like to check multiple rows from array with elseif. It's working if i add it manually, but i would like it to check all of the rows in a single elseif. Code(First if is nothing, just a example). Row is a array filled with numbers like: 3-3, 2-2 etc. if("2-2" == $row["0"]){ echo BLUE; }elseif($dnumber == $row["0"]){ echo RED; }else{ echo WHITE; }
  24. --- nvm --- Thx LIKE '$q%' works.
×
×
  • 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.