Getting a NL before text in 'echo'
Posted: Fri Jan 02, 2009 10:20 pm
I am getting a \n before the text in the following code. Is there some PHP option that would be doing this?
<?php require_once('Connections/test_connect.php'); ?>
<?php
$v=$_GET['vendorID'];
$c=$_GET['catID'];
mysql_select_db($database_test_connect, $test_connect);
$query_rs = "SELECT * FROM lnkcategoryvendor WHERE vendorID=$v AND catID=$c";
$rs = mysql_query($query_rs, $test_connect) or die(mysql_error());
$row_rs = mysql_fetch_assoc($rs);
$totalRows_rs = mysql_num_rows($rs);
if($totalRows_rs!=0) {
echo 'hit';
}
else {
echo 'nohit';
}
?>
TIA
<?php require_once('Connections/test_connect.php'); ?>
<?php
$v=$_GET['vendorID'];
$c=$_GET['catID'];
mysql_select_db($database_test_connect, $test_connect);
$query_rs = "SELECT * FROM lnkcategoryvendor WHERE vendorID=$v AND catID=$c";
$rs = mysql_query($query_rs, $test_connect) or die(mysql_error());
$row_rs = mysql_fetch_assoc($rs);
$totalRows_rs = mysql_num_rows($rs);
if($totalRows_rs!=0) {
echo 'hit';
}
else {
echo 'nohit';
}
?>
TIA