PDA

View Full Version : Editing PHP Code


RockLinks
26th November 2009, 09:37
Hi guys,

I k ow the very very basics of PHP, i have recently installed a joomla component which has all it's tect in English US i have set about changing into GB. However i have worked out how to change the text that is displayed but not how to change the text within a drop down menu. The below code is all i could find in the document

<?php echo JText::_('Past Positions'); ?>:
</label>
</td>
<td >
<?php
$list_major = getSelectMajor('id_major', '', '');
echo $list_major;
?>
</td>

Now i successfully changed major to say Past Positions however on the page the drop down menu has the default set to Select major. Any ideas how i can change it?

Thanks

Craig

JElder
26th November 2009, 10:44
You need to check the function getSelectMajor('id_major', '', '')

This probably pulls the dropdown from a MySQL table. you can then change the MySQL table contents.