Forum: PHP Mar 14th, 2008 |
| Replies: 10 Views: 1,902 Bombaaaaaaaaaaa
You are really boss. Thank you very very very very much. |
Forum: PHP Mar 14th, 2008 |
| Replies: 10 Views: 1,902 this is code, where I do select from table ciste_media. If I do this, final price in shopping basket $cena is 0. I thing that is problem with selection from database.
function... |
Forum: PHP Mar 14th, 2008 |
| Replies: 10 Views: 1,902 function zrataj_cenu($kosik)
//funkcia pocitajuca vyslednu sumu vsetkych poloziek v nakupnom kosiku
{
$cena = 0.0;
if(is_array($kosik))
{
$conn = db_connect();
foreach($kosik as... |
Forum: PHP Mar 14th, 2008 |
| Replies: 10 Views: 1,902 thank you, this fix this mistake, but final price $cena still is uncorrectly.Is this select from database correct? |
Forum: PHP Mar 14th, 2008 |
| Replies: 10 Views: 1,902 thank you, this fix this mistake, but final price $cena still is uncorrectly.Is this select from database correct? |
Forum: PHP Mar 14th, 2008 |
| Replies: 10 Views: 1,902 Please, where is the problem?
Unable to jump to row 0 on MySQL result index 3 in c:\apache\htdocs\cd_shop\funkcie_s_databazou.php on line 1041
function zrataj_cenu($kosik)
//funkcia... |
Forum: PHP Mar 13th, 2008 |
| Replies: 3 Views: 410 if (!$result = vyber_detaily_cd2($EAN_kod))
$result = vyber_detaily_media2($EAN_kod);
this function select me array: cena of product in shoping basket using its primary key:EAN_kod and... |
Forum: PHP Mar 13th, 2008 |
| Replies: 3 Views: 410 No it accept 3, but problem is somewhere in array, because I need get to variable result array cena from two database tables. |
Forum: PHP Mar 13th, 2008 |
| Replies: 3 Views: 410 Iam problem with this :
Supplied argument is not a valid MySQL result resource in c:\apache\htdocs\cd_shop\funkcie_s_databazou.php on line 1039
this is code:
function zrataj_cenu($kosik)... |
Forum: PHP Mar 12th, 2008 |
| Replies: 9 Views: 656 this is for example one function
function vyber_detaily_media($EAN_kod)
//funkcia ziskavajuca z databazy detaily konkretneho media podla EAN kodu
{
//poziadavka pre databazu o konkretne... |
Forum: PHP Mar 12th, 2008 |
| Replies: 5 Views: 552 No I will find every details from this two tables, where EAN_kod='$EAN_kod' |
Forum: PHP Mar 12th, 2008 |
| Replies: 9 Views: 656 Data which I give to variable $ciste and $musica is data from tables :row of tables is EAN_kod=string, medium=string, typ=string, znacka=string, kusy=string,obal=string every this data from every... |
Forum: PHP Mar 12th, 2008 |
| Replies: 9 Views: 656 no it is meny date from tables.It is string and numbers. |
Forum: PHP Mar 12th, 2008 |
| Replies: 9 Views: 656 It dont go correctly. join $cd=$musica.$ciste; is no good. How are join it?Please help me |
Forum: PHP Mar 12th, 2008 |
| Replies: 9 Views: 656 Is it possible to make this operation? $musica = vyber_detaily_cd($EAN_kod);
$ciste = vyber_detaily_media($EAN_kod);
$cd=$musica.$ciste;
How I join this variable? $ musica and $ ciste to one... |
Forum: PHP Mar 12th, 2008 |
| Replies: 3 Views: 456 Is it possible to make this operation? $musica = vyber_detaily_cd($EAN_kod);
$ciste = vyber_detaily_media($EAN_kod);
$cd=$musica.$ciste;
How I join this variable? $ musica and $ ciste... |
Forum: PHP Mar 12th, 2008 |
| Replies: 3 Views: 456 this is code, which display basket of online shop. And I need give to var: $cd details of product which process function vyber_detaily_tovaru($EAN_kod); Thanks for your help
foreach ($kosik... |
Forum: PHP Mar 12th, 2008 |
| Replies: 3 Views: 456 hello, I have a problem : What is it?
Warning: Unable to jump to row 0 on MySQL result index 2 in c:\apache\htdocs\cd_shop\funkcie_s_databazou.php on line 899 |
Forum: PHP Mar 11th, 2008 |
| Replies: 5 Views: 552 How I select from two tables , when every tables have EAN_kod. EAN_kod is unique code and I must find everithing from this both tables. Is this code good for it?Because it find me only everything... |
Forum: PHP Mar 11th, 2008 |
| Replies: 5 Views: 552 This is no good? $query = "SELECT * FROM albumy, ciste_media WHERE albumy.EAN_kod=albumy.'$EAN_kod' and ciste_media.EAN_kod=ciste_media.'$EAN_kod'; |
Forum: PHP Mar 11th, 2008 |
| Replies: 5 Views: 552 Hello, I have problem with this:\
$conn = db_connect();
$query = "select * from albumy, ciste_media where EAN_kod='$EAN_kod'";
Is this syntax good, when I used two tables? Because when I... |
Forum: PHP Mar 10th, 2008 |
| Replies: 15 Views: 1,153 oh thank you wery much. Its good just now. |
Forum: PHP Mar 10th, 2008 |
| Replies: 15 Views: 1,153 SELECT kuzy FROM ciste_media WHERE medium='CD' AND typ='R' AND kusy= AND obal='rolka' AND znacka like '%vyraz%' ORDER BY kusy ASC |
Forum: PHP Mar 10th, 2008 |
| Replies: 15 Views: 1,153 if I selecting specific folder, it do the same. Its horrible. Is this syntax good? |
Forum: PHP Mar 10th, 2008 |
| Replies: 15 Views: 1,153 this is result select * from 'ciste_media' where CD= 'CD' and R= 'R' and 15= 15 and rolka= 'rolka' and znacka like '%verbatim%' order by kusy ASC
But this is no solution. It get the same... |
Forum: PHP Mar 10th, 2008 |
| Replies: 15 Views: 1,153 this is result select * from ciste_media where medium=CD and typ=R and kusy=15 and obal=rolka and znacka like '%verbatim%' order by kusy ASC |
Forum: PHP Mar 10th, 2008 |
| Replies: 15 Views: 1,153 <form action="hladanie_ciste_media.php" method="post">
<table border="0" cellspacing="0" cellpadding="0" align="left">
<tr>
<td>
<select name="medium">
... |
Forum: PHP Mar 10th, 2008 |
| Replies: 15 Views: 1,153 ".$medium." is selection from rolover and znacka is row from table:ciste_media |
Forum: PHP Mar 10th, 2008 |
| Replies: 15 Views: 1,153 $query = "select * from 'ciste_media' where ".$medium."= ".$medium." and ".$typ."= ".$typ."
and ".$kusy."= ".$kusy." and ".$obal."= ".$obal." and znacka like '%".$vyraz."%' order by kusy
... |