Right now I'm studying all the resources I can get on making Php communicate with MySQL.
Everything is going fine, and the code works, but the problem is I don't understand a certain part of it.
Rather than post it all here, I've supplied a handy Pastebin link, with proper syntax highlighting.
http://pastebin.com/U2gMbJp6
The problem is the area which I have surrounded with hyphens.
Of course, I can recognize the 'While' loop, and see that the parameters pass the names/values from the appropriate table, but I don't understand the commands. I don't understand the mysql_fetch_array command, and I do not understand why the loop works.
If I add echoes for $result and $row[id], I get '3,3,3" and "1,2,3" respectively.
Any and all insight is greatly appreciated!
Everything is going fine, and the code works, but the problem is I don't understand a certain part of it.
Rather than post it all here, I've supplied a handy Pastebin link, with proper syntax highlighting.
http://pastebin.com/U2gMbJp6
The problem is the area which I have surrounded with hyphens.
Of course, I can recognize the 'While' loop, and see that the parameters pass the names/values from the appropriate table, but I don't understand the commands. I don't understand the mysql_fetch_array command, and I do not understand why the loop works.
If I add echoes for $result and $row[id], I get '3,3,3" and "1,2,3" respectively.
Any and all insight is greatly appreciated!