User Profile

Collapse

Profile Sidebar

Collapse
JonnyB
JonnyB
Last Activity: Apr 18 '07, 06:46 PM
Joined: Dec 19 '06
Location: Newcastle, England
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • JonnyB
    replied to Starting to use SQL
    in PHP
    Hey Mad Midget,

    This ones good for sql. If you understand sql its really easy to insert it into php.

    http://www.w3schools.com/sql/default.asp

    Jonny...
    See more | Go to post

    Leave a comment:


  • JonnyB
    replied to Help with my login script
    in PHP
    I manged to sort this problem. Turns out there's nothing wrong with the code I'd forgot to input the student details in to the student table of the database so the user existed but wasnt finding the match.

    My bad!
    See more | Go to post

    Leave a comment:


  • JonnyB
    replied to Help with my login script
    in PHP
    Cheers Quill,

    Thats not quite what i was after the way i'm doin it is to have a user table, student table, teacher table and employer table the later three with forgien keys to user table and working their user type out through that.

    I dont think there's anything wrong with the method just the code thats not quite working right.

    There's something wrong with the student check sql section and i'm not to...
    See more | Go to post

    Leave a comment:


  • JonnyB
    started a topic Help with my login script
    in PHP

    Help with my login script

    Hi all,

    I've got three types of users. When they log in i want them to go to a different page dependent on the type of user.

    Its nearly workin but does anyone have any idea why the teacher check is workin but the student check isn't?

    Also would using sessions be a better solution than using the include( ' ' ).

    Code:
    <?php
    $host="localhost"; // Host name 
    $username="student1";
    ...
    See more | Go to post

  • JonnyB
    started a topic Validating a txt box / Catching an error msg

    Validating a txt box / Catching an error msg

    Hi all,

    I have a txt box that users enter a number in to create a booking. When a user doesn't enter a value access brings up an error message because the value cant be null which is fine but looks rubish and has the debug button on it etc. Is there a way of catching the error to display my own msg box.

    I've tried an if statement but the access error msg pops up before it can run.

    Does anyone have any...
    See more | Go to post

  • JonnyB
    replied to Can DLookup be used on a listbox?
    Thanks guys I haven't had chance to give your suggestions a go yet but sounds like you've pointed me in the right direction, seen as I was way off.
    See more | Go to post

    Leave a comment:


  • Yeah thanks, I was only querying the one table so got away with using DCount.
    See more | Go to post

    Leave a comment:


  • JonnyB
    started a topic Can DLookup be used on a listbox?

    Can DLookup be used on a listbox?

    Hi,

    I'm trying to get a value from the row of a listbox that is selected by the user.

    Is it possible to use the DLookup on a list box something like this

    DLookup("[jobID]", "lstEngJobList" , "lstEngJobL ist = selected")

    or is there another function I should be looking at using.
    See more | Go to post

  • JonnyB
    replied to Writing records to a table
    Cheers for your help,

    I got it working perfectly thanks to you.

    Here's the solution just incase it'll help any other newbies like me

    Code:
    Dim username As String
    Dim jID As String
    Dim Tvalue As String
    Dim LDate As String
    Dim jobActive As String
    
    username = Nz(Forms!frmLogin!txtMembername, "")
    jID = "job1"
    Tvalue = Time
    LDate =
    ...
    See more | Go to post

    Leave a comment:


  • JonnyB
    replied to Writing records to a table
    Hi willakawill,

    It is a direct paste of my script and I had missed the active variable from it, I pasted in what you posted which is still bringing up popups to ask for the parameters. Its a job booking sytem and I want the user to be able to just click book and it fill the record in automatically with userID, jobID, startTime, startDate and set jobStatus to active.

    I've uploaded it to here so you can take a look ht...
    See more | Go to post

    Leave a comment:


  • JonnyB
    started a topic Writing records to a table

    Writing records to a table

    Hi all,

    I've got some code to write a record to a table but its got me confused, it works fine but instead of taking the values from the system its giving me popups to fill in the values manually. It should be taking userName, date and time from the system.

    Any ideas what I've done wrong,

    Here's the code?

    Code:
    Private Sub btnEngBook_Click()
    
    Dim username As String
    Dim jID
    ...
    See more | Go to post

  • Worked perfectly, thankyou for all your help with this.
    See more | Go to post

    Leave a comment:


  • Cheers GRDev,

    Thats stopped the errors but its not quite working.

    The error message seems to appear even if I have less than 15 records in the booking table.

    I'm sure its nearly there, I think its the line in bold i've tried the other methods for this line above but they don't seem to fix it either. Any ideas, my codes:-

    Private Sub btnEngCreateBoo king_Click()


    Dim...
    See more | Go to post

    Leave a comment:


  • Hi hariharanmca,

    No to sure what you were meaning by that i'm guessing you ment us my sql statement not the one done by pks00.

    I tried that but i'm still having problems.

    I've uploaded the access file if that would help http://www.celestepoke r.com/Temp/jr_system.mdb

    username = u1
    password = 00

    Then click create booking.

    Thanks.
    See more | Go to post

    Leave a comment:


  • Thanks pks00.

    I tried the recordset option but got a compile error fo this line

    set rs=currentdb.op enrecordset (strSQL)

    saying "Too few parameters. Expected three"

    Any ideas
    See more | Go to post

    Leave a comment:


  • JonnyB
    started a topic Counting records to diplay an error message.

    Counting records to diplay an error message.

    Hi all,

    There are three tables in my database user, job and booking. It’s a job booking system so users login and make a booking against a job. I’m trying to get a button to display an error message if they try to make a booking but already have made 15 or more.

    Below is the code I’ve got so far can anyone help me to get it working or point me in the right direction.

    Code:
    Private Sub btnEngCreateBooking_Click()
    ...
    See more | Go to post
No activity results to display
Show More
Working...