How to remove %20 from the link parameter value of a vertical sprymenubar?

I have a Vertical menubar but I want to link the menu's to a new page where I sent a parameter value acros.
The url displays:
http://localhost/Category.php?Category=Digital%20Piano
I want it to display the following:
http://localhost/Category.php?Category=Digital-Piano
This is what the menu looks like
<ul id="MenuBar2" class="MenuBarVertical">
        <li><a class="MenuBarItemSubmenu" href="Category.php?Category=Digital Piano">Digital Pianos</a>
          <ul>
            <li><a href="#">All digital pianos</a></li>
I have tried to use str_replace, however that didn't work
Also I want to echo out the url without the "-" on the main page
Like so <?php echo $_GET['Category']; ?> where it diplays Digital piano rather than Digital-Piano
I presume I have to encode the Category=Digital Piano, however I have no idea where to start

Thanks for your quick response.
I actually tried that, but when I do it won't search my database as in there the Digital Piano is without a space.
The menubar is as follows:
<ul id="MenuBar2" class="MenuBarVertical">
        <li><a class="MenuBarItemSubmenu" href="Category.php?Category=Digital Piano">Digital Pianos</a>
          <ul>
            <li><a href="#">All digital pianos</a></li>
            <li><a href="#">Casio Digital Pianos</a></li>
            <li><a href="#">Kawai Digital Piano</a></li>
            <li><a href="#">Korg Digital Pianos</a></li>
            <li><a href="#">Roland Digital Pianos</a></li>
            <li><a href="#" class="MenuBarItemSubmenu">Yamaha Digital Pianos</a>
              <ul>
                <li><a href="#">Yamaha Clavinova</a></li>
                <li><a href="#">Yamaha Digital Pianos</a></li>
              </ul>
            </li>
            <li><a href="#">Pre-Owned Digital Pianos</a></li>
            <li><a href="#">Other Digital Pianos</a></li>
          </ul>
        </li>
        <li><a href="#">Pre-Owned Digital Pianos</a></li>
        <li><a href="#" class="MenuBarItemSubmenu">Keyboards</a>
          <ul>
            <li><a href="#">All Keyboards</a></li>
            <li><a href="#">Casio Keyboards</a></li>
            <li><a href="#">Ketron Keyboards</a></li>
            <li><a href="#">Korg Keyboards</a></li>
            <li><a href="#">Roland Keyboards</a></li>
            <li><a href="#">Yamaha Keyboards</a></li>
            <li><a href="#">Pre-Owned Keyboards</a></li>
            <li><a href="#">Other Keyboards</a></li>
          </ul>
        </li>
        <li><a href="#">Pre-Owned Keyboards</a></li>
        <li><a href="#">Recording</a>        </li>
        <li><a href="#">Amplilication</a></li>
        <li><a href="#">Accessories</a></li>
        <li><a href="#">Modules & Add-On's</a></li>
      </ul>
    </div>
All the other Piano and keyboards will get a link as well, but what I was hoping to do was not make a seperate page for each category
But just use the link
the recieving page looks as follows:
  $maxRows_getResults = 7;
