
-----------------------------------
HyperFlexed
Thu Jul 19, 2007 10:45 pm

PHP won't mix HTML in properly
-----------------------------------
I have the following on my server as "showItem.php"



	
		Item Display Utility
	
	
		
			
				Item_ID
				Name
				Description
				Parent
				Primary Key
				Unique Key
			
			
		
	



Upon execution the following source code is generated:



	
		Item Display Utility
	
	
		
			
				Item_ID
				Name
				Description
				Parent
				Primary Key
				Unique Key
			



It seems as though it hits the php block and just stops. I am willing to accept that this could be an error on the part of PHP itself. If anyone needs some info from the php.info() that might help, just let me know.

This is extremely frustrating.

-----------------------------------
rdrake
Thu Jul 19, 2007 11:30 pm

RE:PHP won\'t mix HTML in properly
-----------------------------------
Complete stab in the dark here, but does that database exist and does the user have permission to access it?  Also, are errors turned on for PHP?

-----------------------------------
HyperFlexed
Thu Jul 19, 2007 11:38 pm

RE:PHP won\'t mix HTML in properly
-----------------------------------
Interesting, errors are turned off. DO I change this by editing the php.ini file? The database does exist. I can log in to it using SSH.

-----------------------------------
HyperFlexed
Thu Jul 19, 2007 11:57 pm

Re: PHP won't mix HTML in properly
-----------------------------------
display_errors = On, now.

FATAL ERROR: Call to undefined function : mysql_connect in ... on line 16

I installed PHP with the yum package manager. How would I go about recompiling/reconfiguring with mysql support?

-----------------------------------
HyperFlexed
Fri Jul 20, 2007 12:14 am

RE:PHP won\'t mix HTML in properly
-----------------------------------
Okay, got it.

Just had to:
sudo yum install php-mysql

THANKS!
