Jump to content

HuggieBear

Members
  • Posts

    1,899
  • Joined

  • Last visited

Everything posted by HuggieBear

  1. [quote author=larttaus link=topic=122721.msg506510#msg506510 date=1168990844] From this quick test I'd say the OS affects the results, can I find anywhere I can download 4.4.4 or 5.1.6 to test on my XP box?[/quote] Give this a try... http://museum.php.net/ Regards Huggie
  2. Sorry Miz_L, Only just got in.  Can you possibly post the code for the original page too, not just the follow up code. Regards Huggie
  3. OK, I'm off home now, I'll take a look when I get in. Regards Huggie
  4. It's the line above that... Try changing this: [code]filename1=$_POST['name']. "1";[/code] To this: [code]$filename1=$_POST['name']. "1";[/code] Also further down you're missing a semi-colon on the end of this line: [code]$fullpath2=$uploaddir . $uploadfile2[/code] and a $ sign at the beginning of this line: [code]filename2= $_POST['name']. "2";[/code] Regards Huggie
  5. Yes, that should do it. Regards Huggie
  6. Try this for the current setup and I'll come up with an example of a single page... [code] <?php echo "<td>".$row['name']."</td>" . "<td>".$row['DATE_OF_ENTRY']."</td>" . "<td>".$row['status']."</td>" . "<td>"; include('followup.php?activity_id=$activity_id'); echo "</td>"; ?> [/code] And also try to use [b][nobbc][code]...[/code][/nobbc][/b] tags as opposed to quote tags when displaying code :) Huggie
  7. OK, in that case maybe it is the email, maybe Gmail doesn't like the headers. I googled for [i]gmail +php +mail +headers[/i] and found some very interesting results.  Especially the first listing! If I had a Gmail account I'd test some, but I'm afraid I don't.  Have a search and I'm sure it'll help out. Regards Huggie
  8. OK, with the code that you have you could use an include I guess, but there's probably better ways of doing it by including it on one page... [code]<?php foreach($approach_id as $id){   echo "$column_1 | $column_2 | $column_3 | " . include('followup.php?app_id=$id'); } ?>[/code] But like I say, it would be better on one page. Huggie
  9. I was just kidding, I love these forums.  I only log off when my eyelids defeat me  ;) Huggie
  10. I replied to this in the PHP Help forum, please try not to double post. http://www.phpfreaks.com/forums/index.php/topic,122598.0.html Regards Huggie
  11. Do you have an example somewhere that we can see? Regards Huggie
  12. If it shows OK in Hotmail and Yahoo then it's not an email issue, it's a client issue.  Is there a setting in Gmail to turn off HTML, does it normally display HTML messages ok? Regards Huggie
  13. [quote author=ober link=topic=122015.msg506041#msg506041 date=1168958292] As far as the font size, please let me know if that is still an issue, because no one touched that. [/quote] Things don't change themselves Ober  ::) lol Just kidding, it all looks good again now, top stuff, keep up the good work, and where can I get one of these PHPFreaks Recommended status' :) Regards Huggie
  14. Is that the case on the PHP Help forum, that was the one causing issue earlier... Regards Huggie
  15. Sorry, that was meant to read... [code]<?php foreach($_POST['genre'] as $g){   echo "$g<br>\n"; } ?>[/code] Regards Huggie
  16. Yes, that's correct. So to access it you'd use something like this... [code]<?php foreach($_POST['genre'] as $g){   $ "$g<br>\n"; } ?>[/code] Regards Huggie
  17. I'm assuming that the board is still being tweaked and that you've now decided to remove the edit time altogether, because as of about an hour ago, I can't edit any posts at all, even if I try to edit them immediately. The [nobbc][code]...[/code][/nobbc] font has also shrunk again. Regards Huggie
  18. You need this then... SELECT for, count(for) as total FROM table_name GROUP BY for Regards Huggie
  19. OK, report the error then... [code]<?php $sql = "SELECT * FROM " .TBL_USERS. " WHERE id != $from ORDER BY username"; $result = mysql_query($sql) or die("Can't execute $sql: " .mysql_error()); $x = mysql_fetch_array($result, MYSQL_ASSOC); print_r($x); ?>[/code] This will report an error on failure of the query and then dump the contents of the first row in the result set to make sure it has data in it. Regards Huggie
  20. OK, and what you want is a list of unique 'for' values e.g. weapon, book, armour and then a count of how many types of that item there are? Regards Huggie
  21. The feature to edit has disappeared so I've had to post this below... If it's a varchar rather than an int then don't forget the single quotes around the value e.g. [code]$sql = mysql_query("SELECT * FROM " .TBL_USERS. " WHERE id != '$username' ORDER BY username");[/code] Regards Huggie
  22. Just change it to this then... [code]$username = $session->username; $sql = mysql_query("SELECT * FROM " .TBL_USERS. " WHERE id != $username ORDER BY username");[/code] Regards Huggie
  23. OK, the first thing I'd do is change the form... Make all the check boxes have the same name e.g. <input type="checkbox" name="genre[]" value="rock"> <input type="checkbox" name="genre[]" value="punk"> <input type="checkbox" name="genre[]" value="classic"> This way, once your form is submitted to php, $_POST['genre'] will be an array of genres and that's easier to deal with, it means that if nothing's checked then nothing's passed. Regards Huggie
  24. This all depends on your database structure, and what you're trying to return.  This sounds as though you want to do your 'grouping' in MySQL before even getting to php. A few more db details might allow us to help further. Regards Huggie
  25. OK, well they're coded to output errors if they encounter a problem, so that looks OK.  So it's not outputting the error from mysql_error()? Huggie
×
×
  • 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.