| 
	
 | 
 Posted by c.wrinn@gmail.com on 05/18/06 00:49 
First, here is my current script: 
 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
 
<html> 
<head> 
 
</head> 
<body> 
 
<? 
	$mysql = mysql_connect("localhost","cwrinn","cw5324") or die('Unable 
to Authenticate to ODBC'.mysql_error()); 
	mysql_select_db(snapon_dev, $mysql) or die('Error Selecting 
Database'.mysql_error()); 
	$result = mysql_query("select * from branch limit 0,30", $mysql) or 
die('Error querying database'.mysql_error()); 
 
	while ($row = mysql_fetch_row($result)) 
	{ 
		 for ($i=0; $i<mysql_num_fields($result); $i++) 
		 	echo $row[$i] . " "; 
 
		echo "\n"; 
	} 
	mysql_close($connection); 
?> 
</body> 
</html> 
 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
 
What's happenning? Nothing, no error, no display, nothing. 
 
I know PHP, MySQL and Apache are communicating, because I installed 
phpMyAdmin to the server and it works from any workstation on the 
network.
 
  
Navigation:
[Reply to this message] 
 |