Problem adding a filter to Recordset

Hi,
I have added a record set to a page, and it works fine.
Then I add a filter to the record set so I can work with the record stipulated by the URL parameter, and it stops working.
Here is the code that is added without a filter:
mysql_select_db($database_ecards_01, $ecards_01);
$query_currContent = "SELECT * FROM `7417_content`";
$currContent = mysql_query($query_currContent, $ecards_01) or die(mysql_error());
$row_currContent = mysql_fetch_assoc($currContent);
$totalRows_currContent = mysql_num_rows($currContent);
Here is what is added for the filter:
$colname_currContent = "-1";
if (isset($_GET['ID_cnt'])) {
$colname_currContent = $_GET['ID_cnt'];
mysql_select_db($database_ecards_01, $ecards_01);
$query_currContent = sprintf("SELECT * FROM `7417_content` WHERE ID_cnt = %s", GetSQLValueString($colname_currContent, "int"));
$currContent = mysql_query($query_currContent, $ecards_01) or die(mysql_error());
$row_currContent = mysql_fetch_assoc($currContent);
$totalRows_currContent = mysql_num_rows($currContent);
And there is also the usual 'mysql_free_result($currContent);' line added at the bottom of the page.
It seems to all fall over on this line:
$query_currContent = sprintf("SELECT * FROM `7417_content` WHERE ID_cnt = %s", GetSQLValueString($colname_currContent, "int"));
as I have narrowed this down by commenting lines out step by step.
I should also mention that the recrod set works fine on my local machine (using the TEST button in the dialog box that sets all parameters).
Is this something anyone else has experienced as well?
How can I fix this?
Do you need to know anything else?
Thanks,
Nik

Make sure that you have a URL parameter named ID_cnt and that it has a value.

Similar Messages

  • Problem adding recordset to a Template page

    I've been having problems adding sql recordset to a Template page, when i set the record the editable region of the template is no longer editable and it begins to be editable everything else, one more thing that happens with the record is that is partially inserted into the body of the php page, i have tried to reinstall wampserver, dreamweaver, delete the folder with the user settings and the registry of dreamweaver but nothing seems to work, the only thing that i haven't tried is delete the folder with the main settings, but i don't think that it is the problem
    sorry for the bad english.
    Any help would be greatly appreciated.

    Your library is damaged and my not be able to be totally recovered, i.e. recover albums, slideshows, etc. along with the photos.
    If the original files for your photos are inside the library package (even if iPhoto can't display them) the following should create a new library with all of your photos. 
    Start over from scratch with new library
    Start over with a new library and import the Originals (iPhoto 09 and earlier) or the Masters (iPhoto 11) folder from your original library as follows:
    1.  Move the existing library folder to the desktop.
    2. Open the library package like this.
    Click to view full size
    3. Launch iPhoto and, when asked, select the option to create a new library.
    4. Drag the Originals (iPhoto 09 and earlier) or the Masters (iPhoto 11) folder from the iPhoto Library on the desktop into the open iPhoto window.
    Click to view full size
    This will create a new library with the same Events as the original library but will not keep the metadata, albums, books slideshows and other projects.  Check it out carefully to see if all of your photos are represented in it.
    Your current library will still be available for further fix attempts.

  • Can't not choose field for filter in recordset dialogbox

    I deveop website by DreamweaverMX. I have some problem with
    dynamic page for ASP when I click binding-->recordset if I
    choose field for filter or choose URL Paramiter when I test webpage
    It say "The page cannot be displayed" If I choose filter is "None"
    webpage can be show.What happend? Please help me for solve this
    problem.
    Best Regards,
    Nisarat

    When you added the Filter parameter in the dialog bow, did it
    test successfully at that point (by clicking on the Test button)?
    Did it prompt you for the value of the variable you want to filter
    by?
    If so, maybe that variable is undefined or null in the web
    page when you browse it on your web site.

  • Strange Problem with InKeyset filter

    I encountered a strange problem with inkeyset filter.I am trying to do some operations on the the selected set of keys within a cache. I have posted the psuedo code below
    InKeySetFilter inKeySet=new InKeySetFilter(AlwaysFilter.INSTANCE,orgDestFlightSubset);
    // Set of Keys for NamedCacheInstance
    inKeySet.ensureConverted
    (NamedCacheInstance.getCacheService().getBackingMapManager().getContext().getKeyToInternalConverter());
    Extra code to be Added
    System.out.println(NamedCacheInstance.entrySet(inKeySet).size());
    Always prints 0 eventhoug the keys are present in cache. If i add the following code
    NamedCacheInstance.get(orgDestFlightSubset.toArray()[0]) above printing it gives 1 as a result.
    I am sure that object is in cache becoz cache.get() does not call the DB again
    Can anyone tell me what could be the possible problem?

    Hi,
    user10866091 wrote:
    I encountered a strange problem with inkeyset filter.I am trying to do some operations on the the selected set of keys within a cache. I have posted the psuedo code below
    InKeySetFilter inKeySet=new InKeySetFilter(AlwaysFilter.INSTANCE,orgDestFlightSubset);The orgDestFlightSubset must contain keys in Java format which are existing cache keys.
    user10866091 wrote:
    // Set of Keys for NamedCacheInstance
    inKeySet.ensureConverted
    (NamedCacheInstance.getCacheService().getBackingMapManager().getContext().getKeyToInternalConverter());I assume NamedCacheInstance is a NamedCache instance obtained from CacheFactory.
    In this case you should not call the ensureConverted method. This is called by Coherence on the storage nodes upon deserializing of the filter.
    Try these changes.
    Best regards,
    Robert

  • Cannot place order ERROR: "There was a problem adding your product to cart"

    Hey guys,
    Well, once again Best Buy's online system is preventing me from making an order. It seems like nearly every time I log in I experience some new problem. This time, I'm unable to add anything to my cart. It doesn't matter what item I try to add to my cart or what browser I use or if I clear cookies...it happens every time, on every browser, with every product in the store. The error shows a red & white triangle with a message "There was a problem adding your product to cart".
    Just to clarify ahead of time: 1) I have already tried signing in using 4 different browsers (explorer, firefox, chrome, opera) & they all give the same error; 2) Prior to posting here I researched this problem & found out it is somewhat common & has been occurring since at least 2012 on BestBuy.com; 3) Every time someone posts in here about this problem, customer service offers the same "fix" every time - to sign out, clear their browser cache of cookies, shut down the browser, restart the browser, sign back in, etc.... The only problem is, this "solution" has not worked ONE time our of the many times this problem has cropped up in here over the past 3+ years. Why this "solution" keeps getting told to people even though it never works is beyond me. But, there you have it.
    Just to clarify: I have already tried this solution, And just like with everyone else before me, it didn't work for me either. So, what's the next step? There must be something else that can be done other than waiting a couple more days for it to magically fix itself (it seems that is the only thing that ever "works"...is to let several days go by and the problem ends up getting fixed in some back-end server-side patch up). 
    What I'm hoping for from you is a solution that can fix this immediately. This problem has already prevented me from making a couple purchases for items that were temporarily on sale over the past couple days. So, those are lost sales for Best Buy. What I'm hoping to do now is pre-order the Elder Scrolls Online (PS4) in order to take advantage of the $10 pre-order reward. The game releases on Tuesday the 9th. So, in order to get this done in time I need to place the order sometime today (on the 8th).
    With all these repeated technical problems making purchasing a chore & wasting my time every single time I want to buy a product it's almost as if Best Buy is telling customers "We don't care if our online system works reliably...go spend your money at Amazon instead". lol
    Thank you in advance for your timely help on this matter.
    -Marc (removed per forum guidelines)

    Hello mjswooosh,
    I'm very disheartened to hear that you've had ongoing problems when attempting to order from BestBuy.com. Our goal is ever to provide a fun and efficient shopping environment! Certainly creating aggravation serves neither you nor us and I apologize sincerely for this having been your experience.
    We recommend the troubleshooting steps you mentioned (i.e., clearing the browser cache, deleting temporary internet files and cookies) because this is the most common cause of this type of problem. I too have encountered this issue from time to time and these steps have almost always resolved the problem. I say almost always because there's one further step you can try: ensure that you have signed out of BestBuy.com, then perform the browser maintenance steps we've recommended. Afterward, before signing in to BestBuy.com, add your desired items to your cart and sign in as part of the checkout process. When the standard steps have not netted a resolution for me, this has solved the problem each time.
    I hope this helps. I'm very grateful that you took the time to write to us with your concerns and for sharing your very valuable feedback about your online experience.
    Sincerely,
    John|Social Media Specialist | Best Buy® Corporate
     Private Message

  • Can you use a php variable to filter a recordset?

    I've got a table of 'events', which have a description and
    more importantly for this a month ID number. (1-12 for the months
    of the year, when the event takes place) .
    I've used php's date function on a page to fund out
    numerically what month it is now $thismonth = date("n");
    i want to filter my recordset by only bringing up events that
    take place during the current month so where event_month =
    $thismonth
    IS this possible? It seems like it should be easy to do but I
    can't get it to work.
    Thanks in advance
    Dave

    jnkjnkjnkjnkjn wrote:
    > i want to filter my recordset by only bringing up events
    that take place
    > during the current month so where event_month =
    $thismonth
    >
    > IS this possible? It seems like it should be easy to do
    but I can't get it to
    > work.
    Yes, it's very easy, but you need to do a little hand-coding.
    In the
    Advanced recordset dialog box set the end of the SQL query to
    WHERE
    event_month = 1. When you have saved the recordset, change
    the SQL to
    WHERE event_month = $thismonth.
    David Powers, Adobe Community Expert
    Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
    Author, "PHP Solutions" (friends of ED)
    http://foundationphp.com/

  • Getting a "Displaying only the newest results below. To view all results, narrow your query by adding a filter" message in error

    I have a list with almost 10000 items. I have a view that should be returning 8 items. For me, the Farm Admin, I see the full set of expected values. The message "Displaying only the newest results below. To view all results, narrow your query by
    adding a filter" shows for other users. This makes no sense -
    there ARE filters on this view. I'd rather not increase the throttle limit.
    Anthony Kelly

    Hi Ajk,
    Check that the list is not scoped by an audience; but, I'm afraid that either way admin, (e.g. non Farm admin or site collection admin)
    I'd recommend exporting to excel, create two new spreadsheets and then import as custom lists.
    Best of luck and cheers,
    Stacy Anothersharepointblog.blogspot.com

  • Problem adding HP J6400 all-in-one printer

    We have an HP Officejet J6400 all-in-one printer here at work, and all of our computers have had no problem adding this printer except one: an older iMac, PowerMac 6.1 (with the white domed base). The driver is installed, and the computer sees the driver, but when I click to add it eventually it gives me this error:
    "An error occurred while trying to add the selected printer. client-error-not-authorized"
    I was on the phone with HP for an hour and they couldn't figure it out on their end. Has anyone had a similar problem, or have a solution?

    Hi,
    I request you to try the following:
    For network connection:
    http://h10025.www1.hp.com/ewfrf/wc/document?docname=c03086294&tmp_task=useCategory&cc=us&dlc=en&lc=e...
     For USB:
    http://h10025.www1.hp.com/ewfrf/wc/document?docname=c03521864&tmp_task=useCategory&cc=us&dlc=en&lc=e...
    Although I am an HP employee, I am speaking for myself and not for HP.
    Say thanks by clicking the "
    Kudos! Thumps Up" which is on the right
    Make it easier for other people to find solutions, by marking my answer with "Accept as Solution" if it solves your issue
    Regards,
    Ray

  • I upgraded to Mountain from Snow and find that there is now a problem adding iphoto to the cloud.  I have iphoto '08,version 7.1.5.  Tried to follow one poster's advice and upgrade to 9.1 but I need 9.0 first and I can't find that.  suggestions? thanks!

    I upgraded to Mountain from Snow and find that there is now a problem adding iphoto to the cloud.  I have iphoto '08,version 7.1.5.  Tried to follow one poster's advice and upgrade to 9.1 but I need 9.0 first and I can't find that.  suggestions? thanks!

    You have to buy iPhoto from the Mac App Store.

  • Problem with Extract Filter

    I have Problem with Extract Filter which was working OK until recently.
    Now, when I choose the filter the screen does not come up as the extract screen as it should and no other action can be taken except to press escape which returns me to normal. working.    Looks as if the extraction function has been sleected but does not show?
    I am trying to use the  extract on a layer.  Have tried to use it on a selection also.
    Anyone suggest a solution please?
    Bill

    Without a way to reset the tool, the only possibility seems to be to reset your preferences as described in the FAQ.
    http://forums.adobe.com/thread/375776?tstart=0
    You either have to physically delete (or rename) the preference files or, if using the Alt, Ctrl, and Shift method, be sure that you get a confirmation dialog.
    This resets all settings in Photoshop to factory defaults.
    (A complete uninstall/re-install will not affect the preferences and a corrupt file there may be causing the problem.)

  • Issue / problem adding audio in Presenter 7 (PowerPoint 2010)

    Since I got a new PC (Windows 7), I'm having an issue / problem adding audio in Presenter 7 (PowerPoint 2010).
    It doesn’t happen every time, but randomly with many presentations...
    In PowerPoint, right after I import audio (through Presenter) and click “ok”, I get the following errors:
    Then, I can't get into the "import/sync/edit" mode, from the Presenter tab...
    Already tried reinstalling Presenter, resaving new presentations, deleting the .ppcx/audio folders, importing the audio locally (vs from my network drive), etc.
    Then sometimes, randomly, it will let me get back in and edit the audio, after numerous attempts…?!? I can't figure out what the pattern is, which is causing this new problem (never had this problem before, w/ my old PC - Win XP / PowerPoint 2003 / Presenter 6 & 7)
    Anybody have an idea what the issue could be?
    Thanks,
    Mike P.

    Hello,
    I  tried to reproduce this issue but I am not getting any error message. Please provide us following information; this might help to reproduce this issue:-
    1) You are seeing this issue in  PPT or PPTX
    2) You seeing this issue in newly created presentations or its just old presentation which is not working properly.
    3) OS and PowerPoint version
    4) If this issue is consistent on any particular presentation then please share it.
    5) Can we have exact reproducible steps
    Regards,
    Shubhi

  • Problem with ALV filter functionality when filtered for multiple values

    Hi,
    I am facing a problem with ALV filter functionality.
    I have displayed an ALV with some columns col_A, col_B and col_C
    col_A---- col_B -
    col_C
    1----
    a -
    abc
    2----
    b -
    pqr
    3----
    c -
    lmn
    4----
    d -
    xyz
    5----
    f -
    stu
    From the settings link I am applying filter on column col_C and selected multiple values say 'pqr', 'xyz' and 'lmn'.
    Now the ALV is showing rows only for last selection i.e . results are fetched only for value 'lmn'.
    i.e. after applying the filter the ALV table looks as below:
    col_A---- col_B -
    col_C
    3----
    c -
    lmn
    But ideally it should be:
    col_A---- col_B -
    col_C
    2----
    b -
    pqr
    3----
    c -
    lmn
    4----
    d -
    xyz
    I could not find any OSS note related to this issue.
    Please help me resolve this issue.
    Thanks,
    Feroz

    Hi,
    I am facing a problem with ALV filter functionality.
    I have displayed an ALV with some columns col_A, col_B and col_C
    col_A---- col_B -
    col_C
    1----
    a -
    abc
    2----
    b -
    pqr
    3----
    c -
    lmn
    4----
    d -
    xyz
    5----
    f -
    stu
    From the settings link I am applying filter on column col_C and selected multiple values say 'pqr', 'xyz' and 'lmn'.
    Now the ALV is showing rows only for last selection i.e . results are fetched only for value 'lmn'.
    i.e. after applying the filter the ALV table looks as below:
    col_A---- col_B -
    col_C
    3----
    c -
    lmn
    But ideally it should be:
    col_A---- col_B -
    col_C
    2----
    b -
    pqr
    3----
    c -
    lmn
    4----
    d -
    xyz
    I could not find any OSS note related to this issue.
    Please help me resolve this issue.
    Thanks,
    Feroz

  • All new podcasts blank - There was a problem adding "" to iTunes.

    All new podcast episodes have a blank name, but the description is there. Clicking the exclamation point next to it yields - There was a problem adding "" to itunes.
    This is not just my old subscriptions but new ones as well. The episode actually downloads completely but does not get added to my library.
    Anybody have a suggestion how to resolve this?

    After days of no solution, as soon as I post it decides to resolve this by itself.

  • Problem adding elements to a group after removing everything...

    Hi everyone,
    I would really appreciate some help on something. I have a Group that has some Buttons in it. This Group is in one of fours States, and there is a componant for each State. After the user goes through the rest of the program and comes back to this State, I want to remove the old buttons, and add new buttons with new values. Bascially, I want to refresh the componant when it is visited a second time. I have a problem adding new Buttons to the group when the user revisits the componant / state.
    The group is created:
              <s:VGroup id="buttons"  x="0" y="35"  height="400" width="280" />
    When the init function for that componant is called, buttons are added from an array of buttons:
    for(var i:int = 0; i < 10; i++){
              var button:Button = questions[i];
              trace(button);
              button.addEventListener(MouseEvent.CLICK, myEventHandler);
              trace(buttons);
              buttons.addElement(button);
    When the user moves on to the next State, the buttons are removed:
    if(counter == 4){
              buttons.removeAllElements();
              FlexGlobals.topLevelApplication.currentState = 'Summary';
    When the user comes back to the initial state, the buttons are not added to the Group like they are the first time. The output of the trace as each button is added is also different the second time:
    First time: (successful)
    Main.MainBackground2.contentGroup.gameComp.buttons
    button8
    Second time:
    buttons
    button8
    Can anyone point me in the right direction? And better question, is there a better way I should be doing this?
    Is there a better way to refresh everything within a component upon viewing it s second time?
    Thanks in advance!

    I'm not sure why you are using addElement() to add the buttons. Aren't you supposed to let the state functionality handle when the buttons should be visible? That's the cleanest way to do it in most cases. You may want to post a larger code sample, where you have boiled down the code into a minimal sample that still enhibits the issue.
    If this post answers your question or helps, please mark it as such.
    Greg Lafrance - Flex 2 and 3 ACE certified
    www.ChikaraDev.com
    Flex Training and Support Services

  • Problem with alv filter

    Hi all,
    I have a problem when i filter ALV column, which has data type  BELNR (FI doc No). I input in filter FI doc: 40000007 (8 char long, w/o zero ahead), then i get the empty result. The really one i want to get is a ALV line with FI doc = '40000007'.
    Could u pls help me?
    Thanks and regards,
    Hung.

    Check the field catalog for field BELNR, it should have conversion exit ALPHA. (check your report or execute [The Consistency Check|http://help.sap.com/saphelp_sm32/helpdata/EN/d6/23253963143e6ae10000000a11402f/frameset.htm])
    Regards,
    Raymond

Maybe you are looking for