|
|
|
|
|
|
![]() |
#1 |
"Without evil there can be no good, so it must be good to be evil sometimes" ~ Satan
Join Date: Aug 2004
Location: Motor City, baby, where carjacking was invented! Now GIMME THOSE SHOES!
Posts: 2,385
|
Need PHP Help - Losing My Mind
So I'm trying to get a little script running, and I'm beating my head against a wall. I should mention at this point that I'm a PHP newbie.
PHP 4.3 MySQL 4.0.13 This is a page of the script on which you can edit a string of HTML stored in a MySQL database, then when you hit "update" the DB field is updated and the page refreshes to display the new info. The problem is, it's not displaying the info in the DB accurately, and the problem cascades when you repeatedly hit "update." For a piece of test code I'm using one of my category recip tables. The code is stored in the DB accurately, but when it displays on the page it's missing the first line of code and there's an extra "> at the end that isn't in the database. When you hit "update" and the page refreshes, THAT's when the first line of code and ending "> appear in the DB, and then I lose one more line of code at the top and get one more "> at the end of the code. When I "view source" on the page when first going to it (when the code is fresh from the DB) the first line of code is actually in the page source but not displayed on the page, and the extra "> is also in the source. I'm sure this is something stupid that should be staring me in the face. Please help, losing my fuckin' mind here. Code is below. PHP Code:
|
![]() |
![]() |
Thread Tools | Search this Thread |
Display Modes | Rate This Thread |
|
|