SitePoint Sponsor

User Tag List

Results 1 to 5 of 5

Hybrid View

  1. #1
    SitePoint Wizard edshuck's Avatar
    Join Date
    Jul 2000
    Posts
    1,200
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    hi
    i got my data into mysql, wrote a workable php with lots of help from you all. the display works fine for win98. but then falls apart on apple and winnt.

    here is how

    my site is noevalley.com. go there and click on shops and services and a page with multiple categories displays. some are one name categories and some are multiple name.

    click on a single name and the category will open to display the possibilities. ie thai under food. but if you had chosen public elementary a two name category under schools only public would display and no selections.

    on win98 this would work fine on winnt or apple it would be as described.

    the reason

    there is a desire for a + between the public and education in the nt and apple and the win98 takes care of it internally.

    so i will be going to kevins tutorial for the answer.

    if anyone has a win98 that is not working as i had originally intended, please let me know.

    darned if i know for sure. similar problems?

    thanks ed

  2. #2
    Dumb PHP codin' cat
    Join Date
    Aug 2000
    Location
    San Diego, CA
    Posts
    5,460
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yes you must urlencode your variable if they are two words So when you disply the links try rawurlencode($variable) This will add the necassary + for you and your variables will be passed correctly. Let me know if this helps you!

  3. #3
    SitePoint Wizard edshuck's Avatar
    Join Date
    Jul 2000
    Posts
    1,200
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    hi

    looks like that is exactly what i need to do. the problem will have to wait til tommorow. my machine is a win98 and i cannot see the problem from here. it works fine.
    tommorow i will have winnt at the local library and another apple down the street.

    i will let you know. thanks again.

    but why does the problem not show up on my machine? strange.

    ed


  4. #4
    Your Lord and Master, Foamy gold trophy Hierophant's Avatar
    Join Date
    Aug 1999
    Location
    Lancaster, Ca. USA
    Posts
    12,305
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    It won't happen on your local machine if your accessing the pages locally because Windows allows spaces in filenames.

    Once you move to another machine you now have to access the files through HTTP which doesn't allow spaces in filenames.

    ------------------
    Wayne Luke - Sitepoint Forums Administrator
    Digital Magician Magazine - MetaQuark Creations (Coming Soon)
    wayne@sitepoint.com

  5. #5
    SitePoint Wizard edshuck's Avatar
    Join Date
    Jul 2000
    Posts
    1,200
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    hi
    ok first suggestion put in a %20 in the space. so i backed out of that.

    second the isp is in fremont (he.net) running linux and i am in san francisco running win98/2. my access to post is via ftp and telnet. my read of the site is through the http://www.noevalley.com. i tried with the home page set to noevalley and to msn. no change.

    so for now i am leaving it with word-word rather than word space word and it works.

    i have pulled down the maps that require number+street until i figure out how to add the + .

    here is the snip that includes the maps for the site.

    //echo('<a href="http://maps.yahoo.com/py/maps.py?&addr=');
    //print($row["address"]);
    //echo('&csz=San+Francisco%2C+CA+94114">');
    //echo('<img src="http://us.yimg.com/i/yahootogo/buttons/yahoo_maps.gif" width=150 height=23 //align=middle alt="[ Yahoo! Maps ]">
    //</a>');
    at the $row["address"] the program (on my pc) inserted in the address and on this machine it would run without the "+" ie. 400 Collingwood Street but other machines needed a 400+Collingwood+Street.

    a click on my machine and the map would appear. on winnt, a request for the map would appear.

    the look was of a yahoo logo/button and when clicked would provide a map.

    i will find it in kevins tutorial.

    later and the best too all ed



Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •