Jump to content


  • Posts

  • Joined

  • Last visited


Everything posted by Oldiesmann

  1. I don't have much experience with searching and such, so I'm not sure if there's a better way to do that, but there's a minor typo in the query... It should be hddcap LIKE '%$hddcap%' (or hddcap>'$hddcap' if the variable is 0 - otherwise you'll get anything where hddcap has a 0 in it). I'm assuming you meant to put preg_replace after the = in those two "get variables" lines...
  2. Where is $id2 being set? Also, the first query in the second block of code is invalid - you can't use WHERE in an INSERT query (you're inserting a new row, so there's not going to be anything in that column yet).
  3. Either change $r2 to $result or change mysql_fetch_array($result) to mysql_fetch_array($r2).
  4. SMF's integration hooks make it easy to integrate other software with the forum http://www.simplemachines.org/community/index.php?topic=173483.0
  5. Double-check php.ini - it shouldn't be putting "N;" at the beginning of the path like it's showing in the error message.
  6. You need to put $row_result4 = mysql_fetch_assoc($result4); inside the do ... while loop. Otherwise you're just pulling the first row from the query.
  7. After some googling, it appears that this error is due to a problem with the session.save_path directive in php.ini. Make sure that it's set to a valid directory and that the IIS guest user (IUSR_yourcomputername) has permission to write to that directory.
  8. http://www.phpmyadmin.net/documentation/#authentication_modes
  9. Try PHP Designer 2007 Personal Edition - http://www.mpsoftware.org (Click on "Downloads"). It's free, although it's released under its own license agreement, not under the GPL (see http://www.mpsoftware.org/eula_personal.php)
  10. echo "<meta http-equiv=\"Refresh\" content=\"0;url=nf.php?" . $_GET['groupid'] . "\">";
  11. Try removing bgcolor="#ffffff" from the table tag and see if that makes any difference. Also, try changing the color values for row_style_1 and/or row_style_2 to see if that changes the output - it may at least help us see if it's actually changing the background color.
  12. $q="SELECT * FROM dd_rating WHERE ItemID = ".$ItemID ." AND username = '".$_SESSION[username]."'"; $r2 = mysql_query($q); if (!mysql_num_rows($r2)) { echo '<b><center>You have not yet rated this joke </center></b><br />'; } else { $row = mysql_fetch_array($r2)) echo '<b><center>You have given this joke a rating of ' . $rate = $row['Rating'] .' </center></b><br />'; } ?> Two typos: One too many "r"s in "mysql_fetch_array" Missing a ' before ] in the last echo line.
  13. Try this: <style type='text/css'> .row_style_1, .row_style_1 td { background-color: #eaeaea; } .row_style_2, .row_style_2 td { background-color: #ffffff; } </style> Otherwise it's just applying the style to the row itself, and not to the individual table cells.
  14. This is kind of confusing... You have one article in two separate sub-categories, but you only want to pull each article once, regardless of how many sub-categories it's in?
  15. I'm using PHP Designer 2007 Professional. I've been using PHP Designer for a couple of years and love it. Tons of features and extremely flexible.
  16. $Cid will only work if you've got register_globals enabled in PHP. Otherwise you will need to add something like this to your details page: [code]$Cid = (int) $_GET['Cid'];[/code]
  17. Replace the \n with [nobbc]<br />[/nobbc] and it should work.
  18. Seems there's already a mod to do this. Not sure why it isn't a default feature, but the mod is at http://mods.simplemachines.org/index.php?mod=364
  19. That first site is by far the worst, although a few of those sites have so much content on the main page that it's amazing anyone can find what they're looking for... I love the message I get when I go to the harrold.org site with Firefox: [quote]Your browser has not been checked for parasites, because it isn’t Internet Explorer 5.5 (or later) for Windows. For technical reasons, the automatic-detection feature on this web page requires IE’s ‘ActiveX’ feature. (Other browsers and operating systems are not as vulnerable to parasites.)[/quote] They come right out and say "other browsers and operating systems are not as vulnerable to parasites", yet it seems like they're also saying "You'll get more out of this site if you use IE"...
  20. It's supposed to be there when you've got it set to display in a single line instead of in a tree-like format. In SMF that's known as the linktree. Someone must have modified the theme to remove it...
  21. SMF does have several built-in news feeds (available in 5 formats - ATOM, RDF, RSS, RSS2 and XML): http://www.phpfreaks.com/forums/index.php?action=.xml - Base URL Optional parameters: sa - the sub-action. Determines what feed is shown - can be news (latest posts that are the first post in a particular topic in each board), recent (recent posts - default), profile (user's profile) or members (latest members) limit - how many items to show. Can be anything between 5 and 255. Default is 5. type - what type of feed to show. If not specified, XML is used. Can be atom, rdf, rss or rss2 Special parameters: For "recent" and "news" (optional - only one parameter can be used at a time): c - either a single category ID or a comma-seperated list of category IDs (limits display to posts from boards in the specified category/categories) board - single board ID (limits display to posts from the specified board) b - comma-seperated list of board IDs (limits display to posts from the specified boards) Required parameter for "profile": u - the user ID of the member whose profile you wish to view
  22. There's an easy way to post code without using the code box - just use [nobbc][pre][/pre][/nobbc]. This will preserve spacing/formatting and also display things in an easy-to-read fixed-width font. If you do this though, you should also make sure to select the "Don't use smileys." option under "Additional options..." on the main post screen so that your code won't end up having smileys scattered throughout it. The horizontal scrolling is done to prevent extra-wide code from stretching out the rest of the page, which is really annoying, especially for those using the dreaded 800x600 resolution... As akitchin stated, word-wrapping within the code box would make things extremely difficult to read and would make it hard to find specific lines without copying the code and pasting it into notepad or another text editor.
  • 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.