( ! ) Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/lib/menu/GKBase.class.php on line 114
Call Stack
#TimeMemoryFunctionLocation
10.0016413824{main}( ).../index.php:0
20.08394264256Joomla\CMS\Application\SiteApplication->execute( ).../index.php:49
30.308013114984Joomla\CMS\Application\SiteApplication->render( ).../CMSApplication.php:202
40.308113114928Joomla\CMS\Application\SiteApplication->render( ).../SiteApplication.php:778
50.308113115304Joomla\CMS\Document\HtmlDocument->parse( ).../CMSApplication.php:1030
60.308113115304Joomla\CMS\Document\HtmlDocument->_fetchTemplate( ).../HtmlDocument.php:545
70.308213115400Joomla\CMS\Document\HtmlDocument->_loadTemplate( ).../HtmlDocument.php:730
80.308513153640require( '/var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/component.php' ).../HtmlDocument.php:668
90.312313446000GKTemplate->__construct( ).../component.php:31
100.318013587520GKTemplateMenu->getMenuType( ).../gk.framework.php:84
110.318613631488require_once( '/var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/lib/menu/GKMenu.php' ).../helper.menu.php:19

( ! ) Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/lib/menu/GKHandheld.php on line 76
Call Stack
#TimeMemoryFunctionLocation
10.0016413824{main}( ).../index.php:0
20.08394264256Joomla\CMS\Application\SiteApplication->execute( ).../index.php:49
30.308013114984Joomla\CMS\Application\SiteApplication->render( ).../CMSApplication.php:202
40.308113114928Joomla\CMS\Application\SiteApplication->render( ).../SiteApplication.php:778
50.308113115304Joomla\CMS\Document\HtmlDocument->parse( ).../CMSApplication.php:1030
60.308113115304Joomla\CMS\Document\HtmlDocument->_fetchTemplate( ).../HtmlDocument.php:545
70.308213115400Joomla\CMS\Document\HtmlDocument->_loadTemplate( ).../HtmlDocument.php:730
80.308513153640require( '/var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/component.php' ).../HtmlDocument.php:668
90.312313446000GKTemplate->__construct( ).../component.php:31
100.320613754352GKTemplateMenu->getMenuType( ).../gk.framework.php:85
php 表格 foreach 显示 select 结果
Logo
Print this page

php 表格 foreach 显示 select 结果

<?php
$con = mysql_connect("localhost","tdg","tdg");
if (!$con)
  {
  die('Could not connect: ' . mysql_error());
  }

mysql_select_db("tdg", $con);

$result = mysql_query("SELECT * FROM  `client`");
?>

<table border="2">
    <?php while ($row = mysql_fetch_assoc($result)): ?>
    <tr>
        <?php foreach($row as $key=>$value) {   
            echo "<td>$key: $value</td>\n "; 
        } ?> 
    </tr>          
    <?php endwhile; ?>
</table>
<?php
mysql_close($con);
?>
Last modified onMonday, 29 April 2013 13:18

( ! ) Warning: count(): Parameter must be an array or an object that implements Countable in /var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/com_k2/templates/default/item.php on line 169
Call Stack
#TimeMemoryFunctionLocation
10.0003414296{main}( ).../index.php:0
20.08664264760Joomla\CMS\Application\SiteApplication->execute( ).../index.php:49
30.08664264760Joomla\CMS\Application\SiteApplication->doExecute( ).../CMSApplication.php:196
40.295811455792Joomla\CMS\Application\SiteApplication->dispatch( ).../SiteApplication.php:233
50.296611480056Joomla\CMS\Component\ComponentHelper::renderComponent( ).../SiteApplication.php:194
60.297411535384Joomla\CMS\Component\ComponentHelper::executeComponent( ).../ComponentHelper.php:377
70.297711562784require_once( '/var/www/vhosts/shan.info/httpdocs/components/com_k2/k2.php' ).../ComponentHelper.php:402
80.306511962416K2ControllerItem->execute( ).../k2.php:64
90.306511962416K2ControllerItem->display( ).../BaseController.php:710
100.318212613120K2ControllerItem->display( ).../item.php:78
110.318212613120K2ControllerItem->display( ).../controller.php:19
120.322512984160Joomla\CMS\Cache\Controller\ViewController->get( ).../BaseController.php:663
130.323813004528K2ViewItem->display( ).../ViewController.php:102
140.412015929296K2ViewItem->display( ).../view.html.php:742
150.412015929296K2ViewItem->loadTemplate( ).../HtmlView.php:230
160.414116102232include( '/var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/com_k2/templates/default/item.php' ).../HtmlView.php:701
  • Rate this item
    (0 votes)
  • Published in PHP
  • Read 1584 times

( ! ) Notice: Only variables should be assigned by reference in /var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/com_k2/templates/default/item.php on line 478
Call Stack
#TimeMemoryFunctionLocation
10.0003414296{main}( ).../index.php:0
20.08664264760Joomla\CMS\Application\SiteApplication->execute( ).../index.php:49
30.08664264760Joomla\CMS\Application\SiteApplication->doExecute( ).../CMSApplication.php:196
40.295811455792Joomla\CMS\Application\SiteApplication->dispatch( ).../SiteApplication.php:233
50.296611480056Joomla\CMS\Component\ComponentHelper::renderComponent( ).../SiteApplication.php:194
60.297411535384Joomla\CMS\Component\ComponentHelper::executeComponent( ).../ComponentHelper.php:377
70.297711562784require_once( '/var/www/vhosts/shan.info/httpdocs/components/com_k2/k2.php' ).../ComponentHelper.php:402
80.306511962416K2ControllerItem->execute( ).../k2.php:64
90.306511962416K2ControllerItem->display( ).../BaseController.php:710
100.318212613120K2ControllerItem->display( ).../item.php:78
110.318212613120K2ControllerItem->display( ).../controller.php:19
120.322512984160Joomla\CMS\Cache\Controller\ViewController->get( ).../BaseController.php:663
130.323813004528K2ViewItem->display( ).../ViewController.php:102
140.412015929296K2ViewItem->display( ).../view.html.php:742
150.412015929296K2ViewItem->loadTemplate( ).../HtmlView.php:230
160.414116102232include( '/var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/com_k2/templates/default/item.php' ).../HtmlView.php:701
Template Design © Joomla Templates | GavickPro. All rights reserved.