Jump to content

Philip

Staff Alumni
  • Posts

    4,665
  • Joined

  • Last visited

  • Days Won

    20

Everything posted by Philip

  1. This is why I hate front-end coding, such a pain. That is pretty cool, the cube.... but honestly, how often would you use it? Nonetheless, I can't wait for CSS3 to become the new standard with all the browsers, some cool stuff in there
  2. http://dev.mysql.com/doc/refman/4.1/en/fulltext-fine-tuning.html
  3. http://www.sitepoint.com/article/introducing-cron/
  4. No shit. I overheard to medicine students talking today. One of them complained about having to purchase a book at 4000 DKK (720 USD). o.O I think the most expensive one I've had was a little over 200 USD, but I used it for 2 long semesters.
  5. You're missing a ' in your query: $resultset = "SELECT artist_name, genre FROM artists WHERE artist_name='$keyword"; so, it should look like: $resultset = "SELECT artist_name, genre FROM artists WHERE artist_name='$keyword'"; Really I would have it changed to: $resultset = "SELECT artist_name, genre FROM artists WHERE artist_name='".$keyword."'"; Also, running echo pg_last_error($conn); would show your syntax error.
  6. The reason I ask about the DB class, is because $db->get_results( ) is not a normal PHP method. I'm going to go out on a limb and say you're probably using wordpress, with their DB interaction? If so, Id recommend turning on errors (put this before your queries): $db->show_errors(); , or right after the query: $db->print_error();
  7. Yeah, I would have started smaller, but thats just me. Echo is a bit faster, but the difference is so small you won't notice a jump unless you're getting thousands of hits. The nice thing about echo is it takes in multiple parameters instead of having to concatenate everything. (e.g. echo $this, ' ', $that, (5*12), 'something' Do you know what class/methods they are using to connect to the DB?
  8. You should probably add this after you include the db file. $db->debug = true; This will now display the SQL statement before your executions, and also show any pesky error messages.
  9. Not UK, but US - but should have all the cars that you can buy in the US given the link is data safety records http://www-nrd.nhtsa.dot.gov/database/aspx/vehdb/veh_catalog_by_mmy.aspx Can't seem to find the UK equiv
  10. Calm down there buddy You saying "can you show me how to..." and then listing the original task as if you copy/pasted it from a assignment looks mighty suspicious if you ask me. And yes I needed help when I first started, but I learned to read the manual and google'd examples then tried it myself. Also, I find it highly ironic that you said:
  11. Means it will be on line 7 Remember the sticky for header errors: http://www.phpfreaks.com/forums/index.php/topic,37442.0.html
  12. Is it throwing any errors, and do you have stuff like error_reporting(E_ALL); at the top of your script?
  13. Smells like homework to me
  14. Are you using a custom DB class, or trying to use mysqli? If it's custom, please post the full class EDIT: I read in your other post - see here for manual doc: http://phplens.com/lens/adodb/docs-adodb.htm#execute and... http://phplens.com/lens/adodb/docs-adodb.htm#ex4
  15. Well, table is a reserved word so it needs to be in ticks. INSERT INTO `table` (`user`) VALUES ('My Name')
  16. $result = mysqli_query($this->connection,$sql); if(!$result){ die("It's not working...YET AGAIN!: " . mysqli_connect_error()); } Are you sure you want to check for a connect error there? How about just mysqli_error
  17. <?php error_reporting(E_ALL); class subClass { public $test; function __construct($test) { $this->test = $test; } public function subMethod( ) { echo $this->test; } } class mainClass { public $subClass; public $foo; function __construct( ) { $this->subClass = new subClass('hello'); } } $myClass = new mainClass; $myClass->subClass->subMethod(); ?> Its basically making the variable subClass a new class, which allows access to its methods. Whats the purpose for this?
  18. it's all here buddy: http://www.php.net
  19. $10k sounds a bit high to me, although I've been wrong before. As chris said, sedo.com THE place to go to for domain auctions/bids.
  20. function badword() { array("badword1","badword2","badword3") } Should be the following for it to work: function badword() { return array("badword1","badword2","badword3"); } As a whole: <?php function badword() { return array("badword1","badword2","badword3"); } $badwords = badword(); if (!in_array($_POST['name'],$badwords)) { // // not a bad word // } else { // // bad word // }
  21. That tells the other server what the browser it is - which is easily faked as seen above, mostly used for just statistics or for showing different content for different browsers
  22. http://www.phpfreaks.com/forums/index.php/board,8.0.html Also places like https://www.scriptlance.com/ and such
  23. Well, you could always use an api or curl but searching my email and paypal, came up with 382 results - none of which really have anything to do with me. according to your theory i'd be a thief
  24. I just picked up Zandsta's book and it has really changed the way I code. @OP: practice practice practice! Pick a small tutorial or idea (basic guestbook, etc) and try coding it. Then once you figure it out, expand on it, tidy the code or try different approaches it
  25. I do. Bunch of hard-line, right-wing, state-arrogant folks. Everyone from Texas thinks that they are better than anyone else from any other state. Most of them are also very close-minded in terms of progressive thinking on social matters. My experience is based on the fact that my company has a office in Texas and I've been dealing with them for close to 3 years now. I've actually been to Texas about 20 times and the mindset seems to be spread across towns, so it's not limited to the small amount of people I deal with. Granted, most of them are nice people... they just have their own way of doing things. but we are better! haha, joking aside, most of us are verryyyy close minded which kinda annoys me at times. Nonetheless I do love my state
×
×
  • 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.