This is a discussion on "no selecting data" within the PHP Forum section. This forum, and the thread "no selecting data are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
no selecting data
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
Ok, I am having Some issues now, My main problem now is that it is not selecting from database. Meaning
it is not display the value from the database when i ask it to do so. here is partial part of the code
|
|
|
|
|||
|
Re: no selecting data
Try printing out $query and seeing the SQL you're actually running. That should give you a clue as to what is wrong. I suspect the backtics around Password ...
|
|
|||
|
ok print our $query and this is what is shows;
SELECT * FROM business_info WHERE User_Name='franklin' AND `Password`='franklin01' i think that maybe the problem is in the way i am echoing the the data like i am echoing the whole html codes in only one example <? echo' html codes'; ?> could that be the problem |
|
|||
|
Re: no selecting data
You do NOT want the quote around the word password in the query, as I suspected in my previous answer. Take them out. As the code is written, you are testing if the literal string "password" is the same as the literal string "franklin01" which it never is. You probably want to test if the string in the column called password is equal t the string "franklin01" instead.
|
![]() |
| Tags |
| selecting from database |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| selecting a TextInput from within a symbol | cosmicbdog | Flash & Multimedia Forum | 5 | May 23rd, 2007 15:10 |
| Problem selecting elements | Echilon | Web Page Design | 2 | Jan 3rd, 2007 11:43 |
| Selecting certain XML elements | fogofogo | Other Programming Languages | 3 | Dec 5th, 2005 12:49 |
| Selecting Numbers | WillisTi | Flash & Multimedia Forum | 1 | Nov 16th, 2005 16:56 |
| selecting a value from array | Ozeona | Flash & Multimedia Forum | 2 | Jul 27th, 2005 10:14 |