Jump to content

Zane

Administrators
  • Posts

    4,362
  • Joined

  • Last visited

  • Days Won

    11

Everything posted by Zane

  1. aha.. I got it! background-size: 100% 100% I don't understand why both width and height have to be 100%, but oh well, it works.
  2. I know it's possible somehow to stretch a gradient 100% vertically. I just can't figure out how to do it. Suppose I have my div#nav div#nav { height: 100%; width: 200px; background-color: black; background-color: #8C9AA3; /// What am I doing wrong? background: url(gradient.jpg) 100%; /// I need this gradient to span from top to bottom. font-family:"Arial"; margin: 0px; padding: 0px; padding-top: 0px; font-weight: bold; position:fixed; color:white; } Here's the gradient.. http://reallycheapfloors.com/gradient.jpg This is possible right?
  3. Straight from webfaction.com I suppose the MX records will automatically update when the domain moves to the nameserver. Regardless, the MX question is covered in the above link.
  4. http://www.videowhisper.com/?p=PHP+2+Way+Video+Chat
  5. Just copy your website to your new server before DNS propagates. Copy all files, dump any SQL databases you have and assume the new server has the domain already.
  6. There's also a multiplication assignment operator.. *= so you can easily just say $number *= 2;
  7. $record_id must be empty. $result is only created if $record_id isn't empty.
  8. Ok, so you have the snippet in there... albeit in the right spot. I can't begin to fathom why it doesn't output ANYTHING.. This is beyond me now. One thing you can try it to put this error_reporting(448191); ini_set("display_errors", true); at the VERY TOP of your script... RIGHT below the <?php tag
  9. Post the code.. post the code, post the code. This is the last time I'll ask this. That snippet should have printed something out..
  10. Try again echo "", print_r($_POST), ""; Echoing that and your $sql variable should indeed output something.
  11. 1.) You did not do as I suggested earlier $testtable = array();foreach($_POST as $indexName => $value) { $myUpdateList[] = "$indexName = \"$value\"";} 2.) You receive YOUR "ERROR" message because the query failed.. 3.) Why is your SQL query inside parenthesis? 4.) I'll bet you all of my life savings that your query failed because you used every single element in your POST array Put this code underneath your $sql line... and post what it returns here echo "", print_r($_POST), ""; While you're at it.... echo your $sql variable and post that here as well.
  12. Wow, 4 years ago!? Really? Even though the information you provided is very detailed and downright relevant to the OP, you shouldn't necro. I see your intentions are good, but 4 years?? Well, 3 years and some change. Anyway. I'm locking this.
  13. Post the code that you have.. My crystal ball is broken
  14. The only way there could be a T_STRING error is if you have quotes/apostrophes in your input. Otherwise, I have no idea why there is a T_STRING error. The double quotes are escaped just fine. If you do have apostrophes in your inputs, then take a look at the addslashes function... that should fix it. ALSO, you are not populating your $testtable array. So the $fields variable holds literally nothing. replace $myUpdateList with $testtable
  15. http://www.phpfreaks.com/forums/index.php?topic=354422.msg1674005#msg1674005
  16. when I google "create php odometer", I get this http://jpgraph.net/download/manuals/chunkhtml/ch20s02.html
  17. Even though having a datatype of int(11) will probably work, you only need to store a 1 or a 0. MySQL offers a datatype called BOOL, which is essentially just int(1)
  18. I'm assuming you have the required permissions to store people's SSN... and if you do, I would have to disagree with ManiacDan on this one. It would be much better to format this string in the query so the actual SSN isn't floating around, even though the likelihood of someone grabbing the data from the script it highly unlikely, the data is still very sensitive and must be handled that way. So, something like this should work SELECT RIGHT(ssn_number ,4)
  19. Is your banned field set to BOOL?
  20. This topic has been moved to MySQL Help. http://www.phpfreaks.com/forums/index.php?topic=354650.0
  21. This topic has been moved to PHP Installation & Configuration. http://www.phpfreaks.com/forums/index.php?topic=354646.0
  22. This is not a wordpress error, it is simply Wordpress telling you that you have a PHP Configuration error. Go into your php.ini file, if you're able to.... If don't have access to this, then contact your hosting provider with the error message.
  23. From what you have described.. I have no idea what you want to do. But, I can tell you that instead of a loop for all this, you can use str_getcsv // get data from the file $data = file_get_contents('filename.txt'); $csv_data = str_csv($data); // Now $csv_data is an array of it all.
  24. use a LIMIT at the end of the query..
  25. Zane

    Preg stuff

    What are "round brackets"? I'm assuming you mean parentheses.... Parentheses are used to consolidate a regex search. For instance, if you wanted to go through and grab the name, class, and value as separate entities.... then you'd use parenthesis for each one. The braces do not mean OR,,, they are used for ranges.. For example [1-9A-Za-Z@%!] Would only match something that had either of the characters. 453ABCzyx@@@%!!!!! // Would match 453ABCzyx@@@%!!!!!$$ //Would not match because the $ is not within the range. 02356985 //Would not match because the numeric range is 1-9
×
×
  • 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.