|
||||||
| PHP Forum Use this forum to discuss all aspects of PHP Development. PHP is a server-side, cross-platform, HTML embedded scripting language that lets you create dynamic web pages. |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
| Sponsored Links |
|
|
|
|||||
|
Instead of mysql_query($query); try:
PHP Code:
and see if MySQL throws an error.
__________________
CodeCall Blog | CodeCall Wiki | Shareware Site | Linux Forum | Write a Blog The CodeCall Wiki is now fully integrated with vBulletin users! Check it out and add some new pages! Last edited by Jordan; 05-01-2008 at 06:46 PM. |
|
|||||
|
awesome.. I see the error. its adding the HTML and throwing an error (I believe)
Quote:
how do I add HTML into an SQL field? EDIT: after Profile=' there is a ton of HTML, just wont show on codecall Last edited by phpforfun; 05-01-2008 at 07:56 PM. Reason: edit |
|
|||||
|
Use the htmlentities() function on the string:
IE: PHP Code:
__________________
CodeCall Blog | CodeCall Wiki | Shareware Site | Linux Forum | Write a Blog The CodeCall Wiki is now fully integrated with vBulletin users! Check it out and add some new pages! |
|
|||||
|
Turn magic quotes off [they wont exist in php 6], and prior to inserting strings into the database, run them through mysql_real_escape_string(). Don't bother with htmlentities, adding or stripping slashes before inserting html into a database. Worry about them when you display the html.
__________________
CodeCall Blog | CodeCall Wiki | Shareware | Linux Forum | My Blog Chat with other CodeCall members on IRC; connect to irc.codecall.net and join #codecall |
|
|||||
|
Hum.. I tried that too john, doesnt work..
feel free to log in and test it. Analyze That Host click login use "Justin" and "pass" after you login, hover over "member actions" (where login was), and click edit host profile and then just edit whatever here is the code PHP Code:
EDIT: The sql type is set as "text", is that ok? Last edited by phpforfun; 05-02-2008 at 04:16 PM. Reason: sql stuff |
|
|||||
|
I was hoping John would reply to this thread. When you run John's suggestion, do you get the same MySQL error?
__________________
CodeCall Blog | CodeCall Wiki | Shareware Site | Linux Forum | Write a Blog The CodeCall Wiki is now fully integrated with vBulletin users! Check it out and add some new pages! |
|
|||||
|
I will have a look at this more closely in a few hours. PM me where this file is located on your account, so I can have a closer look.
![]()
__________________
CodeCall Blog | CodeCall Wiki | Shareware | Linux Forum | My Blog Chat with other CodeCall members on IRC; connect to irc.codecall.net and join #codecall |
| Sponsored Links |
|
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|