Mysql_num_rows(): supplied argument is not a valid MySQL result resource

function validatelogin($username, $password)
$query = $this->escape("SELECT * FROM 'ampmember' WHERE
'username'='%s' AND 'password'='%s'", $username, $password);
NetDebug::trace($query);
$rs = mysql_query($query);
if(mysql_num_rows($rs) == 1) (THE ERROR IS WITH THIS ROW)
return true;
else
return false;
* Escape a SQL String
* @access remote
function escape($sql)
$args = func_get_args();
foreach($args as $key => $val)
$args[$key] = mysql_real_escape_string($val);
$args[0] = $sql;
return call_user_func_array('sprintf', $args);
}

You can try:
"Clear the Cache": Tools > Options > Advanced > Network > Offline Storage (Cache): "Clear Now"
"Remove the Cookies" from sites causing problems: Tools > Options > Privacy > Cookies: "Show Cookies"
See http://kb.mozillazine.org/Clearing_the_cache and http://kb.mozillazine.org/Cookies

Similar Messages

  • Warning: ociparse(): supplied argument is not a valid OCI8-Connection

    We upgraded to AS10gr2 from AS10gr1. Php is version 4.8.3 .
    The php application we have will let you log in but once you drill in to a page we get a number of errors that are similiar to this
    Warning: ociparse(): supplied argument is not a valid OCI8-Connection resource in c:\webdocs\siast\srapp\v9.0\form0.php on line 429
    We connect to the db with
    /* database connection */
    $username = "joeblow";
    $password = "pwd";
    $hostname = "db.world"; <= defined in tnsnames.ora file
    //if a connection cannot be made - display error message
    if (!$conn = @ocilogon($username, $password, $hostname))

    Hi I have encountered the same problem with PHP4.4
    Is there a solution that I can fix this problem?
    oci8): SELECT CUSTOMER_NUMBER, CUSTOMER_NAME FROM RA_CUSTOMERS WHERE nvl(ATTRIBUTE16, 'N') = :key; [ (key=>'Y') ]
    Warning: ociparse(): supplied argument is not a valid OCI8-Connection resource in /dcc/www/ecrm/itc/include/adodb/drivers/adodb-oci8.inc.php on line 764
    :

  • Not a valid oci8 statement resource

    I've been grappling this problem sometime, google doesn't help because all the results I get are pages with the same error.
    Warning: oci_fetch(): 3 is not a valid oci8 statement resource in /home/dsk10/ugrad/bejhan/web_docs/facttable.php on line 21
    Line 21 is: while(oci_fetch($SQL)) {
    My loop functions correctly and fetches the results properly though. Here is my connect and creation of the statement:
    $c = oci_connect("bejhan", "******");
    $SQL = oci_parse($c, "SELECT TIMETRANSACTIONID, TO_CHAR(TDATETIME, 'YYYY-MM-DD HH24:MI:SS') AS PHPDATE, DURATION, TIMECODEDEFID, TEAM, MATERIALTYPE FROM c391.TimeTransactionData78 WHERE ROWNUM < 10 ORDER BY TDATETIME");
    oci_execute($SQL);
    When I run this query in SQLPlus I don't receive any errors.
    What is causing this warning?

    Okay changed the code to:
    $c = oci_connect("bejhan", "******");
    $SQL = oci_parse($c, "SELECT TIMETRANSACTIONID, TO_CHAR(TDATETIME, 'YYYY-MM-DD HH24:MI:SS') AS PHPDATE, DURATION, TIMECODEDEFID, TEAM, MATERIALTYPE FROM c391.TimeTransactionData78 WHERE ROWNUM < 10 ORDER BY TDATETIME");
         $error = oci_error();
         if($error)
              echo "SQL ERROR: (" . $error['message'] . ")";
         else
              echo "NO ERROR";
    oci_execute($SQL);
         $error = oci_error();
         if($error)
              echo "SQL ERROR: (" . $error['message'] . ")";
         else
              echo "NO ERROR";
    //Fix problem with fetch statement
    while(oci_fetch($SQL)) {
         $error = oci_error();
         if($error)
              echo "SQL ERROR: (" . $error['message'] . ")";
         else
              echo "NO ERROR";
    However, I just get NO ERROR for all of these.

  • Supplied XML is not valid

    Hi All,
    While refreshing a Webi report, I am getting following error: 
    "A database error occured. The database error text is: The supplied XML is not valid. [Measures].[0701FBYSYG9KJQ47GRMMAVZ89]. (WIS 10901) ".
    Could you please let me know how to resolve it?
    Regards,

    definition of one of your measure objects selected in the webi query is not correct in the universe. Parse the objects in the universe and find the objects with incorrect definition. This may be due to deletion of a key figure from BEx query. You can refresh the universe structure for updating it.

  • Parse failed: Exception DBD, The supplied XML is not valid[Measures].[SAP_OBJECT_NAME] State:N/A error for hidden KFs when migrated to HANA

    Hi All
    Please help me with the following query. We are migrating SAP BW 7.4 on Oracle to HANA. We have few WEBI report's universes built on BEx queries. In one of those reports there are some hidden RKFs, these works perfectly fine in reports based on oracle. Now we migrated to HANA in development system and when i refresh the universe structure they started giving errors like "Parse failed: Exception DBD, The supplied XML is not valid[Measures].[SAP_OBJECT_NAME] State:N/A". The object giving this error is in hidden state. I tried to unhide it and run the report then it runs fine but that not the client want as there might be so many hidden KFs in other reports also. BO version is 4.1 SP 2. We are on SAPKW74006 support package on BW side. Is there any notes to correct this error. Please pass me the relevant links. Highly appreciate your help.
    Thanks
    Dwaraka

    DCA-40012: The Web Service call failed. A connection to the target Web Service could not be created.
    First of all test the web service you have created in model project. Right click the web service name and select "Test WebService". If you see any issue(s) while testing fix it first before you run the jspx page.
    Check the port number in the URL and connections.xml, it have to be same.

  • SAP BW query to BOBJ Universe: The supplied XML is not valid.

    Help!
    The Business Objects Sever XI is giving us messages like the below, on some  but not all BOBJ Universes based on SAP BW queries.
    A database error occurred. The database error text is: The supplied XML is not valid. [various InfoObjects] [LEVEL01] (WIS 10901)
    These queries were executing 1 working day, 3 calendar days ago. No transports to SAP BW or promotions to BOBJ were made.
    Any ideas?
    Thanks,
    John Hawk
    When we refresh the Universe, we get this mesdage
    Error getting hierarchies for dimension 0INFOPROV (Cube FIGL_M10/FIGL_M10_Q001): Exception condition "HIERARCHY_NOT_FOUND" raised
    Edited by: John Hawk on Jun 1, 2010 9:15 PM

    Hi John,
    I'm also getting same error 'Error getting hierarchies for dimension 0INFOPROV (Cube ZLE_M10/YBO_FREIGHT_ZLE_M10_UNIV_MPT1): Unknown error' when tried to create universe on top of query which is based on multi provider. Could you please send me copy of program ZZ_REPAIR_HIEDIR?
    Thanks,
    Milind

  • Command Line argument is not valid please verify the switch.......???

    hello frends
    We are currently getting this error.
    Command Line argument is not valid please verify the switch.
    The code used to send the mail is
    mail ="mailto:?subject="+escape(subject)+"&body="+escape(email);
    document.location = mail;
    return ;
    this is a javascript code to open outlook mail to send emails.
    the main problem is,when we write
    mailto:?subject=abc&body=uvwxyz......
    then we should be getting abc as subj and uvwxyz as the body..,and we r getting it....
    but when we include ""(double quotes ) in either the subject or the body..,it is showing the error line mentioned above.
    and if em using the html tags in the body part..,it's giving everything including the tags,which z not desired.
    kindly help me .....

    shikha6g wrote:
    i've thought..,you people are brainy enough to help me out in the javascript too...!!so..,i relied on this forum and have posted my problem,coz solving this thing was really imp for me.
    i din't knew,dat i'll get such circastic replys here.sorryTo me, being brainy implies that you are a smart thinker and good at problem solving. It doesn't mean that you know a language that you never learned.

  • TF244074: The specified argument is not valid: enterpriseProject

    Run a command to map Project Server project with TFS Team project:
    TfsAdmin ProjectServer /MapPlanToTeamProject /collection:"http://srv-shrp05-lv:8080/tfs/DefaultCollection/" enterpriseProject:"Team Project 1" /teamProject:"Team Project 1"  /workItemTypes:"Bug,Issue,User
    Story,Task"
    and got error:
    TF244074: The specified argument is not valid: enterpriseProject.
    I gave necessary permissions to TFS and Project App Pool accounts and don't know what else should I do?

    Did you ever get this figured out I am having the same issue?

  • Not a Valid Month Issue

    Hi,
    When i execute an insert statement i get ORA-01843 not a valid month error.
    below is the SQL i try to execute in SQLPlus;
    Insert into IKD$TA_L_FACHL_SCHRITT (FACHL_SCHRITT_ID, FACHL_SCHRITT_TEXT, VALID_FROM, VALID_TO) values (1,'LOAD_STG_TMD_ZUSATZDATEN' ,'19.08.2008','31.12.9999');
    However if i execute the same in Oracle SQL developer it is working fine. Can someone please suggest what could be the reason for error in SQL PLUS ?
    I suspect this to be the NLS_DATE_FORMAT setting issue, please correct if im wrong.
    Thanks

    Hi,
    Never use a VARCHAR2 where a DATE is needed.
    Use TO_DATE (with 2 arguments) to convert a VARCHAR2 to a DATE when necessary.
    For example:
    Insert into IKD$TA_L_FACHL_SCHRITT
           ( FACHL_SCHRITT_ID, FACHL_SCHRITT_TEXT,             VALID_FROM,              VALID_TO)
    values ( 1,             'LOAD_STG_TMD_ZUSATZDATEN' , TO_DATE ( '19.08.2008'
                                                             , 'DD.MM.YYYY'), TO_DATE ( '31.12.9999'
                                                               , 'DD.MM.YYYY)
           );The problem with implicit conversions is that they don't necessarily use the format you want them to.
    Always use an explicit conversion function, and specify the format.

  • Error - ORA-01843: NOT A VALID MONTH

    I get this Error when I execute a procedure which accepts input paramters to insert into a table. I tried using TO_DATE(Input_param,'MM/DD/YY') too but it still gives me the error. Plz. Help.

    > However if I make this modification in the values clause of the insert statement
    and if I dont used "TO_DATE" function in the procedure call its giving me the above error.
    SQL> values(
    ,TO_DATE(p_date,'DD/MM/YYYY'));
    I'm not clear what modification you are making to what. If p_date is a DATE, there should not be a TO_DATE conversion applied to it inside the procedure - it's already a DATE.
    How is your case different from the following example?
    SQL> CREATE TABLE testit
      2  ( id INTEGER, dateval DATE );
    Table created.
    SQL> CREATE OR REPLACE PROCEDURE testproc
      2     ( p_id INTEGER
      3     , p_dateval DATE )
      4  AS
      5  BEGIN
      6     INSERT INTO testit (id, dateval)
      7     VALUES (p_id, p_dateval);
      8  END testproc;
      9 /
    Procedure created.
    SQL> desc testproc
    PROCEDURE testproc
    Argument Name                  Type                    In/Out Default?
    P_ID                           NUMBER(38)              IN
    P_DATEVAL                      DATE                    IN
    SQL> exec testproc(1, sysdate);
    PL/SQL procedure successfully completed.
    SQL> exec testproc(2, DATE '2006-03-24');
    PL/SQL procedure successfully completed.
    SQL> exec testproc (3, TO_DATE('23/03/2006','DD/MM/YYYY'))
    PL/SQL procedure successfully completed.
    SQL> SELECT * FROM testit;
            ID DATEVAL
             1 24-MAR-2006
             2 24-MAR-2006
             3 23-MAR-2006
    3 rows selected.If the procedure parameter is a DATE and the column is also a DATE, there should be no conversion involved. The "Not a valid month" error occurs when you try to convert a string to a DATE using either the wrong format or a nonsense string such as '2005-94-01'. You need to be clear what is a DATE and what is a string at each stage of processing.
    Notice that the default date format can be changed:
    SQL> ALTER SESSION SET nls_date_format = 'YYYY-MM-DD';
    Session altered.
    SQL> SELECT * FROM testit;
            ID DATEVAL
             1 2006-03-24
             2 2006-03-24
             3 2006-03-23
    3 rows selected.
    SQL> ALTER SESSION SET nls_date_format = 'RRRR-MM-DD HH24:MI:SS';
    Session altered.
    SQL> SELECT * FROM testit;
            ID DATEVAL
             1 2006-03-24 11:55:45
             2 2006-03-24 00:00:00
             3 2006-03-23 00:00:00
    3 rows selected.

  • Item Interface error - "The Cost of Sales Account specified is not a valid"

    A week back we migrated from 11.5.10 to 12.1.3
    Since then, many items are failing in Item Interface with the error "The Cost of Sales Account specified is not a valid account or has expired in organization ITEM MASTER INV."
    Item Master being the 'Inventory master organization'. I checked the cost of sales account & sales account. and they are Valid also their corresponding segments are valid in their respective value sets.
    Log message for 'Item Import'
    Import Items
    Argument 1 (ORG_ID) = 167
    Argument 2 (ALL_ORG) = 1
    Argument 3 (VAL_ITEM_FLAG) = 1
    Argument 4 (PRO_ITEM_FLAG) = 1
    Argument 5 (DEL_REC_FLAG) = 1
    Argument 6 (PROCESS_SET) = 77
    Argument 7 (MODE) = 2
    Argument 8 (Gather Stats) = 1
    TRANSACTION ID : 42878726
    ORGANIZATION ID : 174
    TABLE NAME : MTL_SYSTEM_ITEMS_INTERFACE
    COLUMN NAME : COST_OF_SALES_ACCOUNT
    MESSAGE NAME : INV_IOI_ERR
    ERROR MESSAGE : The Cost of Sales Account specified is not a valid account or has expired in organization ITEM MASTER INV.
    TRANSACTION ID : 42878726
    ORGANIZATION ID : 174
    TABLE NAME : MTL_SYSTEM_ITEMS_INTERFACE
    COLUMN NAME : SALES_ACCOUNT
    MESSAGE NAME : INV_IOI_ERR
    ERROR MESSAGE : The Sales Account specified is not valid or has expired for the organization ITEM MASTER INV.
    Please help.

    The Cost_of_sales_account & Sales_account as defined in the MTL_PARAMETERS are different from those in MTL_SYSTEM_ITEMS_B for the corresponding item. The values for these accounts in the interface tables are same as that in the MTL_SYSTEM_ITEMS_B table and hence not same as those defined in MTL_PARAMETERS.
    Actually we have a Custom trigger on the MTL_SYSTEM_ITEMS_B table which updates these accounts, once the item is created in the Master Organization.
    To verify this issue, I updated the accounts on the MTL_SYSTEM_ITEMS_INTERFACE table to match with that of MTL_PARAMETERS. Ran the 'Item Import', now those records are processed.
    Does this means that, the Interface is validating the cost_of_sales_account & sales_account to match with that of the 'Organization' ??.
    But we never had this issue in 11i. Is this a part of R12??

  • Source of Supply in PR not filled correctly

    Hello,
    Could somebody explain me why Source of Supply is sometimes not filled with appropriate data ?
    Here is my detailed case :
    I have maintained a quota between 2 suppliers.
    For supplier 1, I have a contract and no PIR.
    For the supplier 2, I have only a PIR.
    In the source list, I put the contract for supplier 1 and an entry for supplier 2. Both are relevant for MRP.
    I am putting some independant requirements on the material (MD61) and running the MRP.
    The PR are well splitted between the 2 sources, but in the PR associated to supplier 2, PIR is not indicated in Source of Supply and sometimes even Purchasing Organization is not found.
    In the cases Purchasing Organization is found, but not the PIR, when I am converting the PR in PO, the PIR is found at PO creation.
    I do not understand what is missing for the system to put all information directly in PR.
    Thank you for your help !
    Laetitia

    first of all. just one source in the source list can be MRP relevant.
    if you flag more than one, then the you cannot be sure which source SAP is determining, either the first or the last.
    anyhow in case or quota arrangement, SAP first checks the Quota arrangement, and later checks the source list, e.g. to determine if delivery schedules have to be created or if the source is valid at all.
    The quota arrangement has no information about purchasing org. hence  this info cannot be filled

  • RegEX for a valid mysql table name

    Hi all,
    i'm trying to figure out a regular expression for a mysql table so i can check if the string is a valid mysql table name.
    I don't know exactly the valid characters for a mysql table name.
    does any one have an Idea ?
    thnx

    You win the deal i don't know the characters :)
    Now come on. You know what DB you're using. Just google for some dox. Can't be that difficult.
    So what is the exception raised by mysql engine if
    not a valid name ?Depends on your DB and/or the JDBC implementation.
    >
    how can i catch it to prompt the user with a proper
    error message?I suppose by catching any exception risen when calling executeQuery() or the like and outputting its message.

  • Problem converting any AP to LAP - Cert not yet valid

    All, I have a problem trying to convert APs to LAP.
    I have the following scenario:
    - 2 WLC 5508.
    - For the WLC the image is 7.0.220.0
    - 10 APs registered. 7 Cisco 1310 and 3 Cisco 1242.
    - Time on the WLC indicates is July 4th 2013 - 19:20:00
    I have 5 more APs ( Cisco 1231G and Cisco 1310) all of them are Autonomous.
    Im using the Cisco upgrade tool, which I already use to convert the first 10 APs, and I have over and over the same problem, no matter if I use the Cisco 1231 or the Cisco 1310. Once I run the upgrade tool, in the middle of the process I had the following error on the AP:
    *Mar  1 00:15:15.088: %SYS-5-CONFIG_I: Configured from console by console
    *Mar  1 00:25:39.198: %SYS-6-CLOCKUPDATE: System clock has been updated from 00:25:39 UTC Fri Mar 1 2002 to 00:25:39 UTC Fri Mar 1 2002, configured from console by moncl on vty0 (181.142.103.159).
    *Mar  1 00:25:40.395: %LINK-5-CHANGED: Interface Dot11Radio0, changed state to administratively down
    *Mar  1 00:25:40.498: %SYS-5-CONFIG_I: Configured from console by moncl on vty0 (181.142.103.159)
    *Mar  1 00:25:41.395: %LINEPROTO-5-UPDOWN: Line protocol on Interface Dot11Radio0, changed state to down
    *Jul  2 18:11:51.000: %SYS-6-CLOCKUPDATE: System clock has been updated from 00:25:41 UTC Fri Mar 1 2002 to 18:11:51 UTC Tue Jul 2 2013, configured from console by moncl on vty0 (181.142.103.159).
    Jul  2 18:13:22.641: %SSH-5-ENABLED: SSH 1.99 has been enabled
    Jul  2 18:14:14.498: %SYS-5-CONFIG_I: Configured from console by moncl on vty0 (181.142.103.159)
    %CRYPTO_PKI: CA Cert not yet valid or is expired -
        start date: 13:41:22 UTC Jul 31 2003
        end   date: 13:41:22 UTC Apr 29 2013
    xa2arcbdepo02#
    I tried setting manually the clock and also using the clock of the WLC, but with the same result.
    I also tried to convert manually, but with the same result.
    Also Im using c1310-rcvk9w8-tar.124-21a.JA2.tar and c1200-rcvk9w8-tar.124-21a.JA2.tar
    Please, I really need your help because Im stuck with this problem!!.
    Thank you all!!

    Following the info:
    (Cisco Controller) >show time
    Time............................................. Wed Jul  4 19:48:12 2013
    Timezone delta................................... 0:0
    Timezone location................................ (GMT -3:00) Buenos Aires (Agentina)
    NTP Servers
        NTP Polling Interval.........................     86400
         Index     NTP Key Index     NTP Server      NTP Msg Auth Status
    (Cisco Controller) >
    (Cisco Controller) >
    (Cisco Controller) >show sysinfo
    Manufacturer's Name.............................. Cisco Systems Inc.
    Product Name..................................... Cisco Controller
    Product Version.................................. 7.0.220.0
    Bootloader Version............................... 1.0.1
    Field Recovery Image Version..................... 6.0.182.0
    Firmware Version................................. FPGA 1.3, Env 1.6, USB console 1.27
    Build Type....................................... DATA + WPS
    System Name...................................... WLC-EDASA_1
    System Location.................................. Montecristo
    System Contact...................................
    System ObjectID.................................. 1.3.6.1.4.1.9.1.1069
    IP Address....................................... 181.142.123.23
    Last Reset....................................... Power on reset
    System Up Time................................... 4 days 7 hrs 14 mins 1 secs
    System Timezone Location......................... (GMT -3:00) Buenos Aires (Agentina)
    Current Boot License Level....................... base
    Current Boot License Type........................ Permanent
    Next Boot License Level.......................... base
    Next Boot License Type........................... Permanent
    Configured Country............................... AR  - Argentina
    --More-- or (q)uit
    Operating Environment............................ Commercial (0 to 40 C)
    Internal Temp Alarm Limits....................... 0 to 65 C
    Internal Temperature............................. +43 C
    External Temperature............................. +27 C
    Fan Status....................................... OK
    State of 802.11b Network......................... Enabled
    State of 802.11a Network......................... Disabled
    Number of WLANs.................................. 4
    Number of Active Clients......................... 4
    Burned-in MAC Address............................ 2C:54:2D:72:CE:80
    Power Supply 1................................... Present, OK
    Power Supply 2................................... Absent
    Maximum number of APs supported.................. 50
    (Cisco Controller) >
    xa2arcbdepo02#sh ver
    Cisco IOS Software, C1310 Software (C1310-K9W7-M), Version 12.3(7)JA2, RELEASE SOFTWARE (fc1)
    Technical Support: http://www.cisco.com/techsupport
    Copyright (c) 1986-2005 by Cisco Systems, Inc.
    Compiled Fri 18-Nov-05 12:55 by ssearch
    ROM: Bootstrap program is C1310 boot loader
    BOOTLDR: C1310 Boot Loader (C1310-BOOT-M) Version 12.2(15)JA,  RELEASE SOFTWARE (fc1)
    xa2arcbdepo02 uptime is 1 hour, 27 minutes
    System returned to ROM by power-on
    System image file is "flash:/c1310-k9w7-mx.123-7.JA2/c1310-k9w7-mx.123-7.JA2"
    This product contains cryptographic features and is subject to United
    States and local country laws governing import, export, transfer and
    use. Delivery of Cisco cryptographic products does not imply
    third-party authority to import, export, distribute or use encryption.
    Importers, exporters, distributors and users are responsible for
    compliance with U.S. and local country laws. By using this product you
    agree to comply with applicable laws and regulations. If you are unable
    to comply with U.S. and local laws, return this product immediately.
    A summary of U.S. laws governing Cisco cryptographic products may be found at:
    http://www.cisco.com/wwl/export/crypto/tool/stqrg.html
    If you require further assistance please contact us by sending email to
    [email protected].
    cisco AIR-BR1310G-A-K9-R   (PowerPCElvis) processor (revision A0) with 24566K/8192K bytes of memory.
    Processor board ID FOC08420N5Z
    PowerPCElvis CPU at 262Mhz, revision number 0x0950
    Last reset from power-on
    1 FastEthernet interface
    1 802.11 Radio(s)
    32K bytes of flash-simulated non-volatile configuration memory.
    Base ethernet MAC Address: 00:12:43:85:54:12
    Part Number                          : 73-8960-03
    PCA Assembly Number                  : 800-24963-02
    PCA Revision Number                  : A0
    PCB Serial Number                    : FOC08420N5Z
    Top Assembly Part Number             : 800-25292-01
    Top Assembly Serial Number           : FTX0844U0EW
    Top Revision Number                  : A0
    Product/Model Number                 : AIR-BR1310G-A-K9-R 
    Configuration register is 0xF
    xa2arcbdepo02#sh inventory
    NAME: "BR1310", DESCR: "Cisco Aironet 1300 Series (IEEE 802.11g) Bridge"
    PID: , VID: , SN: FTX0844U0EW
    xa2arcbdepo02#sh ip int br
    Interface                  IP-Address      OK? Method Status                Protocol
    BVI1                       181.142.123.11  YES NVRAM  up                    up     
    Dot11Radio0                unassigned      YES NVRAM  up                    up     
    FastEthernet0              unassigned      YES NVRAM  up                    up     
    xa2arcbdepo02#

  • After downloading skype I get a window;skype exe. not a valid win32 application. how can I fix this?

    I have windows xp I am using peoplepc internet service with a norton security software supplied by peoplepc

    In the course of your troubleshooting to date have you worked through the following document?
    iTunes: Windows reports that "iTunesSetup.exe is not a valid Win32 application"

Maybe you are looking for