Jump to content

why is this not working?


desjardins2010

Recommended Posts

I'm getting error unknowing colum 'solidsoul' in Where clause

why is it refering $player = solidsoul to a colum instead of searching the colum username for solidsoul?

 

        <?php

	//start progress bar check to see if the systemkey on server is greater than the passwordcracker or equal if it is let it go if not stop it

	$db = mysql_connect ("localhost","removed","removed") or die ("Could Not Connect To Database");

	$select = mysql_select_db ('heaven_users') or die ("Could Not Select Database");

	$query = mysql_query ("SELECT systemkey FROM members WHERE IPaddress=$ip") or die (mysql_error());
	$query2 = mysql_query ("SELECT * FROM members WHERE username=$player") or die (mysql_error());

while ( ($row1 = mysql_fetch_assoc($query)) && ($row2 = mysql_fetch_assoc($query2)) ) {

	$systemkey = $row['systemkey'];
	$passwordcracker = $row2['passwordcracker'];


	}

echo $systemkey;
echo $passwordcracker;
	?>

Link to comment
https://forums.phpfreaks.com/topic/222388-why-is-this-not-working/
Share on other sites

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.