Hi
I'm programming a language option, that displays labels in the correct language, but i have some trouble inserting the array values into the page.
I have the following:
<?
// Setting up a query with all labelids and the labeltext
if ($lang) {
$lab = mysql_query("SELECT labelid, english FROM labels");
}
else {
$lab = mysql_query("SELECT labelid, danish FROM labels");
}
?>
<?
// Here i want to insert the labeltext with labelid 9
?>
<?
// Here i want to insert the labeltext with labelid 3
?>
What function should i use to insert the labeltext?
/Peter
I'm programming a language option, that displays labels in the correct language, but i have some trouble inserting the array values into the page.
I have the following:
<?
// Setting up a query with all labelids and the labeltext
if ($lang) {
$lab = mysql_query("SELECT labelid, english FROM labels");
}
else {
$lab = mysql_query("SELECT labelid, danish FROM labels");
}
?>
<?
// Here i want to insert the labeltext with labelid 9
?>
<?
// Here i want to insert the labeltext with labelid 3
?>
What function should i use to insert the labeltext?
/Peter