Jump to content
php.lv forumi

paliidziet iesaaceejam


genau

Recommended Posts

Gribu izvadiit saanu menuci nemot no datubaazes nosaukumus, bet nesanaak paliidziet atrast kljuudu

 

kods taads:

 

<?php

 

$dbhost="localhost";

$dbusername="root";

$dbpassword="Bri";

$dbname="bri";

 

$connect = mysql_connect($dbhost, $dbusername, $dbpassword);

$db = mysql_select_db($dbname,$connect) or die ('Could not connect: ' . mysql_error());

?> //konekcija

 

 

 

<?php

include("config.php");

$a = $_GET["id"];

$query = mysql_query ("SELECT `menu`.`menuID`, `menu`.`Name`

FROM `menu`

WHERE (`menu`.`mainbtnID` = $a)

ORDER BY `menu`.`Name` ASC

",$connect) or die ('Could not connect: ' . mysql_error());

while($row = mysql_fetch_array($query))

{

 

 

$b= $row['menu'.'menuID'];

echo $row['menu'.'menuID'] ;

echo ($b);

$c=($b[2]*10 + $b[3]);

// echo ($c);

echo $row['menu'.'menuID'];

echo ("</br>");

...

...

Link to comment
Share on other sites

×
×
  • Create New...