Jump to content

Mesh3L

Members
  • Content Count

    8
  • Joined

  • Last visited

Community Reputation

0 Neutral

About Mesh3L

  • Rank
    Newbie
  1. Hello,I have a form that has some options for the user (e.x, color,size and price). For every one the user can select a specific value from a menu OR select ALL (e.x: COLOR : ALL,RED,BLUE,BLACK).Now, I have one SELECT query that looks similar to (SELECT * FROM TABLE WHERE COLOR='$COLOR' AND SIZE='$SIZE' AND PRICE='$PRICE':)BUT, if for one of the options, the user selects the value "ALL". This will effect the query and return null.Is there some thing in the query that i can change to ignore that specific option if the value is ALL ?The only in hand solution i can think of now is to make an IF s
  2. Thanks justsomeguy, this is surly a good suggestion.However, amazingly after posting this thread and if it was like w3schools inspiration i thought maybe it was becasue i'm calling the function from inside a form that has no action (default action might be applied) so i just removed that form and done some code re-arrangements. And every things is working fine !http://69.167.189.144/~meshalw/g/indexg2.php
  3. Hello,I'm working an a google maps API V3 and using AJAX to get data from an XML. Every thing works fine and i get all the data properly. The problem happens when i attach a variable to the XML link.Here is the map :http://69.167.189.144/~meshalw/g/indexg.phpPlease check the page with Firebug.When it first loads from the XML (with no variables attached) it works fine. However, try to insert an input and submit, Firebug will show the link with RED and it wont bring any thing.I find it strange that if you copy the red link that Firebug shows, and go it through your explorer than it will show you
  4. Hello,I'm working an a google maps API V3 and using AJAX to get data from an XML. Every thing works fine and i get all the data properly. The problem happens when i attach a variable to the XML link.Here is the map :http://69.167.189.144/~meshalw/g/indexg.phpPlease check the page with Firebug.When it first loads from the XML (with no variables attached) it works fine. However, try to insert an input and submit, Firebug will show the link with RED and it wont bring any thing.I find it strange that if you copy the red link that Firebug shows, and go it through your explorer than it will show you
  5. This is perfect! Thanks
  6. I thought i tried this! it WORKED !Thanks justsomeguy ..
  7. Hello,I'm not sure if this should be here or on the PHP forum. sorry.-----I have been stuck with this for 2 hours now and have read lots google results without any success.The following query gives me an error :"UPDATE marker SET type='$type', for='$for' WHERE id = '$id'"also tried :"UPDATE `marker` SET `type`='$type',`for`='$for' WHERE `id`='$id'"also :"UPDATE marker SET type='$type', SET for='$for' WHERE id = '$id'"also :"UPDATE marker SET type='$type' AND SET for='$for' WHERE id = '$id'"also :"UPDATE marker SET type='$type' AND for='$for' WHERE id = '$id'"i tried many others also.The error
  8. Hello,I'm a mod_rewrite newbie. I want to do the following :If a user visits www.mysite.com/ (numbers only)to be forwarded to : www.mysite.com/test.php?number= ( what ever the user entered above )But, if anything other than numbers is entered it doesn't forward to that page. Instead it takes them to www.mysite.comAnd if a user visits an existing page, nothing should be done (e.x www.mysite.com/example.php)Thank you
×
×
  • Create New...