GeRik Posted June 30, 2009 Report Share Posted June 30, 2009 (edited) Pienemsim ja es izveidoju IPB Foruma datubaze jaunu tabulu ar struktru pienemsim Vards uzvards dzimshanas Dati u.t.t Bet ka man izdarit lai tas butu atsevishki katram lietotajam un lai citi lietotaji arii varetu uz to apstiities piemeram shadi profils kur ir vinja informacija kur vinsh to var mainiit a apskate uz citiem lietotajiem shadi pie lietotajiem ka mana gadijuma memberi.php un lai katra member info varetu redzet piemeram member.php?id=1 Edited June 30, 2009 by GeRik Quote Link to comment Share on other sites More sharing options...
v3rb0 Posted June 30, 2009 Report Share Posted June 30, 2009 pieliec id lauciņu. Quote Link to comment Share on other sites More sharing options...
GeRik Posted June 30, 2009 Author Report Share Posted June 30, 2009 nu ja pieliku bet kads var kadu piemeru uzmest ? ka tur iet visi tie UPDATE $_POST u.t.t Quote Link to comment Share on other sites More sharing options...
marcis Posted June 30, 2009 Report Share Posted June 30, 2009 Labāk būs ja tu jautāsi konkrētas lietas, kuras nav skaidras, nevis kāds cits visu rakstīs tavā vietā (: Quote Link to comment Share on other sites More sharing options...
Klez Posted June 30, 2009 Report Share Posted June 30, 2009 es te vispār nesaprotu - nozog cita programmu un vēl nespēj sataisīt ... prasi IPB forumā :P būtu vismaz vēl mācījies, nevis tik iedodiet gatavu, parādiet kā strādā ... tev pateica ko vajag un mēģini taisīt... ja kaut kas nesanāk, ieslēdz error_reporting, display_errors, lieto mysql_error(), googli un ja galīgi nesanāk tad izmanto paste.php.lv un pasaki ko nesaproti vai kas nesanāk. Un ir jāsaprot, ka te neviens gatavu skriptu tev nedos priekšā ... un vēl: http://php.lv/f/topic/2935-neliels-foruma-temu-apkopojums-no-arhiva-sadalas/ tur paskatījies ? Quote Link to comment Share on other sites More sharing options...
GeRik Posted June 30, 2009 Author Report Share Posted June 30, 2009 nesapratu scripts ka var but zagts ja vinsh tiek ielikts sheit pahodu tieshi tur arii atradu un es prasiju vai pareiza doma a ne lai tu uztaisiitu :D Quote Link to comment Share on other sites More sharing options...
Klez Posted June 30, 2009 Report Share Posted June 30, 2009 ja runa iet par IPB, tad šeit tas ir licenzēts. bet tev jau tak teica ka vajag ID lauku pielikt klāt ... un tad kad atvērs member.php?lietotaja_id=1 tad arī taisi "select * from tabule where ID = $_GET['lietotaja_id']" Quote Link to comment Share on other sites More sharing options...
GeRik Posted June 30, 2009 Author Report Share Posted June 30, 2009 Paldies klez :) Quote Link to comment Share on other sites More sharing options...
airbus Posted July 1, 2009 Report Share Posted July 1, 2009 Kaut kas nesanak man, gribu izvilkt membera niku ar to id bet vins rada tikai vienu niku Kods <?php $con = mysql_connect("localhost","root","pw"); if (!$con) { die('errors: ' . mysql_error()); } mysql_select_db("f", $con); $gett=mysql_query("SELECT * FROM `ibf_members` WHERE id='".intval($_GET['member_id'])."'") or die(mysql_error()); $get=mysql_query("SELECT * FROM `ibf_members` WHERE id='".intval($_COOKIE['member_id'])."'") or die(mysql_error()); $udata=mysql_fetch_object($get); echo " $udata->members_display_name "; mysql_close($con); ?> Quote Link to comment Share on other sites More sharing options...
bubu Posted July 1, 2009 Report Share Posted July 1, 2009 Tu jau arī tikai vienu reizi izvadi rezultātu ar echo. Kāpēc tu domā, ka rādīsies kas cits kā tikai viens niks? Quote Link to comment Share on other sites More sharing options...
airbus Posted July 1, 2009 Report Share Posted July 1, 2009 Es rakstu lietotaji.php?member_id=2 Rada pirmo useri raksti ?member_id=7 ari rada pirmo useru Quote Link to comment Share on other sites More sharing options...
bubu Posted July 1, 2009 Report Share Posted July 1, 2009 Tu izvadi ar echo datus no tāda kverija, kurš izmanto id no kukijiem, nevis GET. Izvadāmo informāciju GET parametru vērtības neietekmē. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.