Jump to content

jammesz

Members
  • Posts

    83
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

jammesz's Achievements

Member

Member (2/5)

0

Reputation

  1. if the iframe source is a server script page that can access a database then all you have to do is store the content from the forum into a table and pass the id of the entry through the url so that the iframe source can then receive the content from the database. You could do the exact same thing but instead of a database use a text file to store the content passing the file path in the url of the iframe. If the content is short and the two options are not possible then perhaps use base64_encode() to encode the content, pass it through the url, then decode it using php or javascript, or ect... Also, im pretty sure that javascript can read/write to files. If this is true then probably a better choice then the one mentioned above. Hope this helps
  2. Try this: $insert = "INSERT INTO comment (comment_name,comment_datetime,comment_text,news_id,comment_ip) VALUES ('".$name."',".now().",'".$text."','".$nid."','".$ip."')";
  3. Use this to get you started: <?php$text="PHP is proud to announce TestFest 2010. TestFest is PHP's annual campaign to increase the overall code coverage of PHP through PHPT tests. During TestFest, PHP User Groups and individuals around the world organize local events where new tests are written and new contributors are introduced to PHP's testing suite.Last year was very successful with 887 tests submitted and a code coverage increase of 2.5%. This year we hope to do better.TestFest's own SVN repository and reporting tools are back online for this year's event. New to TestFest this year are automated test environment build tools as well as screencasts showing those build tools in action.Please visit the TestFest 2010 wiki page for all the details on events being organized in your area, or find out how you can organize your own event.";$limit=200;echo substr($text,0,$limit);echo '<hr>';echo substr($text,$limit);?> of course you'll need to solve the problem of it cutting words in half but that shouldn't be too hard
  4. You could be right with it being a php thing but who knows. I have little experience with the problems that can come when using https but i do know that if you have a script like so: <?phpecho 'Test';?> and try and access it via https:// url and it doesn't work, then its a server issue.
  5. thats a better way of doing it but again you've missed out a ) character. if (in_array($q, $words) { should be: if (in_array($q, $words)) {
  6. Im guessing this is what your talking about: http://faksx.sytes.net/blogs/?page=comment&id=2 I get this error when trying to submit a comment: Incorrect integer value: '' for column 'news_id' at row 1 looking at: $insert = sprintf("INSERT INTO comment (comment_name,comment_datetime,comment_text,news_id,comment_ip) VALUES ('%s',now(),'%s','%s','$ip')",$name,$text,$nid); it looks like your inserting $text into the field news_id which only accepts int values. Where $text is my comment.
  7. There's so many possible causes for this other than php. Have you tested a php script to see if it works in https?? If you cant get any php scripts working in the https protocol than it could possibly be your server configuration or something else.
  8. Syntax error: If ($q == 'the') or ($q == ’wood’) or ($q == ’host’) Should be: if (($q == 'the') or ($q == ’wood’) or ($q == ’host’))
  9. if the forms on the same page as the iframe then you'll need javascript. otherwise you can do it via php after the forms submitted.
  10. Can you please explain further what the problem is?
  11. Another idea you could do is ditch the dropdown box and make custom dhtml dropdown where the subcategories "slide out" to the side when the user hovers over the main parent categoy
  12. Also might like to point out that there's no reason for a mysql connection in index.php as you dont use the database at all on that page. <?php $dbhost = 'localhost'; $dbuser = '*********'; $dbpass = '********'; $conn = mysql_connect($dbhost, $dbuser, $dbpass) or die ('Error connecting to mysql'); $dbname = '***********'; mysql_select_db($dbname); ?> <form name="form" action="search.php" method="get"> <input type="text" name="q" /> <input type="submit" name="Submit" value="Search" /> </form> should be this: <form name="form" action="search.php" method="get"> <input type="text" name="q" /> <input type="submit" name="Submit" value="Search" /> </form>
  13. Not sure how this is really related to php except maybe wordwrap() function to wrap the comments to a certain width. This seems more like a design problem in regards to how your html layout for the comments are and the css.
  14. maybe something like google search suggestions? where suggestions to what category your looking for pops up as you type. If you want something that a user can browse what categories there are then you'll need a separate page for it or categorize better as 3000 categories is insane. You should maybe categorize the categories so the list of main categories is shortened.
×
×
  • 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.