Jump to content
php.lv forumi

mainīgie


gunmetal

Recommended Posts

  • Replies 54
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

bet tev tak rādīja kā to dara ....

$mainigais = 'veertiiba';

$_SESSION['nosaukums'] = 'veertiiba';

 

atver kaadu open source projektu un skaties kaa tur rakstiis

 

man jau liekas ka tu tik ātri neuztaisiisi to ko tu vēlies

 

šac ar šo : http://freefm.lv/lv/php_soli_pa_solim/

 

sāc ar 2 nodaļu ...

+ ja gribi draudzēties ar php, būs jādraudzējas arī ar angļu valodu

Edited by Klez
Link to comment
Share on other sites

Nu jā bet kā lai es tos mainīgos ielieku šite

<?php

session_start();

 

if (!empty($_SESSION[username]))

{

include('header.php');

echo "$_SESSION[bilde]";

include('footer.php');

}

else

{

include('login.php');

}

 

?>

 

lai darbojas bilde

Link to comment
Share on other sites

tev tā bilde db stāv vai uz datora?

ja uz datora tad

<?php
session_start();

if (!empty($_SESSION[username]))[/size][/font][/color]
$_SESSION[bilde]="bildes_nosaukums_katram_lietotajam_atsevisks";
{	
include('header.php');
echo "<img src=/bildes/atrasanas/vieta/$sesijasbilde.jpg";
include('footer.php');
}
else
{
include('login.php');
}

?>

Edited by bobsters
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...