Philip
Staff Alumni-
Posts
4,665 -
Joined
-
Last visited
-
Days Won
20
Everything posted by Philip
-
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
-
why my "search-box" script doesnt return a search entry like "size 6" ???
Philip replied to mac007's topic in PHP Coding Help
http://dev.mysql.com/doc/refman/4.1/en/fulltext-fine-tuning.html -
http://www.sitepoint.com/article/introducing-cron/
-
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.
-
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.
-
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();
-
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?
-
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.
-
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
-
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:
-
Means it will be on line 7 Remember the sticky for header errors: http://www.phpfreaks.com/forums/index.php/topic,37442.0.html
-
[SOLVED] Problem with upload form. Please help!
Philip replied to patheticsam's topic in PHP Coding Help
Is it throwing any errors, and do you have stuff like error_reporting(E_ALL); at the top of your script? -
Smells like homework to me
-
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
-
[SOLVED] Would like my first oop object to be checked
Philip replied to Potatis's topic in PHP Coding Help
Well, table is a reserved word so it needs to be in ticks. INSERT INTO `table` (`user`) VALUES ('My Name') -
[SOLVED] Would like my first oop object to be checked
Philip replied to Potatis's topic in PHP Coding Help
$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 -
<?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?
-
it's all here buddy: http://www.php.net
-
$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.
-
[SOLVED] How do I compare a variable to a function array?
Philip replied to pneudralics's topic in PHP Coding Help
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 // } -
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
-
http://www.phpfreaks.com/forums/index.php/board,8.0.html Also places like https://www.scriptlance.com/ and such
-
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
-
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
-
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