Hi,
First, Thanks for the reply. The main thing here is I am writing a custom script for the thrid part software so it does not allow me to see the code of the program.
Some more info of what and how I am trying this :
Once I log in to this software I have place called Define Custom Scripts so here is where I am allowed to write my scripts.
This window will have four tabs as : Intialization, Headers, Process, Finish.
I wrote the following two lines to see how this cusotm scripts works under the "Process" tab.
Process tab starts already have these lines in bold
function process_row($rows)
{
//Place where we have to write our code :
foreach($rows[0][3] as $key => $value)
{
$rows[0][3] -> val = "Samplelines";
}
//Our code should end here
return ($rows)
}
So the output I got is
StudentId Firstname Lastname Class
101 || abc || def || Samplelines
102 || efg || hjk || Samplelines
103 || lmn || rst || Samplelines
|| - just used here to seperate the coloumns..its not there in the records.
I obtained this with these two lines of code without database query ...so what I actually need is how to check each lines and replace accorindly (First year at school with "Freshman" , second year at shcool with "Sophomore" and so on.
Hope I am clear in explaining this. Please let me know if I can be more clear.
Thanks in advance