Code: Select all
andCode: Select all
tags where approriate when posting code. Read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url][/color]Code: Select all
$myc = mysql_connect("localhost", "root", "");
mysql_select_db("mydatenbank", $myc);
$query1 = mysql_query("SELECT A.LRUsername, A.LRPassword
FROM community A
WHERE A.LRUsername NOT IN
(SELECT user FROM arsc_registered_users)
", $myc);
while ($result = mysql_fetch_array($query1))
{
echo $result["LRUsername"]." <br />\n ";
echo $result["LRPassword"]." <br />\n ";
}how mysql_fetch_array works?
why does the pointer move by itself without FOR NEXT or sth like $i++?
and, is $result just for one row? and wait till the next turn of WHILE
when the pointer moves to next, it reads another row of data?
feyd | Please use
Code: Select all
andCode: Select all
tags where approriate when posting code. Read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url][/color]