Jump to content

SQL Help


gokalpfirat

Recommended Posts

database = mysql_connect( "localhost", "root", "ankara", "test1" ) -- connectDB 
if database then 
    outputDebugString ('Connect') 
else 
    outputDebugString ("Trouble") 
end 
result = mysql_query(database, "SELECT first_name, age, gender, @curRank := @curRank + 1 AS rank FROM person p, (SELECT @curRank := 0) r ORDER BY  age; ") -- Execute the query 
  
if result then 
    outputDebugString ('True') 
else 
    outputDebugString ("False") 
end 

It always says True at debugscipt but when I look at mysql table it wont happens. (Note: When I execute this at phpmyadmin it works. But when i execute it at mta it wont.)

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...