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

Linux, Apache, MySQL, PHP

 
GeneralRe: PHP Member Pages... Need major help... Pin
thebiostyle1-Jan-10 17:14
thebiostyle1-Jan-10 17:14 
GeneralRe: PHP Member Pages... Need major help... Pin
enhzflep3-Jan-10 16:54
enhzflep3-Jan-10 16:54 
GeneralRe: PHP Member Pages... Need major help... Pin
thebiostyle3-Jan-10 17:28
thebiostyle3-Jan-10 17:28 
GeneralRe: PHP Member Pages... Need major help... Pin
enhzflep4-Jan-10 13:22
enhzflep4-Jan-10 13:22 
GeneralRe: PHP Member Pages... Need major help... Pin
thebiostyle22-Jan-10 17:09
thebiostyle22-Jan-10 17:09 
GeneralRe: PHP Member Pages... Need major help... Pin
Graham Breach23-Jan-10 0:31
Graham Breach23-Jan-10 0:31 
GeneralRe: PHP Member Pages... Need major help... [modified] Pin
thebiostyle23-Jan-10 5:33
thebiostyle23-Jan-10 5:33 
AnswerRe: PHP Member Pages... Need major help... Pin
Graham Breach23-Jan-10 6:20
Graham Breach23-Jan-10 6: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 9:51
thebiostyle23-Jan-10 9:51 
AnswerRe: PHP Member Pages... Need major help... Pin
fly90423-Jan-10 10:33
fly90423-Jan-10 10:33 
NewsRe: PHP Member Pages... Need major help... [modified] Pin
thebiostyle23-Jan-10 10:51
thebiostyle23-Jan-10 10:51 
GeneralRe: PHP Member Pages... Need major help... Pin
fly90423-Jan-10 11:38
fly90423-Jan-10 11:38 
GeneralRe: PHP Member Pages... Need major help... Pin
thebiostyle23-Jan-10 11:47
thebiostyle23-Jan-10 11:47 
GeneralRe: PHP Member Pages... Need major help... Pin
fly90423-Jan-10 12:00
fly90423-Jan-10 12:00 
GeneralRe: PHP Member Pages... Need major help... Pin
thebiostyle23-Jan-10 12:18
thebiostyle23-Jan-10 12:18 
GeneralRe: PHP Member Pages... Need major help... Pin
fly90423-Jan-10 12:29
fly90423-Jan-10 12:29 
GeneralRe: PHP Member Pages... Need major help... Pin
fly90423-Jan-10 12:23
fly90423-Jan-10 12:23 
GeneralRe: PHP Member Pages... Need major help... Pin
thebiostyle23-Jan-10 12:48
thebiostyle23-Jan-10 12:48 
GeneralRe: PHP Member Pages... Need major help... Pin
thebiostyle24-Jan-10 8:07
thebiostyle24-Jan-10 8:07 
AnswerRe: PHP Member Pages... Need major help... Pin
Graham Breach24-Jan-10 8:57
Graham Breach24-Jan-10 8:57 
GeneralRe: PHP Member Pages... Need major help... Pin
thebiostyle24-Jan-10 9:34
thebiostyle24-Jan-10 9:34 
QuestionAdd two difference items to shopping card-Paypal Pin
tktuan28-Dec-09 17:08
tktuan28-Dec-09 17:08 
AnswerRe: Add two difference items to shopping card-Paypal Pin
cjoki29-Dec-09 5:40
cjoki29-Dec-09 5:40 
GeneralRe: Add two difference items to shopping card-Paypal Pin
tktuan29-Dec-09 16:05
tktuan29-Dec-09 16:05 
GeneralRe: Add two difference items to shopping card-Paypal Pin
cjoki30-Dec-09 5:42
cjoki30-Dec-09 5: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.