本文整理汇总了PHP中connect::getcompany方法的典型用法代码示例。如果您正苦于以下问题:PHP connect::getcompany方法的具体用法?PHP connect::getcompany怎么用?PHP connect::getcompany使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类connect
的用法示例。
在下文中一共展示了connect::getcompany方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1:
</select>
</label>
</div>
<div class="softright">
<label>
<input type="submit" name="Submit" value="Submit" />
</label>
</div>
</form>
</dd>
</dl>
<div id="body">
<div class="inner">
<?php
if ($iname != '') {
$ccode = $obj->getcompany($iname);
$company = $obj->companyname($ccode);
$img = $obj->getimage($iname);
$pri = $obj->getprice($iname);
$dis = $obj->getdiscount($iname);
$war = $obj->getwarranty($iname);
$disp = $obj->getdispsize($iname);
?>
<div class="leftbox">
<h3><?php
echo $company;
?>
<?php
echo $iname;
?>
</h3>
示例2: connect
include 'lib/connect.php';
$obj = new connect();
$mid = '';
$m_id = '';
if (isset($_POST['cat'])) {
$mid = $_POST['cat'];
}
if (isset($_GET['cat'])) {
$m_id = $_GET['cat'];
}
$mname = '';
if (isset($_GET['mname'])) {
$mname = $_GET['mname'];
}
$price = $obj->getprice($mname);
$company = $obj->getcompany($mname);
$img = $obj->getimage($mname);
$count = $obj->getcount();
$tot_item = 0;
$tot_price = 0;
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>E- Shop</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="css/style.css" rel="stylesheet" type="text/css" />
<script language="javascript" src="js/script.js">
</script>
<style type="text/css">
示例3: connect
include 'lib/connect.php';
$obj = new connect();
$mid = '';
$m_id = '';
if (isset($_POST['cat'])) {
$mid = $_POST['cat'];
}
if (isset($_GET['cat'])) {
$m_id = $_GET['cat'];
}
$mname = '';
if (isset($_GET['mname'])) {
$mname = $_GET['mname'];
}
$price = $obj->getprice($mname);
$company = $obj->getcompany($mname);
$company_name = $obj->companyname($company);
$img = $obj->getimage($mname);
$count = $obj->getcount();
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>E- Shop</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="css/style.css" rel="stylesheet" type="text/css" />
<script language="javascript" src="js/script.js">
</script>
<style type="text/css">
<!--