Jump to content

Mysql login


DLmass

Recommended Posts

Hmm, you are using 2 different mysql types here. You are using the db* functions ( dbQuery, dbConnect, dbPoll) and the mysql_* functions ( mysql_query ). Since these are 2 different things, they wont work together. I'd say you can better choose one of them. I'd prefer mysql cause it has more options with error reporting, layout for queries etc. But it is less poof proof. If you know what I mean.

The db* functions already uses the mysql_escape_string ( it's another function that escapes all the characters out of it ). but if you can secure your system in a right way, there is no need to worry.

The error you are getting is because the 'connection' variable is a dbConnect. and not a mysql_connect. ( mysql_query need a mysql_connect )

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...