The Joomla! Forum ™






Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: zmienna z bazy danych
PostPosted: Wed Apr 11, 2012 11:09 am 
Joomla! Fledgling
Joomla! Fledgling

Joined: Wed Apr 11, 2012 10:53 am
Posts: 1
Witam,
chciałbym pobrać pewną daną z bazy danych. Utworzyłem tabelę, w niej dwie kolumny. Wypełniłem je dwiema danymi. 1 i 30.
Oraz napisałem taki kod:
Code:
    <?php
$db =& JFactory::getDBO();
$query = "
SELECT *
FROM 'kjlkj_marysia' 
WHERE 'pole_marysia1' =1;
";
            
$result = $db->loadObject();
?>
<?php   echo  $result->$pole_marysia2  ?>


nie wiem co robię źle ale zmienna nie pojawia się. Może ktoś widzi błąd lub wie co powinienem zrobić aby to zadziałało :)
Pozdrawiam


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 



Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group