Jump to content

query takes long time to retrive data!


samoi

Recommended Posts

Hello guys!

I have two tables I want to get data from!

One named: users, others named villages!

 

$SQL = mysql_query("SELECT u.uid as userID, u.name as username, u.email as email, u.online as online, u.pass as pass, v.vid as villid, v.owner as owner, v.x as x, v.y as y, v.resource as resource 
FROM villages as v, users as u 
WHERE (owner=userID) AND (username='".$username."') AND pass='".$password."' ");

 

It takes long time to be executed and return data!

 

Is there any faster way to get around this?

 

Thank you

Link to comment
https://forums.phpfreaks.com/topic/179450-query-takes-long-time-to-retrive-data/
Share on other sites

  • 3 weeks later...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.