Click here to Skip to main content
15,880,796 members
Home / Discussions / Linux, Apache, MySQL, PHP
   

Linux, Apache, MySQL, PHP

 
GeneralRe: PHP Member Pages... Need major help... Pin
thebiostyle1-Jan-10 16:14
thebiostyle1-Jan-10 16:14 
GeneralRe: PHP Member Pages... Need major help... Pin
enhzflep3-Jan-10 15:54
enhzflep3-Jan-10 15:54 
GeneralRe: PHP Member Pages... Need major help... Pin
thebiostyle3-Jan-10 16:28
thebiostyle3-Jan-10 16:28 
GeneralRe: PHP Member Pages... Need major help... Pin
enhzflep4-Jan-10 12:22
enhzflep4-Jan-10 12:22 
GeneralRe: PHP Member Pages... Need major help... Pin
thebiostyle22-Jan-10 16:09
thebiostyle22-Jan-10 16:09 
GeneralRe: PHP Member Pages... Need major help... Pin
Graham Breach22-Jan-10 23:31
Graham Breach22-Jan-10 23:31 
GeneralRe: PHP Member Pages... Need major help... [modified] Pin
thebiostyle23-Jan-10 4:33
thebiostyle23-Jan-10 4:33 
AnswerRe: PHP Member Pages... Need major help... Pin
Graham Breach23-Jan-10 5:20
Graham Breach23-Jan-10 5:20 
It's not printing anything because of this:
$list_memberinfo = mysql_query("SELECT * FROM `members` WHERE id='".$_GET['user']."'");
$list = mysql_fetch_array( $list_memberinfo ); 
while($list = mysql_fetch_array( $list_memberinfo ))


Presumably the id is unique, so the first (and only) record is retrieved with the first call to mysql_fetch_array, then it gets called again for the while loop where the value you got first in $list is thrown away. Then the while condition will fail, because you've already got the one record out.

Try changing it to this:
$list_memberinfo = mysql_query("SELECT * FROM `members` WHERE id='".$_GET['user']."'");
while($list = mysql_fetch_array( $list_memberinfo ))


- or you could remove the "while" line instead, maybe replacing it with
if(!empty($list))


As for $_POST and $_GET - GET is the one you want for this. In the GET method, the parameters are passed in as part of the URI. In the POST method, the parameters are passed in the body of the request, and you would need to use a form to do that in HTML. Or you could use $_REQUEST instead, which contains everything from POST and GET, and the cookies too.
QuestionRe: PHP Member Pages... Need major help... Pin
thebiostyle23-Jan-10 8:51
thebiostyle23-Jan-10 8:51 
AnswerRe: PHP Member Pages... Need major help... Pin
fly90423-Jan-10 9:33
fly90423-Jan-10 9:33 
NewsRe: PHP Member Pages... Need major help... [modified] Pin
thebiostyle23-Jan-10 9:51
thebiostyle23-Jan-10 9:51 
GeneralRe: PHP Member Pages... Need major help... Pin
fly90423-Jan-10 10:38
fly90423-Jan-10 10:38 
GeneralRe: PHP Member Pages... Need major help... Pin
thebiostyle23-Jan-10 10:47
thebiostyle23-Jan-10 10:47 
GeneralRe: PHP Member Pages... Need major help... Pin
fly90423-Jan-10 11:00
fly90423-Jan-10 11:00 
GeneralRe: PHP Member Pages... Need major help... Pin
thebiostyle23-Jan-10 11:18
thebiostyle23-Jan-10 11:18 
GeneralRe: PHP Member Pages... Need major help... Pin
fly90423-Jan-10 11:29
fly90423-Jan-10 11:29 
GeneralRe: PHP Member Pages... Need major help... Pin
fly90423-Jan-10 11:23
fly90423-Jan-10 11:23 
GeneralRe: PHP Member Pages... Need major help... Pin
thebiostyle23-Jan-10 11:48
thebiostyle23-Jan-10 11:48 
GeneralRe: PHP Member Pages... Need major help... Pin
thebiostyle24-Jan-10 7:07
thebiostyle24-Jan-10 7:07 
AnswerRe: PHP Member Pages... Need major help... Pin
Graham Breach24-Jan-10 7:57
Graham Breach24-Jan-10 7:57 
GeneralRe: PHP Member Pages... Need major help... Pin
thebiostyle24-Jan-10 8:34
thebiostyle24-Jan-10 8:34 
QuestionAdd two difference items to shopping card-Paypal Pin
tktuan28-Dec-09 16:08
tktuan28-Dec-09 16:08 
AnswerRe: Add two difference items to shopping card-Paypal Pin
cjoki29-Dec-09 4:40
cjoki29-Dec-09 4:40 
GeneralRe: Add two difference items to shopping card-Paypal Pin
tktuan29-Dec-09 15:05
tktuan29-Dec-09 15:05 
GeneralRe: Add two difference items to shopping card-Paypal Pin
cjoki30-Dec-09 4:42
cjoki30-Dec-09 4:42 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.