Jump to content

dragonusthei

Members
  • Posts

    46
  • Joined

  • Last visited

    Never

Posts posted by dragonusthei

  1. Hello.

     

    I have a div that is the main content box.

     

    Inside this div i have 2 images in divs.

     

    Image and div 1 must sit at the top of the content box - No problems here.

     

    Image and div 2 must always sit at the bottom of the content box - heres the problem.

     

    I cannot get the image to stay at the bottom of the div regardless of the size of the content box.

     

    I have tryed postion abolsute with bottom set to 0 but this sends it to the bottom of the page and not the div.

     

    In the same way if i use margin-top: 100% it sends it to the bottom of the page as does padding.

     

    Solutions?

  2. Hi.

     

    My site takes information from one database and puts it into another simply with

     

    SELECT *

     

    and

     

    INSERT INTO

     

    It works perfect

     

    Except!

     

    When the user enters a ' into the data when this happends it does not transfer the data it must throw out some kind of error.

     

    I have tryed addSlashes with no luck

     

    im depsrate to get this sorted!

     

    any one help me?

  3. Hi,

     

    How could i make the following

     

    Term 1 "UNITED STATES" read "United States".

     

    Term 2 "SPAIN" read "Spain".

     

    Could any one help?

     

    I know it needs to like say all to lowercase then 1st to uppercase and then how do i get the second part of united states?

  4. Im importing the following:

     

    "33996344","33996351","GB","GBR","UNITED KINGDOM"

    "50331648","69956103","US","USA","UNITED STATES"

    "69956104","69956111","BM","BMU","BERMUDA"

    "69956112","83886079","US","USA","UNITED STATES"

    "94585424","94585439","SE","SWE","SWEDEN"

     

    The Current PHP Reads:

     

    mysql_query("LOAD DATA LOCAL INFILE 'ip-to-country.csv' 
    INTO TABLE ipcountry FIELDS TERMINATED BY ',' ENCLOSED BY '\"'");

     

    However this is going wrong after the end of the line because theres no , how can i get round this?

  5. Hello,

    Does any one have either the code to do this or a class.

    Im looking to detect what keyword they typed into google to get to my webpage.

    Oviousely to get the string its easy enough just a simple $_server array but is there a class or code to parse this information into just the keyword?

    Thanks.
  6. Hello

    Looking for a review on my site http://www.dog-toy.co.uk/

    Worked very long and very hard on it


    [b]I would also like to thank all PHP freak members who helped by anwsering my many questions on here - was a massive help thank you.[/b]
  7. Hey,

    Im setting something up where i need to handle post data then send it back to the server

    the bit im struggling on is i dont know how to send post data without submiting it through a form?

    this is how the thing needs to work

    outside server sends post data[no problem] -> my server sends post data back to there server [problem]


    so how do i send post data to a url without using a submit button how do i just send the post array to a server?
  8. Im having a really hard time with a problem.

    I want my shopping cart to check if the items added to cart is greater than those currently in stock i ran the query in phpadmin to see why it wasnt working but


    [img]http://img237.imageshack.us/img237/7674/phpweirdny2.jpg[/img]
×
×
  • 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.