Converting a group of variables to stings and then back

Hi, i have the following code

public function get_details($table){
	$string = $row['title'] . $row['weight'] . $row['durability'] . "<br>";
	parent::get_details($string, $table);

its purpose is to call another function, placing the value of $string into where i need it.

$result = mysql_query("select * from $table where uid='$this->uid' and iid='$itemid[$y]' order by iid desc");
	while($row = mysql_fetch_array($result)){
		$txt = $string; //string is specified in extended classes as it value will be unique for each 'item'
echo $txt;

however because in the first function $row[‘whatever’] does not exist i cant put it there. could i convert the string of variables into a text string then back again?

I really don’t understand the logic of your code.
Why don’t you put that $string = … line inside the while loop?