|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
problem with query sending results?
okay here is my problem (as best I understand it):
I have a profile page which shows different user info. I then have a navigation page which I can put at the top of the page and make the query through that and output results on viewprofile page. Then thre is the search page to find users, which query's in the nav page, and is passed to view profile. Pretty simple. But I seem to have a problem with the results of the search: when I am looking just at id, it works fine (a simple query is made to jsut find that id); but when I'm looking at the query made with multiple items, it won't work well; it returns the users, but won't get certain info. this is the nav page: PHP Code:
that's the basic page. the other option is to fetch according to userid; i will put this into the nav page later, but for now its on my view profile page... PHP Code:
i then use a while() to return the results in an array. I noticed it had troble with this: $userid = $myrow['userId']; my table says userId, but when I return based on a url $_GET['userid'], it won't work, but the search funtion will... what's teh difference? And the search won't return things like $myrow['location']... it seems to be coming back empty? Do I have to do mysql_fetch_row isntead? the downside is if I change my table, I hav to fix the page in major ways. Why is this happening? thanks I hope that was enough info...
__________________
hey it's the CHARKING |
|
#2
|
|||
|
|||
|
oh :P
I FIXED IT oi
made query to say select userId i guess ill leave this here... so people can try to... look at it? ////CHANGE it to say select * duh cant jsut get those two! man im too tired. |
![]() |
| Viewing: Dev Articles Community Forums > Programming > General Programming Help > problem with query sending results? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|