Jump to content


New Members
  • Posts

  • Joined

  • Last visited


Profile Information

  • Gender
    Not Telling

eknudtson's Achievements


Newbie (1/5)



  1. addslashes(string) htmlentities(string) htmlspecialchars(string) striptags(string) there are no closing a tag, double quotes, or single quotes in my strings. I'm also escaping the strings just in case when they come out of the mysql db. In which order should I be running these functions you list above T.Stedel?
  2. Hittman, you asked what these variables will have in them: $imageURLL $modObj->longName $data['shortname'] all of these will be strings. $imageURLL will have a url like this "http://www.mysite.com/images/products/boards/board.jpg" $modObj->longName will be a string like this "My Board" $data['shortname'] will have a string like this "my_board" does that help any?
  3. Clarisse, no I'm not using any template files. I'm just running through a loop, spittin out text. <!-- is the start of a hidden note in html, which is why this is so strange. The syntax error can't be in PHP, because like I said, it works 90 percent of the time, and only chokes on specific data. I've looked at this data, and to me there's nothing strange about it. Just plain old text. Are there any circumstances when php would spit out <!-- --> for a reason? Thanks for your help...
  4. not sure if this will help.... [code]$htmlBegin = "<div class='nbfReturnedBoards'>"; $htmlMiddle = ""; foreach($boardsArray as $data) { $modObj = new BoardModel(); $modObj->Get($data['boardmodelid']); $imageURLL = $imageDir."/".$modObj->shortName."_".$data['shortname'].".jpg"; $linkURLL = $boardLinkStart.$boardModel->shortName."/".$data['shortname']; $htmlMiddle .= "<div class='nbfBoard_".$imageSize."'>"; $htmlMiddle .= $data['shortname']; $htmlMiddle .= "<a href='".$linkURLL."'>"; $htmlMiddle .= "<img src='".$imageURLL."' alt='".$modObj->longName."_".$data['shortname']."'>"; $htmlMiddle .= "</a>"; $htmlMiddle .= "</div>"; } $htmlEnd = "</div>"; $htmlDone = $htmlBegin.$htmlMiddle.$htmlEnd; return $htmlDone;[/code] and that should output something like this: [code]<div class='nbfBoard_tinypage'>143<a href='http://www.mysite.com/en/products/boards/modelname/143'><img src='http://www.mysite.com/images/products/boards/tinypage/modelname_143.jpg' alt='Board Model Name_143'></a></div>[/code] and it does... 90 percent of the time, but on some "Board Models" ie different data... it chokes and spits out this: [code]<div class='nbfBoard_tinypage'>157<a href='http://www.mysite.com/en/products/boards/modelname/157'><!--                                                                                                    --></a></div>[/code] It outputs everything EXCEPT the img tag... weird, eh?
  5. Hey Everybody, I'm having a strange issue with my php script. I'm using a loop to put together a string, and then output that string onto the page. 90% of the time it works, but on a few of the pieces of data that are added to the string, it chokes, and instead of putting out an img tag, it outputs: <!-- --> [code]<!-- -->[/code] Very strange indeed. Anyone run into this in the past?
  • 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.