User Profile

Collapse

Profile Sidebar

Collapse
Angahran
Angahran
Joined: Dec 17 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Angahran
    started a topic Help! I disabled admin access on my admin account :(
    in PHP

    Help! I disabled admin access on my admin account :(

    I'm hoping someone can help me.
    I was trying to backup our eqdkp database and managed to remove all the admin access from the admin account :(

    I cannot use phpmyadmin or mysql to directly access the database to fix it.

    From what I can see the code below should do what I want but it just gives me an error: Parse error: parse error, unexpected T_IF in /home/httpd/dynamic/phantomraiders/eqdkp/admin/tmp.php on line...
    See more | Go to post
    Last edited by Atli; Oct 25 '08, 03:48 PM. Reason: Added [code] tags.

  • Angahran
    replied to Bit manipulation question.
    Thanks for all the help.

    Slowly beating this form into shape, but seems like there's a new problem hiding behind every line of code.

    Apparently, I have hit some maximum number of fields limit on my form when I tried linking the lookup tables I had created.

    So, I thought I'd try working without the lookup tables and check the bits as part of the main query.

    Here's a dummy part showing what...
    See more | Go to post

    Leave a comment:


  • Angahran
    replied to Bit manipulation question.
    Thanks :)
    Was getting overflow on anything above 32767 so changed to Double.

    Public Function DblCheckBit(ByV al dblInput As Double, _
    ByVal dblBitNumber As Double) As Boolean
    DblCheckBit = dblInput And 2 ^ dblBitNumber
    End Function

    Now going to dummy up a form with 'Classes' and 16 True/Falses and see how that looks.

    Thanks again.
    See more | Go to post

    Leave a comment:


  • Angahran
    replied to Bit manipulation question.
    Here's the dummy code I've been trying out.

    classes is the field in the table and bit1 is my output field.
    Eventually I'd like to be able to check all 16 bits, but getting 1 to work would be a good start :P

    Private Sub Command6_Click( )
    On Error GoTo Err_Command6_Cl ick

    bit1.Value = classes.Value & 1

    Exit_Command6_C lick:
    Exit Sub

    Err_Command6_Cl ick:...
    See more | Go to post

    Leave a comment:


  • Angahran
    started a topic Bit manipulation question.

    Bit manipulation question.

    Hi,
    I've been trying to do something that seems like ist should be simple but I'm not having any luck.

    I have an integer field with values from 0 to 65535 which is 16 flags.
    What I want to do is test for each of these flags individually and display if they are true or false.

    However, when I try ANDing the field with 1, 2, 4, etc to get the bits, it always returns -1 (unless the field is 0 then it returns...
    See more | Go to post
No activity results to display
Show More
Working...