|P-H-P| ----> Need Help .....

Seite 1 von 1 - Forum: Coding Stuff auf overclockers.at

URL: https://www.overclockers.at/coding-stuff/p-h-p_gt_need_help_33726/page_1 - zur Vollversion wechseln!


BobbyPI schrieb am 08.05.2002 um 06:51

$result = mysql_query("select email, password from g2_user where name='$formUser'", $db);

while ($row = mysql_fetch_array ($result)) {

echo "email: ".$row["email"]."<br>\n";
echo "password: ".$row["password"]."<br>\n";

}


hilfe .... wie schreib ich das wenn ich email und password als variable definieren will ?

thnx 4 help ...... :rolleyes:


jAcKz schrieb am 08.05.2002 um 07:07

was meinst du? wenn du einschränken und nur eine bestimmte zahl an emails auswählen willst? dann brauchst ein where...


BobbyPI schrieb am 08.05.2002 um 18:28

naja irgendsowas wie ....

$email = ".$row["email"]." ;

$password = ".$row["password"].";

ich meine aber schon in der while schleife .... aber nur wie mach ich das ?


jAcKz schrieb am 08.05.2002 um 18:30

achso, du willst die ergebnisse in variablen übergeben?


Tex schrieb am 08.05.2002 um 19:09

Code: PHP
while (list($email,$password) = mysql_fetch_row($result))
{
echo $email;
echo $password;
}


BobbyPI schrieb am 09.05.2002 um 17:23

thnx funkt perfekt ....

nochmal thnx @n alle ....




overclockers.at v4.thecommunity
© all rights reserved by overclockers.at 2000-2025