-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstringer_details.php
57 lines (48 loc) · 1.38 KB
/
stringer_details.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
<?php
$title="Stringer Details";
$back="Stringers";
include("head.php");
if (isset($_GET['snm'])) {
$snm=$_GET['snm'];
} else {
header("location: stringers.php");
}
if (strlen($snm) < 1 ) {
header("location: stringers.php");
}
$get_sql ="SELECT * FROM tbl_stringers WHERE stringer_name = $snm";
$get_results = mysql_query($get_sql,$cn) or die(mysql_error());
$get_row = mysql_fetch_array($get_results);
$area = $get_row['stringer_area'];
$name = $get_row['stringer_name'];
$contact = $get_row['stringer_contact'];
$email = $get_row['stringer_email'];
$strings = $get_row['stringer_strings'];
$price = $get_row['stringer_price'];
$time = $get_row['stringer_time'];
$website = $get_row['stringer_website'];
$background = $get_row['stringer_background'];
print '<ul class="rounded"><li>'.$name.'</li></ul>';
print '<ul class="rounded"><li>'.$area.'</li>';
print '<li>'.str_replace(" or ","</li><li>",$contact).'</li>';
if (strlen($email) > 0) {
print '<li>'.$email.'</li>';
}
if (strlen($strings) > 0) {
print '<li>'.$strings.'</li>';
}
if (strlen($price) > 0) {
print '<li>'.$price.'</li>';
}
if (strlen($time) > 0) {
print '<li>'.$time.'</li>';
}
if (strlen($website) > 0) {
print '<li>'.$website.'</li>';
}
if (strlen($background) > 0) {
print '<li>'.$background.'</li>';
}
print '</ul>';
include("foot.php");
?>