$pageNum_getResults = 0;
if (isset($_GET['pageNum_getResults'])) {
  $pageNum_getResults = $_GET['pageNum_getResults'];
$startRow_getResults = $pageNum_getResults * $maxRows_getResults;
$varCategory_getResults = "-1";
if (isset($_GET['Category'])) {
  $varCategory_getResults = $_GET['Category'];
mysql_select_db($database_dBconn, $dBconn);
$query_getResults = sprintf("SELECT * FROM products WHERE Category LIKE %s", GetSQLValueString("%" . $varCategory_getResults . "%", "text"));
switch( $_GET['Sort'] ){
    case 'Low to High':
        $query_getResults .= 'ORDER BY Keysound_price ASC';
        break;
    case 'High to Low':
        $query_getResults .= 'ORDER BY Keysound_price DESC';
        break;
    case 'Color':
        $query_getResults .= 'ORDER BY Color ASC';
        break;
    case '0-500':
        $query_getResults .= ' AND products.Keysound_price BETWEEN 0 AND 500 ORDER BY Keysound_price ASC';
        break;
          case '500-1000':
        $query_getResults .= ' AND products.Keysound_price BETWEEN 500 AND 1000 ORDER BY Keysound_price ASC';
        break;
                    case '1000-2000':
        $query_getResults .= ' AND products.Keysound_price BETWEEN 1000 AND 2000 ORDER BY Keysound_price ASC';
        break;
          case '2000':
        $query_getResults .= ' AND products.Keysound_price BETWEEN 2000 AND 10000 ORDER BY Keysound_price ASC';
        break;
$query_limit_getResults = sprintf("%s LIMIT %d, %d", $query_getResults, $startRow_getResults, $maxRows_getResults);
$getResults = mysql_query($query_limit_getResults, $dBconn) or die(mysql_error());
$row_getResults = mysql_fetch_assoc($getResults);
if (isset($_GET['totalRows_getResults'])) {
  $totalRows_getResults = $_GET['totalRows_getResults'];
} else {
  $all_getResults = mysql_query($query_getResults);
  $totalRows_getResults = mysql_num_rows($all_getResults);
$totalPages_getResults = ceil($totalRows_getResults/$maxRows_getResults)-1;
$queryString_getResults = "";
if (!empty($_SERVER['QUERY_STRING'])) {
  $params = explode("&", $_SERVER['QUERY_STRING']);
  $newParams = array();
  foreach ($params as $param) {
    if (stristr($param, "pageNum_getResults") == false &&
        stristr($param, "totalRows_getResults") == false) {
      array_push($newParams, $param);
  if (count($newParams) != 0) {
    $queryString_getResults = "&" . htmlentities(implode("&", $newParams));
$queryString_getResults = sprintf("&totalRows_getResults=%d%s", $totalRows_getResults, $queryString_getResults);
On the main page I use the <?php echo $_GET['Category']; ?> to echo out the category name
Hope this helps

Similar Messages

  • HT1386 The first time I synced my iphone with my mac, I didn't realize that all of my photos from iphoto would transfer over to the phone.   Now, I need to remove some, as they are taking up too much space.  I cannot figure out how to remove them from the

    The first time I synced my iphone 4 with my mac, I didn't realize that all of my photos from the iphoto library would transfer over to the phone (more than 3,000).   Now, I need to remove some, as they are taking up too much space.  I cannot figure out how to remove them from the phone.  I tried to uncheck boxes and sync again, but I get a message that there is no room on the iphone.  I've read as many articles as I can find, but still cannot manage this.  Thanks for any help.

    Open itunes, connect iphone, select what you want, sync

  • How to remove photos from the photo library

    How can I remove photos from the photo library?
    I searched and tried the below method.
    I connected to the PC and open iTunes. I clicked "photos" on the top. Then clicked the box "Sync Photos with" and choose the dropdown and "choose folder"
    Then I clicked "desktop" option and chose an empty file and click "apply", "sync".
    However, it doesn't work. Nothing has been removed.
    I saw there is another method - deselecting the checkbox of the photo files. However, in my iTunes, there is no files has been selected.
    How can I delete photos from the photo library? Thank you.

    How did the photos get onto your device (and is it an iPad, iPhone, iPod Touch ?) ? Only photos that were synced from a computer can be deleted via iTunes, photos that were taken with it or saved from emails/websites on the iPad (or if it's an iPad copied to it via the camera connection kit) can be deleted directly in the Photos app, or you might be able to delete the via the import process : Import photos and videos from your iPhone, iPad, or iPod touch to your Mac or Windows PC.

  • How to remove "help" from the menu bar?

    I'm using a landscape monitor in vertical mode, so I have a very narrow top of the screen. I never use the help button, ever. How can I remove it from the menu bar, freeing up some space? I need more space in the menu bar for MenuMeters etc. Thanks.
    MacBook Pro Retina 15" (mid-2014) 2.5 GHz Intel Core i7
      OS X 10.9.5

    Usually the apps belonging to these icons have an option that allows you to hide the Menu Bar icon by allowing them to run as an app in the dock. However, certain applications like Caffeine must show their icons as otherwise you wouldn't be able to access them.
    For example, Dropbox doesn't allow you to remove its menu bar icon:

  • How to remove xmlns="" from the message

    some reason on the header node in the below message gets xmlns="" when the message is generated from BPEL.
    below is the output that generated. I want to remove xmlns="" from the message.
    <?xml version="1.0" ?><ProductMovementReport xmlns="urn:cidx:names:specification:ces:schema:all:4:0" Version="4.0">
    <Header xmlns="">
    <ThisDocumentIdentifier>
    <DocumentIdentifier>42519</DocumentIdentifier>
    </ThisDocumentIdentifier>
    <ThisDocumentDateTime>
    Can anybody help me please ?

    It's is missing my blog article :-)
    Here it is:
    <?xml version="1.0" encoding="UTF-8" ?><xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"><xsl:template match="comment()|processing-instruction()|/"><xsl:copy><xsl:apply-templates/></xsl:copy></xsl:template><xsl:template match="*"><xsl:element name="{local-name()}"><xsl:apply-templates select="@*|node()"/></xsl:element></xsl:template><xsl:template match="@*"><xsl:choose><xsl:when test="name() != ''xmlns''"><xsl:attribute name="{local-name()}"><xsl:value-of select="."/></xsl:attribute></xsl:when></xsl:choose></xsl:template></xsl:stylesheet>';

  • I have an iPhone 4 and I am wondering how I remove emails from the "All Mail" .  I have over 8,000 emails and want to free up storage but it will take forever to delete them 1 at a time!  Help!

    Is there a way to remove emails from the Exchange Account "All Mail"?  I have over 8 thousand emails and want to clear them out.  It looks as though I have to delete them one by one!

    Since it's an Exchange account, it sounds like the way to do this would be to remove them using a computer.

  • How to remove SANE from the list of scanners that are shared in Preferences

    So I installed SANE for an old scanner, which is now replaced by a new Canon that is supported by native OSX and canon drivers. I therefore uninstalled SANE, the prefpane and all occurrences in the /Library and so on, however it is still being listed as an option in the scanners that can be shared i.e. in System Preferences>Sharing>Scanner sharing.
    How do I go about removing this, any hints?
    I also have this suspicion that this is the root of major issues I have accessing the scanner on my system some times, since I get "scanner communication errors" quite frequently, which are in turn resolved my plugging my scanner off and back on again...I did reinstall the software and drivers that came with the scanner to no avail.
    Thanks

    Hey, I used wonder as well where the information was stored regarding the scanner sharing and I think I found a solution. Here's what I found. Download an application that can edit .plist files, such as Martin Bresink's "Prefedit" or "PlistEdit Pro".
    Go to this location: ~/Library/Preferences/ByHost and find the file "com.apple.ImageCaptureExtension2.[xxxxxxxxxxxx].plist" where X's stands for your specific Ethernet/Airport Mac address.
    Edit the file using the application mentioned and remove your scanner/device (SANE) from the Devices list (remove the device number, ie. 0 or 1 or 2, etc). Save the file. If unable to save, change permissions to own the file, save it, and reset the permissions.
    That removed the shared scanner from my list of scanners in the sharing preference.
    Hope it works.

  • Does anyone know how to remove sundays from the datepicker in BC?

    I have a client that is closed on Sundays and occasionally gets an irate customer that books late saturday and is upset that no one is there on Sundays. So I would really like to remove the option of Sundays from the date picker.

    Hi guys,
    I had the same problem as jbyrom and found a work-around using a bit of jQuery. Before I begin...
    Downsides
    It's a bit of a pain if you have tons of date fields, as you'll need to add a class to each datepicker field
    Because you need to add a class to each datepicker field, you'll need to add the Web Form as HTML (ie make sure "insert as module instead" is unchecked when adding the form to a page)
    As mentioned, it's a work-around - may stop working in the future if Adobe changes the way the datepicker works
    Users could still put in "restricted" dates by manually typing the date instead of clicking the date in the datepicker
    How-To
    Add a class to each datepicker field you want to restrict days on (I'm using "datepickerhack").
    Add the script below the form (ie at least after the closing </form> tag). This is so jQuery and BC's Java_Datepick.js are loaded before the script.
    Add some CSS to your stylesheet to make it obvious to them they can't click certain dates.
    Script
    <script type="text/javascript">
    $(document).ready(function(){
         $(".datepickerhack").focus(function(){
              // Grab the ID of the relevant date field and use it to call the built-in BC displayDatePicker function
              var datetable = $(this).attr("id");
              displayDatePicker(datetable);
              // Now the date table is in the DOM, remove the onclick events of the appropriate TDs
              // In this example I'm removing the onclick event of the first TD in each row (ie Sunday)
              $(".date tr td:first-child").attr("onclick","");
              return false;
    </script>
    CSS
    Last step is something simple for usability, so users know they can't click the unclickable days. I just used:
    .date tr td:first-child{background-color:#CCC;}
    .date tr:last-child td{background-color:#FFF;}
    The second line is needed as the last row contains the "Today"/"Clear"/"Close" buttons (as opposed to dates)
    Edit: fixed formatting, added last "Downside"

  • How to Remove CSS from One Link?

    My links are all the same color. I do not want a color on one link. Is there a SIMPLE way to REMOVE that CSS style from the one link?

    It is a yellow button with blue writing on it. But on the website it appears with a purple stroke around it. The other links on the page are just purple words. I want to get rid of the purple stroke around the yellow button.

  • Caching issue - How ro remove cache from the portal iview

    Hi,
    I am facing problem of caching.In my application I am substituting one user(user 1) to some other user(user 2).Based on the substitution(latest substitute user 2),I should get the values for the User 2.
    But after substitution,I am getting the values for the user 1 and after some time(2/3 second) I am able to get all the values for the User 2.The application is working fine.But some how its retaing the previous values of the user 1.
    Can anyone please suggest me how to remove the cache from the iview.
    Regards
    -Sandip

    Hi Sandip,
    Enterprise Portal caching can be taken care or in a number of ways, all these are listed in the doc below:
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/71d7b8dc-0701-0010-dfba-881dba1b5b95
    - Regards, Dibya

  • How to remove keys from the keyboard on macbook pro 2011

    I wonder how i remove the keys on macbook pro 2011 model?

    Hi x,
    Here are some links. None of them show your exact model, but keys have been the same/very similar for some time now. You may even want to google and check youtube to see if newer guides are available. If it's just a few keys, the "genius" bar at an Apple Store would probably help you with it.

  • How to remove addresses from the automatic list

    OK, I'm using in Italian version of Mail, so I don't know the exact name of the funcion I'm having a problem with.
    This is my problem: when I create a new messagge and type in the address, Mail suggest previous addresses with a pop-up list. Unfortunately this list includes old spam addresses of emails that I have received.
    Could anyone tell me if it is possible to modify, even manually, such list?
    Thanks a lot,
    Emmanuel

    The Mail.app doesn't automatically save the sender's email address for received messages but saves recipient's email addresses for all sent messages in the list of Previous Recipients in Mail.
    The Mail.app autofill feature pulls from the Address Book and the list of Previous Recipients in Mail.
    At the Mail.app menu bar, go to Window and select Previous Recipients.
    A previous recipient entered in the Address Book will have a vCard icon to the left of the name or email address. You can remove a previous recipient from the list or add a previous recipient to the Address Book that is not already entered.
    Removing a previous recipient from the list of Previous Recipients in Mail has no effect on Address Book entries.

  • How to remove Babylon from the search engine menu?

    My OS is Windows 7 Pro 64 bit; using Firefox ver 15.0. I downloaded Babylon tool bar and related apps because they were associated with a tool manual that I wanted to review. I then discovered how invasive these apps are. Successfully removed Babylon downloader and Tool bar via Start | Control Panel | program menu. However I notice that "Search the web (Babylon)" is still listed in the drop down menu of search engine options. I have defaulted my search engine to Google, and I can delete the Babylon option, but it returns every time when I close my browser and then return to my FF Mozilla home page. How can I permanently remove Babylon as a search engine option?

    '''edit'''<sub>( comments by a forum moderator - J99 )</sub> COMMENT: everyone;
    *I realise there may be a good deal of frustration is some situations, and some comment may be intended as hyperbole or humour, but please try to follow [[Forum rules and guidelines]]. There is otherwise a risk that action will be taken against infringers, that could include deletion of whole posts or even account deactivation.
    * I have let this post stand, it is quote by Babylon in a [https://support.mozilla.org/en-US/questions/935739#answer-372309 rebuttal] lower down in this thread
    * as an aside, note that I understand Firefox management staff are currently co-ordinating improvement in documentation relating to removal of software extensions.
    Babylon is the most pernicious, invasive, intrusive, manipulative and misleading software company on the internet. They pretend to be legitimate but their practices, actions and tactics are in the same league as spyware, viruses and malware. If there is a way to block them I want to know how. Legal action is the only way companies like this one can be controlled. I volunteer as lead plaintiff.

  • How to remove entries from the new auto-complete ?

    Firefox 33 came with a new auto-complete for forms. Unfortunately I cannot seem to delete the auto-complete suggestions once they have been stored. This is necessary functionality for things like mis-spelled words, where you want to get rid of the old (bad) auto-complete entry, or where username was changed on a form, etc. With the older versions, you could just press delete key on highlighted auto-complete suggestion and it would be removed, but this functionality does not work with the new auto-complete. The only workaround I have been able to find so far is to clear the browser history for the last 1 hour, but that wipes out good history as well as the error.

    Hello,
    Can you '''try Firefox Safe Mode''' and see if you have the same problem there? [[Troubleshoot Firefox issues using Safe Mode|Firefox Safe Mode]] is a troubleshooting mode that turns off some settings, disables most add-ons (extensions and themes).
    If Firefox is open, you can restart in Firefox Safe Mode from the Help menu:
    *Click the menu button [[Image:New Fx Menu]], click Help [[Image:Help-29]] and select ''Restart with Add-ons Disabled''.
    If Firefox is not running, you can start Firefox in Safe Mode as follows:
    * On Windows: Hold the '''Shift''' key when you open the Firefox desktop or Start menu shortcut.
    When the Firefox Safe Mode window appears, select "Start in Safe Mode".<br>
    [[Image:Safe Mode Fx 15 - Win]]
    '''''If the issue is not present in Firefox Safe Mode''''', your problem is probably caused by an extension, and you need to figure out which one. Please follow the [[Troubleshoot extensions, themes and hardware acceleration issues to solve common Firefox problems]] article to find the cause.
    ''To exit Firefox Safe Mode, just close Firefox and wait a few seconds before opening Firefox for normal use again.''
    When you figure out what's causing your issues, please let us know. It might help others with the same problem.

  • How to remove photos from the new photos app (os x Yosemite) from one mac without (accidentally) deleting them on my other mac?

    I've upgraded from iPhoto to Photos app on my MBP. All the pictures from my main mac got uploaded to the iCloud. I also upgraded to Photos on my older mac (it has limited HD  space) and all the pictures started being downloaded to it. I went to preferences (on the older mac) and turned off the downloading, photo stream, etc. but the pictures are still there. I'm afraid to hit delete because I don't want them to magically disappear from my main mac.
    All I want, is to remove them from my old mac to free up the space.

    If you turned off or uncheck iCloud Photo Library and My Photo Stream in the Photos app preference window, then the delete should not sync up to the cloud. Also, until you empty the 'Recently Deleted' container, the images are still on your Mac:
    https://help.apple.com/photos/mac/1.0/?lang=en#/pht3bfab2f96
    Deleted photos and video aren’t immediately removed from your library; they’re placed in the Recently Deleted album, where they remain for the number of days shown, and then are deleted. You can recover the items before that period of time (see the next task). If you have iCloud Photo Library turned on, the photos may remain in iCloud up to 40 days and then are removed from all your devices that use iCloud Photo Library. If you’re not using iCloud Photo Library, your deleted photos are removed from your Mac only.

Maybe you are looking for

  • Adobe Bridge Batch Rename Stopped Working

    ive been using bridge exclusively to rename/ organize my files and today for some odd reason it just will not work. i select the files i wish to rename and then select batch rename and name/numer the files as ive always done before and when i click r

  • I got a new harddrive for my MacBook Pro and successfully restored the mac partition, but I don't know how to restore the bootcamp partition.

    So I got a new hard drive for my early 2009 version Mac Book Pro and some new memory to speed the little guy up.  I was trying to copy the Mac and BOOTCAMP partitions onto the new drive, and I am close, but not home free. Here's what I have done so f

  • Apps password unknown

    While running fndcpass to change passwords for a new clone, the apps password somehow was set to an unknown value. I know the old apps password, but am not able to successfully connect to the database with it. (I can connect with that password to the

  • Need multiple Acct Assign PR with GR- valuated....

    Hi Friends... The customer`s requirment is: We want to have multiple WBS element allocation for single Line Item in Purchase requisition and PO also. In our case we create the PR through an interface automatically. Pls help us how to meet this requir

  • A keyword proposition

    i like very much the keyword 'with' offered by plural number of other languages. it would be nice if java implements it too. like: with(new FileWriter("output.txt")) { .write("Hello world"); .close(); it would be nicer if the 'this' keyword refers to