Jump to content

dhimok

Members
  • Posts

    142
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

dhimok's Achievements

Member

Member (2/5)

0

Reputation

  1. Hi, does anyone have a clue on how to integrate Klarna API on a custom webstore? I find their documentation not quite helpful. http://integration.klarna.com/ Any help on how to get started will be highly appreciated! Thanks in advance!
  2. Hi Everyone! I have two arrays in chunks and I want to compare them. If I find chunks from first array that match chunks from the other one then I want to exclude them. Anyone can give me a start idea? Here are the two arrays in chunks: Array ( [0] => Array ( [4] => 1 ) [1] => Array ( [3] => 1 ) ) Array ( [0] => Array ( [4] => 1 ) [1] => Array ( [3] => 1 ) [2] => Array ( [1] => 1 ) ) Thanks in advance!
  3. dhimok

    Timeout

    Hi everyone. I have a question about timeout. You know in a shopping cart, using credit cards for payments, when lets say using paypal or clearpark or any other payment service, after transaction they redirect to an OK url if transaction ok or NOT OK url if transaction failed. But if transaction timed out then they still redirect you to an OK url and the transaction result is unknown. My question for your is: How to notify the customer when they redirect to OK url which mean success page, but the transaction may have failed? Any idea how to code this? Thanks in advanced!
  4. Hi. Is it possible to upload an image without using html forms? Let say that my image has an absolute path on my local machine $img = "D:\Pictures\Sunset.jpg"; How can I upload this image? Some guidelines would be appriciated Thanks in advance
  5. dhimok

    sql

    Thank you! How can I list all countries which are in the same region/continent as India and Italy?
  6. dhimok

    sql

    Hello everyone! I have this table with country_name, population and area. How do I get the density for each country with sql thanks in advance
  7. Well here's the answer to my own question, just if someone needs it: // reorder array foreach($array as $key => $value) { if($value == "") { unset($array[$key]); } } $new_array = array_values($array); Thanks for the viewing anyway
  8. Hey everyone! I have this array as you see and I get 2 extra keys that are not supposed to be there with empty values. How do i ignore them? Array ( [0] => 5 [1] => 6 [2] => [3] => 4 [4] => ) thanks in advance
  9. Is that your kitten, behind your shoulders or on you shoulder maybe. Looks like mine. I have two, Rufus and Bobbi hehe:)
  10. Yeah. can u do this in the headers
  11. Hi. How can I make a page expire after a certain amount of time? thanks
  12. Normally i would use a foreach loop like foreach($array as $key => $value) { echo $value; } But in this situation is suitable to use for() loop
  13. A quick question: how do we print the values of this array in a for() loop $array[0] = 'a'; $array[1] = 'b'; $array[2] = 'c'; thanks
  14. Take a look at this loop. I am trying to limit the result to 5, but no help. Thats because the first loop has many results. Any idea how to limit the result <?php $sql = mysql_query("SELECT * FROM tbl_o WHERE id = '$id' ORDER BY rand() "); while($o = dbFetchObject($sql)) { $sql2 = mysql_query("SELECT * FROM tbl_o INNER JOIN tbl_p ON tbl_o.id = tbl_p.id WHERE nr = '".$o->nr."' ORDER BY rand() LIMIT 5"); while($p = dbFetchObject($sql2)) { echo $p->some_name; } } ?>
×
×
  • 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.