Jump to content

Joined Queries?


3raser

Recommended Posts

I tried this:

 

	$query_extract = mysql_query("SELECT s.downloads,s.date,s.title,s.username,s.views,s.id,u.status,u.username FROM skins s, users u WHERE s.username = u.username ORDER BY s.id DESC LIMIT 100");

	while($row = mysql_fetch_assoc($query_extract))
	{
		if($row['u.status'] == 1) $row['s.username'] = "dgjldfgjdflg";
		echo "<tr><td><img src='skins/". $row['id'] .".png'></td><td><a href='view.php?id=". $row['id'] ."'>". $row['title'] ."</a></td><td>". $row['username'] ."</td><td>". $row['date'] ."</td><td>". $row['downloads'] ."</td><td>". $row['views'] ."</td></tr>";
	}

 

Yet, the user's name doesn't change. :/

Link to comment
https://forums.phpfreaks.com/topic/232591-joined-queries/#findComment-1196358
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.