Working from a backup trying to merge the valid data onto the clipped data. From my backup I have tab delimited text in which to insert the correct data from. I wrote a simple (ha ha ha) program to quickly patch the issue. The data from the txt page to the MYSQL makes it ok but no matches are ever found. If I add some code to manually set the variables it works fine. It is like there is two different languages in play there both the same style code and the variables are the same type and I have manually confirmed the data.
Code snip it that the trouble is occurring on

:
$fp = fopen ( "tracedata.txt" , "r" );
//feof setting maxamum number of loop with the count of lines to be run
while (!feof($fp)) { $data =fgets ($fp);
$data = preg_split ( "#/\t/#" , $data);
// clean up the split
$road =trim($data[0]);
$numb =trim($data[1]);
$date =trim($data[3]);
$symbol =trim($data[2]);
$notes =trim($data[4]);
//row 35
// mysql adminastrative
$conn = mysql_connect( $mysql_host , $mysql_user , $mysql_password )or die(mysql_error());
$db = mysql_select_db( $mysql_database , $conn )or die(mysql_error());
//mysql serch for $rd , $nm,
$result = mysql_query("SELECT *
FROM `palpower`
WHERE `road` = '$road'
AND `number` = '$numb'
AND `last_date` = '$date'
LIMIT 1
");
print"$row<br>";
$row = mysql_fetch_assoc($result) or die(mysql_error());