Jump to content
php.lv forumi

Palidziba + vai manas domas ir pareizas?


GeRik

Recommended Posts

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 by GeRik
Link to comment
Share on other sites

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 ?

Link to comment
Share on other sites

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']"

Link to comment
Share on other sites

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);
?> 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...