- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
http://site.com/product.php?item=samsung-galaxy-s2-white
<?php
$item=$_GET["item"];
$arr=explode("-", $item, 2);
$brand=$arr[0];
$model=str_replace("-", " ", $arr[1]);
$res=mysql_query("SELECT * FROM tb_product WHERE model='".$model."'");
$kolvo=mysql_num_rows($res);
while ($row=mysql_fetch_array($res)){
$id=$row["id"];
$brand=$row["brand"];
$model=$row["model"];
}
UltraShock 12.10.2015 12:48 # +1
PDO,REQUEST_URI
gost 12.10.2015 13:16 # +2
Не смешно уже.
inkanus-gray 12.10.2015 13:51 # +2