This is a discussion on "Why is this not working!" within the PHP Forum section. This forum, and the thread "Why is this not working! are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
Why is this not working!
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
||||
|
Why is this not working!
Ok, sort of related to my other thread but just a simple problem. Take this class:
On the home page:
The error MySQL gives (added error report thingy) is: Quote:
__________________
Resources Administrator
Grilling Gurus - Interviews with the Best Web Designers and Developers in the Industry Got a Question for Ryan Carson and his Web Design/Development team Carsonified? Jack Franklin - My Blog (It's a Pen in My Mouth BTW)
Last Blog Entry: My Latest Project - Grilling Gurus... (Jun 11th, 2008)
Last edited by Jack Franklin; Mar 24th, 2008 at 18:47. |
|
|
|
||||
|
Re: Why is this not working!
Try this as your SQL query:
__________________
echo "Take it easy, ".$CloudedVision; .links { site: other-road-design; blog: only-nerds-allowed; project: resource-fish; organization: ARMIES6; } <quote>"I think it's wrong that only one company makes the game Monopoly" - <name>Steven Wright</name></quote>
Last Blog Entry: More Cheat Sheets (Jul 12th, 2008)
|
|
||||
|
Re: Why is this not working!
Nope, error. Wrong table name.
__________________
Resources Administrator
Grilling Gurus - Interviews with the Best Web Designers and Developers in the Industry Got a Question for Ryan Carson and his Web Design/Development team Carsonified? Jack Franklin - My Blog (It's a Pen in My Mouth BTW)
Last Blog Entry: My Latest Project - Grilling Gurus... (Jun 11th, 2008)
|
|
||||
|
Re: Why is this not working!
Hmmmm..... What's the query that the PHP is generating?
__________________
echo "Take it easy, ".$CloudedVision; .links { site: other-road-design; blog: only-nerds-allowed; project: resource-fish; organization: ARMIES6; } <quote>"I think it's wrong that only one company makes the game Monopoly" - <name>Steven Wright</name></quote>
Last Blog Entry: More Cheat Sheets (Jul 12th, 2008)
|
|
|||
|
Re: Why is this not working!
i think is just due to the quotes; try removing them :
'$table' -> $table |
|
||||
|
Re: Why is this not working!
No luck.
Oh well. Don't worry, I've given up anyway, it was getting to complex for me.
__________________
Resources Administrator
Grilling Gurus - Interviews with the Best Web Designers and Developers in the Industry Got a Question for Ryan Carson and his Web Design/Development team Carsonified? Jack Franklin - My Blog (It's a Pen in My Mouth BTW)
Last Blog Entry: My Latest Project - Grilling Gurus... (Jun 11th, 2008)
|
|
|||
|
Re: Why is this not working!
Surely you are not naming the right variable i.e. you have $selector when you should be using $theselector or $this->selector
|This would also seem correct due to the error message as $selector isn't one of the defined variables therefore you will be passing "Select '' from '' " as a query. |
|
||||
|
Re: Why is this not working!
implrm you are a genius! As are the others! Turned out I had a typo, so aihazm's suggestion was right. The line now looks like:
__________________
Resources Administrator
Grilling Gurus - Interviews with the Best Web Designers and Developers in the Industry Got a Question for Ryan Carson and his Web Design/Development team Carsonified? Jack Franklin - My Blog (It's a Pen in My Mouth BTW)
Last Blog Entry: My Latest Project - Grilling Gurus... (Jun 11th, 2008)
|
![]() |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| CSS not working in IE? | Jgag | Web Page Design | 2 | Jun 5th, 2008 11:14 |
| PNG - IE not working | Phixon | Web Page Design | 3 | Nov 30th, 2007 13:47 |
| php not working? | gsquare567 | PHP Forum | 10 | Apr 24th, 2007 18:52 |
| PHP not working | toolmania1 | PHP Forum | 1 | Nov 1st, 2006 05:57 |