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

Linux, Apache, MySQL, PHP

 
AnswerRe: Mail () function friving me crazy with the errors :@ Pin
Adam Maras10-Jan-10 8:36
Adam Maras10-Jan-10 8:36 
GeneralRe: Mail () function friving me crazy with the errors :@ Pin
SRJ9210-Jan-10 8:40
SRJ9210-Jan-10 8:40 
GeneralRe: Mail () function friving me crazy with the errors :@ Pin
fly90410-Jan-10 11:29
fly90410-Jan-10 11:29 
GeneralRe: Mail () function friving me crazy with the errors :@ Pin
SRJ9210-Jan-10 11:41
SRJ9210-Jan-10 11:41 
QuestionProblem with Arrays in PHP Pin
sarang_k5-Jan-10 22:30
sarang_k5-Jan-10 22:30 
AnswerRe: Problem with Arrays in PHP Pin
cjoki7-Jan-10 5:35
cjoki7-Jan-10 5:35 
GeneralRe: Problem with Arrays in PHP Pin
David192216-Jan-10 12:31
David192216-Jan-10 12:31 
GeneralRe: Problem with Arrays in PHP Pin
fly90416-Jan-10 13:15
fly90416-Jan-10 13:15 
QuestionProblem with check boxes Pin
sarang_k5-Jan-10 19:57
sarang_k5-Jan-10 19:57 
AnswerRe: Problem with check boxes Pin
cjoki7-Jan-10 5:25
cjoki7-Jan-10 5:25 
QuestionPHP Member Pages... Need major help... Pin
thebiostyle1-Jan-10 7:46
thebiostyle1-Jan-10 7:46 
AnswerRe: PHP Member Pages... Need major help... Pin
Smithers-Jones1-Jan-10 11:09
Smithers-Jones1-Jan-10 11:09 
AnswerRe: PHP Member Pages... Need major help... [modified] Pin
enhzflep1-Jan-10 11:25
enhzflep1-Jan-10 11:25 
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 

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.