Jump to content

Print Script Errow Please Help Me


JustinPhP

Recommended Posts

echo <br>"; //put a break after each database entry

}

 

error

 

Parse error: syntax error, unexpected '<', expecting ',' or ';' in /home/content/87/7333587/html/DepartmentC.php on line 24

 

SELECT `Orderdate`,`Orderid`,`Order_Comments`,`salesrep_customerid`,`productcode`,`productname`,`quantity`,`warehouselocation` FROM `Orders` WHERE `warehouselocation`=\'%j%\'

 

how do i make this print the results

Select

 

Full Code

 

 

Yes i kno connection details are missing but they work lol

 


mysql_select_db($dbname, $chandle) or die ($dbname . " Database not found. " . $dbuser);

$mainsection="Orders"; //The name of the table where web links are stored

$query1='SELECT * FROM `Orders` WHERE `warehouselocation`Like \'%j%\''
        . ' ORDER BY `Orderdate`';
$result = mysql_db_query($dbname, $query1) or die("Failed Query of " . $query1);  //do the query
while($thisrow=mysql_fetch_row($result))
{
  $i=0;
  while ($i < mysql_num_fields($result))
  {
    $field_name=mysql_fetch_field($result, $i);
    echo $thisrow[$i] . " ";  //Display all the fields on one line
    $i++;
  }
echo </br>"; //put a break after each database entry
}

Link to comment
https://forums.phpfreaks.com/topic/225524-print-script-errow-please-help-me/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.