Jump to content

[SOLVED] MySQL AS


The Little Guy

Recommended Posts

how do you AS, in mysql?

 

The below doesn't work, I want to rename the returned column to "linkto" how do I do it since this doesn't work

SELECT * FROM friends_image_comments,users,friends_images WHERE 
friends_image_comments.posterID = users.id as `linkto`
AND
users.id = friends_images.ownerID
AND
friends_images.`default` = '1'
AND
friends_image_comments.ownerID = '{$_SESSION['id']}'
AND
friends_image_comments.view = '0'

Link to comment
https://forums.phpfreaks.com/topic/58133-solved-mysql-as/
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.