Re_Boot Posted April 24, 2008 Report Share Posted April 24, 2008 (edited) Sveiki visiem! Shis ir GET skripts: if(isset($_GET['profile']) && isset($_GET['profile'])) { $profile=intval($_GET['profile']); $SQL1=mysql_query("SELECT * FROM users WHERE id_user=".$profile.""); $row = mysql_fetch_assoc($SQL1); Man sho kodu vajag parveidot taa, lai vinjs dabu visus tabulas datus peec 'id_user' bet peec username. Ludzu palidzat, mainit id_user ar username es jau megjinaju bet nesanaca, es nezinaju ko darit, un nacu pec palidzibas sheit! P.S. Manliekas ka ar intval kkas jamaina... Edited April 24, 2008 by Re_Boot Link to comment Share on other sites More sharing options...
andrisp Posted April 24, 2008 Report Share Posted April 24, 2008 intval jānovāc. bet iekš kverija $profile būs jāliek pēdiņās (jo tas bus strings). Kā arī uz šo stringu vajag uzrīdīt mysql_real_escape_string. PS. kāda jēga no divām isset pārbaudēm ? Link to comment Share on other sites More sharing options...
Re_Boot Posted April 24, 2008 Author Report Share Posted April 24, 2008 Paldies, viss aizgaja :D Link to comment Share on other sites More sharing options...
Recommended Posts