Welcome Guest, Not a member yet? Register   Sign In
[SORTED] DB results with unknown field names
#3

[eluser]xwero[/eluser]
Or you could use an alias
Code:
$sql = "SELECT title_".$lang." title, text_".$lang." text FROM table ; ";
This way it doesn't matter which language is used and you don't have to use numbers for the fields.


Messages In This Thread
[SORTED] DB results with unknown field names - by El Forum - 09-24-2008, 03:05 AM
[SORTED] DB results with unknown field names - by El Forum - 09-24-2008, 03:14 AM
[SORTED] DB results with unknown field names - by El Forum - 09-24-2008, 03:16 AM
[SORTED] DB results with unknown field names - by El Forum - 09-24-2008, 05:14 AM



Theme © iAndrew 2016 - Forum software by © MyBB