Jump to content

ToonMariner

Members
  • Posts

    3,342
  • Joined

  • Last visited

Everything posted by ToonMariner

  1. You have to join the sage developers clan to get the code for doing that kind fo stuff - as far as I know its all in asp too! you maye be able to convert but sage do this commercially so you get an annual renewal fee etc etc.. http://shop.sage.co.uk/developersprogramme.aspx get your credit card out!!!!
  2. when ever I use include or require I start with $_SERVER['DOCUMENT_ROOT'] and specify a full path. So far it has helped prevent and malicious attacks on file includes when the include is dependant on user input.....
  3. Nope - never used it sorry! Maybe if you explained what you were trying to accomplish we coul dbe more helpful - guessing at what you want to do means we will probably be a million miles off the mark...
  4. what doctype are you using? I have noticed before that ie and ff handle backrounds differently... IE seems to apply your background from when the border ends ff seems to place the background from the actual start of the element - so it looks like the border has been placed on top of the background.. I didn't explain that very well but if you put a 10 px border on an element I think you will see what I mean....
  5. Try giving your content div position relative or absolute - taking ot out of teh doc flow should solve your problem and limit clears to the parent element (he says - it may not work but sure I have done it).
  6. hmmm intersting never had to tackle this one... have a look at styling colgroups (don't know if that will work) otherwise you'll have to give each cell a class of col1, col2 etc. and use some js like so <table border="1"> <tr> <td class="col1" onmouseover="highlight(this);" onmouseout"defaultbg(this);">1</td> <td class="col2" onmouseover="highlight(this);" onmouseout"defaultbg(this);">2</td> <td class="co3" onmouseover="highlight(this);" onmouseout"defaultbg(this);">3</td> <td class="col4" onmouseover="highlight(this);" onmouseout"defaultbg(this);">4</td> </tr> <tr> <td class="col1" onmouseover="highlight(this);" onmouseout"defaultbg(this);">1</td> <td class="col2" onmouseover="highlight(this);" onmouseout"defaultbg(this);">2</td> <td class="co3" onmouseover="highlight(this);" onmouseout"defaultbg(this);">3</td> <td class="col4" onmouseover="highlight(this);" onmouseout"defaultbg(this);">4</td> </tr> </table> and this js function highlight(el) { var tds = document.getElementsByTagName('td'); for(var i=0;i<tds.length;i++) { if (tds[i].className == el.classname) { tds[i].style.background = '#666'; } } return; } function defaultbg(el) { var tds = document.getElementsByTagName('td'); for(var i=0;i<tds.length;i++) { if (tds[i].className == el.classname) { tds[i].style.background = '#fff'; } } return; } try that modify it so that you background colors are correct - you will need to add another if statment to dectect if the row is even or odd and apply the correct bg to that...
  7. the function simply retyurns the id of the group - you can't actually DO anything with as such except use the id for other things like posix_getgrgid() to resolve a name....
  8. This is fairly straight forward.... if the table has a primary key then each record will be different. what you need to do is check each entry againts every other enrty where the primary key is different but everything else is the same... so for this example I have a table 'test' with 3 fields 'key','text' and 'stuff'... $qry = "SELECT `test`.* FROM `test` AS `t1`, `test` AS `t2`WHERE `t1`.`key` != `t2`.`key` AND `t1`.`text` = `t2`.`text` AND `t1`.`stuff` = `t2`.`stuff`"; $qry = mysql_query($qry); while($row = mysql_fetch_assoc($qry) { print_r($row); echo "<br />"; } This should print out all duplicates - make sure you only delete all but ONE of each entry - they will come in sets of 2 or more remember!!!
  9. perhpas try send just a plain text email - see if the browser on the BB can handle that... also - this is a stab in the dark mind your html in the message has single quoted values for all attributes AND does NOT start with html swap your message text for this.. $message = '<html><body><b>ONLINE RESUME</b><br><br><br>'; $message .=' <table width="700" border="0" cellpadding="0" cellspacing="3" bgcolor="#FFFFFF"> <tr> <td colspan="5" bgcolor="#CCCCCC"><div align="left" class="style14">Personal Information </div></td> </tr> <tr> <td colspan="5" bgcolor="#FFFFFF"><input type="hidden" name="$id"></td> </tr> <tr> <td bgcolor="#FFFFFF"> </td> <td bgcolor="#FFFFFF" class="style12"> </td> <td colspan="3" bgcolor="#FFFFFF"> </td> </tr> <tr> <td bgcolor="#FFFFFF"> </td> <td bgcolor="#FFFFFF" class="style12"><div align="left">First Name:</div></td> <td colspan="3" bgcolor="#FFFFFF"><div align="left" class="style16">'.$row["first_name"].'</div></td> </tr> <tr> <td bgcolor="#FFFFFF"> </td> <td bgcolor="#FFFFFF" class="style12"><div align="right" class="style12"> <div align="left">Last Name: </div> </div></td> <td colspan="3" bgcolor="#FFFFFF"><div align="left" class="style16">'.$row["last_name"].'</div></td> </tr> <tr> <td bgcolor="#FFFFFF"> </td> <td bgcolor="#FFFFFF" class="style12"><div align="left">Home Address: </div></td> <td colspan="3" bgcolor="#FFFFFF"><div align="left" class="style16">'.$row["home_address"].'</div> </td> </tr> </table></body></html>'; Now I know this shoud not matter but you never know...
  10. doh - just spotted it You have just one column in that table and have set its width to 18% the bottom cell will be 18% wide and is expanding with content. either - let the cells be as wide as they need to be or add another column to the right and span the two columns with your pagination cell.
  11. if you have firefox download the webdeveloper tool kit https://addons.mozilla.org/en-US/firefox/addon/60 and teh css viewer https://addons.mozilla.org/en-US/firefox/addon/2104 Use them to see what styles have been set for any element (in this case the last cell) and you may see the links floated left or someting like that.
  12. I think you menat to use $_SERVER['PHP_SELF'] insetad of $_SESSION['PHP_SELF'] here... $_SESSION['loggedin'] = "1"; $_SESSION['user'] = $_POST['user']; header('Location: '.$_SESSION['PHP_SELF']);
  13. it means you have already output some html or white space and then you are trying to send a header. You can either move all headers to before the html begins being output or put ob_start(); at the beginning of your script and ob_end_flush(); at the end.
  14. instead of running the ajax at set times simply cal it when the user does do something that warrants a databse update (this should increase time between requests to every 30 seconds or maybe more!) You may want to consider using persistent connections - but beware they have limits on numbers so you'll just have to figure that one yourself. Otherwise it all sounds fine... make sure your php code is as efficient as possible and maybe consider caching some results...
  15. I just looked at 'your' page in the links below your name on here and that site looks pretty good in ie 6 7 and FF so it can't be that (or can it????)
  16. switch($_FILES["file"]["type"]) { case 'image/gif': // gif stuff. break; case 'image/jpg': case 'image/jpeg': // jpg stuff': break; case 'image/png': // png stuff. break; case 'application/pdf': // pdf stuff. break; } and so on......
  17. provided the two (if it is more than 1) servers in question will allow the transactions then yes. you will have to add some code to teh fck editor upload script that will copy the files over.
  18. would love to view the source - where is it? if you are using png then look here http://www.twinhelix.com/css/iepngfix/
  19. no its not that... you need to give these a tags a class. Try giving your links containing an image a class of 'imglink' then in you css AFTER the above declaration put a.imglink { border: none; }
  20. on screen appearance should be controlled by css if you use a standards compliant method. as Andy says semantics is the answer... If you 'beautification' relates to the on-screen rendering then instead of spaces you should apply padding or margin to your link...
  21. google suckerfish - you will get (IMO) to best css based drop-down....
  22. check if $_SERVER['HTTP_REFERER'] is presenta and save that...
  23. sql error is not a php error - there mustbe something else. can you post code and possibly a link for us to check...
  24. it does it for you if you have error_reporting on at the top of each script place ini_set('error_reporting', E_ALL); and it should spit out any errors found...
×
×
  • 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.