Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in

Results 1 to 5 of 5
  1. #1
    Novice YvesRoRo is offline
    MemberRank
    Jan 2014 Join Date
    3Posts

    ! Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in

    Title says ti all really im getting this error after i create my character i click register to go to the /me page and i get that error http://prntscr.com/2oal9p
    I'm using HRP CMS with ObboRP DB
    I've tried putting 'field list' in my DB with 'ipaddress_reg' in it but still nothing, could someone help me?


  2. #2
    Check http://arcturus.pw The General is offline
    DeveloperRank
    Aug 2011 Join Date
    7,610Posts

    Re: Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in

    What it basically says is that it is trying to insert a value in the field 'ipaddress_reg' but it cannot find that field in your table.

    Are you trying to make a RP or just some Phoenix / Butterfly hotel? If so then find the query where it inserts into your table and replace 'ipaddress_reg' with 'ip_reg'

    If you want to create a RP you could try running this query:

    Code:
    ALTER TABLE users ADD ipaddress_reg varchar(15);

  3. #3
    Novice YvesRoRo is offline
    MemberRank
    Jan 2014 Join Date
    3Posts

    Re: Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in

    Quote Originally Posted by HillBilly View Post
    What it basically says is that it is trying to insert a value in the field 'ipaddress_reg' but it cannot find that field in your table.

    Are you trying to make a RP or just some Phoenix / Butterfly hotel? If so then find the query where it inserts into your table and replace 'ipaddress_reg' with 'ip_reg'

    If you want to create a RP you could try running this query:

    Code:
    ALTER TABLE users ADD ipaddress_reg varchar(15);
    Trying to make a v26 RP

  4. #4
    Check http://arcturus.pw The General is offline
    DeveloperRank
    Aug 2011 Join Date
    7,610Posts

    Re: Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in

    Well I wish you good luck as it doenst look like you will be able to do that.

    These errors are pretty common and if you don't know how to sort out the simple errors I dont think you'll succeed.

    But I'd like to get proven wrong

  5. #5
    Novice YvesRoRo is offline
    MemberRank
    Jan 2014 Join Date
    3Posts

    Re: Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in

    Me too :o I got past 2 more error of the same but i'm not getting these errors http://prntscr.com/2oilrn
    I have added
    ALTER TABLE users ADD ipaddress_reg varchar(15)ALTER TABLE users ADD last_online varchar(15)
    ALTER TABLE users ADD vip varchar(15)
    To my query but now really stuck in the mud



Advertisement