Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3397412
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T04:31:32+00:00 2026-05-18T04:31:32+00:00

The string- <object width=480 height=385><param name=movie value=http://www.youtube.com/v/ebopIWPoXI0?fs=1&amp;hl=en_US></param><param name=allowFullScreen value=true></param><param name=allowscriptaccess value=always></param><embed src=http://www.youtube.com/v/ebopIWPoXI0?fs=1&amp;hl=en_US type=application/x-shockwave-flash allowscriptaccess=always

  • 0

The string-

<object width="480" height="385"><param name="movie" value="http://www.youtube.com/v/ebopIWPoXI0?fs=1&amp;hl=en_US"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/ebopIWPoXI0?fs=1&amp;hl=en_US" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="480" height="385"></embed></object>

What gets stored in the database –

<object width=\"480\" height=\"385\"><param name=\"movie\" value=\"http://www.youtube.com/v/ebopIWPoXI0?fs=1

Already using – mysql_real_escape_string(), which doesn’t help with the &:

$_POST['desc'] = mysql_real_escape_string($_POST['desc']);
mysql_query('INSERT INTO user_showcase( title, description, user_id, date_n_time) VALUES( "'.$_POST['title'].'", "'.$_POST['desc'].'", "'.$_SESSION['uid'].'", NOW())') or die(mysql_error());
mysql_close($con);

The HTML –

<textarea id="desc_in" cols="40" rows="10"></textarea>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T04:31:33+00:00Added an answer on May 18, 2026 at 4:31 am

    mysql_real_escape_string() is the proper mechanism if you are using the legacy MySQL library. If you are getting all those additional backslashes it’s probably because your PHP environment is very old. Run <?php phpinfo(); ?> and find the directives that start with magic_:

    magic_quotes_gpc
    magic_quotes_runtime
    magic_quotes_sybase
    

    Ideally, they should all be disabled. If you run PHP as Apache module, you can change it in an .htaccess file:

    php_flag magic_quotes_gpc Off
    php_flag magic_quotes_runtime Off
    php_flag magic_quotes_sybase Off
    

    If you run PHP as CGI, you’ll probably have a custom php.ini file somewhere in your account.

    As already mentioned, & is not a special char for MySQL.

    Answer to updated question

    The standard string delimiter in SQL is the single quote, not the double quote:

    SELECT 'I am a string';
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

{images:[{id:obj_0,src:background.jpg,width:640,height:480},{id:obj_9,src:elements/pipe.png,width:50,height:44,top:196,left:154,rotation:0},{id:obj_13,src:elements/cigarette.png,width:45,height:67,top:168,left:278,rotation:0},{id:obj_10,src:elements/hat.png,width:227,height:122,top:28,left:241,rotation:0},{id:obj_14,src:elements/hair.png,width:244,height:204,top:-17,left:98,rotation:0}]} please help me how to get and/or evaluate object from this json string
I'm trying to set the width of a Textfield() object based on it's string
My co-worker is filling a System::String object with double-byte characters from an unmanaged library
Whenever I have a Json string object with a space in it I get
I know how to decode a JSON string with one object with your help
I have an object with a string[] property. When I assign this as the
I am trying to fill object[] with List<string> but I cannot figure out how
I have a ComboBox with a label function like this one: private function fieldLabelFunction(item:Object):String
I have persistent object, with a string property that often is over 500 charachters.
When I send an object to NSLog, I get a string with three attributes.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.