Jump to content

stupid query


otuatail

Recommended Posts

you can use an alias for any column name but depends where you put it. you put Count in your FROM clause so you are giving the alias to your table not your column. If you had 2 tables with the same column name your query would fail. In phpmyadmin it should actually show count(Eventid) so if you wanted to return it in php it would be

$Item['count(Eventid)']

 

All aliases for column names should be in the SELECT clause.

 

Ray

Link to comment
https://forums.phpfreaks.com/topic/109252-stupid-query/#findComment-561096
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.