Jump to content

Zane

Administrators
  • Posts

    4,362
  • Joined

  • Last visited

  • Days Won

    11

Everything posted by Zane

  1. So is this solved?
  2. Ok, this should work $form12 = "{$wk . $wknum} </pre> <form name="'Picks'" method="'post'" action="'%7B%24process%7D'"> {$away[0]} at {$home[0]} {$away[1]} at {$home[1]} {$away[2]} at {$home[2]} {$away[3]} at {$home[3]} {$away[4]} at {$home[4]} {$away[5]} at {$home[5]} {$away[6]} at {$home[6]} {$away[7]} at {$home[7]} {$away[8]} at {$home[8]} {$away[9]} at {$home[9]} {$away[10]} at {$home[10]} {$away[11]} at {$home[11]} </form>
  3. Also, it might help to have valid (X)HTML. Example..
  4. Instead of turning POST['check_box'] into an array. Keep it like it is, with the commas and just "clean" it. As in mysql_real_escape_string() Then use MySQL's IN function to look through all of them $sql = "DELETE FROM categories WHERE cat_id IN (" . mysql_real_escape_string($_POST['check_box']) . ")";
  5. You don't have to open a PHP tag when you're already inside a PHP tag. Example. In your code you're doing this //bunch of strtotime codes.... /more code //blah blah $variable = "something something "; ?> When you should just be doing this... in your variable declaration $variable = "something something $wknum"; or this $variable = "something something {$wknum}"; No reason to use the echo function within a variable's value. That would be like Preprocessing Preprocessed PHP
  6. When you say "it's breaking on you", what do you mean? Also, this echo $query="$sqlSelect FROM will cause a bad query error. Unless, the value of $sql is "Explain ".
  7. I'm not very familiar with cakePHP, but does it serialize the objects before putting them into the SESSION? Because to me, that seems to be what your looking for.
  8. show the code where you are calling the function
  9. Zane

    Leaving

    Why do people feel the need to express their reasons to "leave this place?" If you really want to leave, then just do it. Change your hosts file to redirect this place to localhost or something. Not that I'm suggesting you actually "leave"... I just feel that if a community bothers you that bad, then say to hell with it. Just to further elaborate my point. Upon posting my reply, you are still online and you have made numerous replies to this (your) thread beforehand. It seems more to me like you're seeking attention; without solicitation this time. Just my 2 cents.
  10. You define the directory name when you call the function.. For instance nsfw("someDirectory");
  11. Something like this should shorten you code substantially function nsfw($dirname) { //configure site specific variables $website = 'http://www.thenudedeer.com'; //what is the folder name $phpbbdir = '/$dirname/';
  12. Set your CSS accordingly Here are the default font-sizes for heading tags http://style.cleverchimp.com/font_size_intervals/altintervals.html For a quick reference. H3 is equal to font-size: large OR font-size: 24px
  13. No, you didn't even put the escaped values into the query in that snippet $sql="INSERT INTO `pendingquotes` (`quotes`, `email`, `name`) VALUES('".$quote."','".$quote1."','".$quote2."')";
  14. Have you tried it yet?
  15. What code have you tried already? It should be as simple as the pseudo-snippet you posted already
  16. Personally, for chunks of HTML code, I like to use Heredocs. echo Gotta love the tabs/whitespace MYHTML;
  17. Look into a currency converter... Like this one, http://www.exchangerate-api.com/
  18. function open(x) { var argSrc = document.getElementById('img2'+x).src; var img1 = document.getElementById('img1'+x).src var mytable = document.getElementById('mytable'+x).style.display; if(argSrc == 'image/button2.gif') { argSrc = 'image/buttonclose2.gif'; img1 = 'image/buttonclose1.gif'; mytable = "block"; } if(argSrc == 'image/buttonclose2.gif') { argSrc = 'image/button2.gif'; img1 = 'image/button1.gif'; myTable ="none"; } } Try this out
  19. What about this part document.getElementById("mytable"+x).style.display=""; Shouldn't display be set to something besides nothing..... like block.
  20. On your IF statements, you need two equals signs for comparison (==)
  21. Manipulating an id/index isn't good practice at all. Unless of course you have customized indeces like A09485, A09525, etc of course. Having your table's index/primary key set to auto-increment helps keep your database normalized. As far as keeping a records position goes, you'll need another field for it. Then, before you ever delete a record by id, you first select that records position (saving it in a variable) , delete the record and then do an update that looks something like UPDATE table SET position = position -1 WHERE position > {variable} Also, I'd take pikachu's suggestion and create another field for status (pending, approved, etc)
  22. instead of getAttribute('src') Try just using src instead. e.g document.getElementById('img2'+x).setAttribute('src','image/buttonclose2.gif'); to document.getElementById('img2'+x).src = 'image/buttonclose2.gif';
  23. Strpos never returns true, it either returns a number (the integer position of the found string) or false if it's not there.
  24. Instead of trying to connect to the server for testing, just PING it. Seems like it would use less resources.
×
×
  • 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.