Jump to content

[SOLVED] Mysql select query


Thomisback

Recommended Posts

I had a MySQL query:

 

      $dbres				= mysql_query("SELECT *,UNIX_TIMESTAMP(`signup`) AS `signup` FROM `gebruikers` WHERE `login`='{$_SESSION['login']}' AND gamename='$prefix'");

 

It did not work because I put

gamename='$prefix'

at the end, it should have been like this:

 

      $dbres				= mysql_query("SELECT *,UNIX_TIMESTAMP(`signup`) AS `signup` FROM `gebruikers` WHERE gamename='$prefix' AND gamename='$prefix' AND `login`='{$_SESSION['login']}'");

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.