Daca va rog, se poate putin ajutor? Sunt incepator in php....
Mentionez ca i-mi adauga cu succes la username si friendname, dar update dintr-un tabel intr'altul (update friends, from registered_members) nu-mi mai face..cu ce am gresit?
-----------------------------------------------------------
$add = mysql_query( "INSERT INTO `friends` (`friendname` , `username`) VALUES ('$_GET[username]' , '$_SESSION[username]') "); // add to your friends list
$add2 = mysql_query( "INSERT INTO `friends` (`friendname` , `username`) VALUES ('$_SESSION[username]' , '$_GET[username]') "); // fix friend bug
$add3 = mysql_query( "UPDATE friends f SET f.imagelocation = ( SELECT rm.imagelocation FROM registered_members rm WHERE f.imagelocation = rm.imagelocation )");
-----------------------------------------------------------
Deci vreau sa-mi copie $imagelocation din tabelul 'friends' in tabelul 'registered_members'. Orice raspuns este bine venit. Multumesc!