Good day people,
i have a question that's been annoying me for a while now.. and i could not find an answer to it.
here it goes... let's say i have a table [language] in my database [lang]
it has four columns [languageid][phraseid][title][text]
so for example.. the values would be like so
// ##### languageid ###### phraseid ######## title ######### text
// ##### ____1____ ####### ___1___ ####### username ####### Username
// ##### ____1____ ####### ___2___ ####### password ####### Password
NOTE: phraseid is "auto_increment" and obviously a "Primary".
you've probably guessed what i want to do with it... for those who didn't,,, i want to use the [text] field in the [language] table to print phrases in an HTML page to use them as phrases...
for example:
<table>
<tr>
<td>$language[username]</td>
<td><input type="text" name="name"></td>
<td>$language[password]</td>
<td><input type="password" name="pass"></td>
</tr>
</table>
that should come out like...
____________________
Username |____________________|
_____________________
Password |____________________|
what code should i use,, how to call a certain field in a certain table..
i was thinking like $language[text][1] with mysql_fetch_rows or something like that.. i could not find a way...
so.... please help :rolleyes:
i would really appreciate it.