Jump to content

dedart

Members
  • Posts

    10
  • Joined

  • Last visited

    Never

Contact Methods

  • MSN
    dedderek@gmail.com
  • Website URL
    http://dedart.lan.org.au

Profile Information

  • Gender
    Not Telling
  • Location
    Newcastle Australia

dedart's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. I'm so stupid:) I forgot to add slashes to one of the variables! Thanks shocker-z!
  2. The post method also should require a <form tag! <form name="form1" method="post" action="submitform.php"> select stuff </form>
  3. I have a table that I am trying to update using the following query and are getting a syntax error with the following code: [code]mysql_query("UPDATE posts_members SET post='$replaced', previousposts='$postprevious',edited='$edited' WHERE id='$postid'") or die(mysql_error());[/code] Here is the error: [!--quoteo--][div class=\'quotetop\']QUOTE[/div][div class=\'quotemain\'][!--quotec--]You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 've shot everything in sight, captured control points in amazingly blisteringly f' at line 1[/quote] I believe the error is occuring because of a ' but cannot see why because slashes have been added before the ' symbols! Thanks a $million dedart
  4. I've seen examples using JavaScript and AJAX that will show you a list of options as you type to autocomplete but i can't remember where I saw it now or how it worked!
  5. [a href=\"http://au2.php.net/strlen\" target=\"_blank\"]http://au2.php.net/strlen[/a] Count the number of characters in a string! Google is good too when u wanna find these things: [a href=\"http://www.google.com/search?q=php+count+characters&start=0&ie=utf-8&oe=utf-8&client=firefox-a&rls=org.mozilla:en-US:official\" target=\"_blank\"]http://www.google.com/search?q=php+count+c...:en-US:official[/a]
  6. Hi, I have a script where I am converting html back to BBCODE for editing and I am having trouble with certain parts of the script [code]$patterns = array ( "|\<b\>(.*?)\</b\>|s",                     "|\<i\>(.*?)\</i\>|s",                     "|\<u\>(.*?)\</u\>|s",                     "|\<strike\>(.*?)\</strike\>|s",                     "|\<div style=\"font-size: 14px; color=:#E1B500;\"\>\<b\>QUOTE:\</b\>\</font\>\<div style=\"border: 1px; border-style: solid; background-color: #FFF0B3;\"\>(.*?)\</div\>\</div\>|s"); $replacements = array ( "[ B]\$1[ /B]",                         "[ I]\$1[ /I]",                         "[ U]\$1[ /U]",                         "[ STRIKE]\$1[ /STRIKE]",                         "[ QUOTE]\$1[ /QUOTE]");[/code] If I have a html string like: <div style="font-size: 14px; color=:#E1B500;"><b>QUOTE:</b></font><div style="border: 1px; border-style: solid; background-color: #FFF0B3;">SOME TEXT</div></div> The page will output: [ B]QUOTE:[ /B] SOME TEXT I have tried re-arranging the arrays and even adding the bbcode bolds to the html string but nothing seems to be working CAN SOMEONE PLEASE HELP ME, IT'S DRIVING ME CRAZY dedart
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.