Computer Science Canada PHP won't mix HTML in properly |
Author: | HyperFlexed [ Thu Jul 19, 2007 10:45 pm ] | ||||
Post subject: | PHP won't mix HTML in properly | ||||
I have the following on my server as "showItem.php"
Upon execution the following source code is generated:
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. |
Author: | rdrake [ Thu Jul 19, 2007 11:30 pm ] |
Post subject: | 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? |
Author: | HyperFlexed [ Thu Jul 19, 2007 11:38 pm ] |
Post subject: | 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. |
Author: | HyperFlexed [ Thu Jul 19, 2007 11:57 pm ] |
Post subject: | 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? |
Author: | HyperFlexed [ Fri Jul 20, 2007 12:14 am ] |
Post subject: | RE:PHP won\'t mix HTML in properly |
Okay, got it. Just had to: sudo yum install php-mysql THANKS! |