( ! ) 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.0019415640{main}( ).../index.php:0
20.10224720736Joomla\CMS\Application\SiteApplication->execute( ).../index.php:49
30.522817252272Joomla\CMS\Application\SiteApplication->render( ).../CMSApplication.php:202
40.523017252328Joomla\CMS\Application\SiteApplication->render( ).../SiteApplication.php:778
50.523117252704Joomla\CMS\Document\HtmlDocument->parse( ).../CMSApplication.php:1030
60.523117252704Joomla\CMS\Document\HtmlDocument->_fetchTemplate( ).../HtmlDocument.php:545
70.523317252800Joomla\CMS\Document\HtmlDocument->_loadTemplate( ).../HtmlDocument.php:730
80.523717292720require( '/var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/component.php' ).../HtmlDocument.php:668
90.528417589992GKTemplate->__construct( ).../component.php:31
100.536217774376GKTemplateMenu->getMenuType( ).../gk.framework.php:84
110.537117819232require_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.0019415640{main}( ).../index.php:0
20.10224720736Joomla\CMS\Application\SiteApplication->execute( ).../index.php:49
30.522817252272Joomla\CMS\Application\SiteApplication->render( ).../CMSApplication.php:202
40.523017252328Joomla\CMS\Application\SiteApplication->render( ).../SiteApplication.php:778
50.523117252704Joomla\CMS\Document\HtmlDocument->parse( ).../CMSApplication.php:1030
60.523117252704Joomla\CMS\Document\HtmlDocument->_fetchTemplate( ).../HtmlDocument.php:545
70.523317252800Joomla\CMS\Document\HtmlDocument->_loadTemplate( ).../HtmlDocument.php:730
80.523717292720require( '/var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/component.php' ).../HtmlDocument.php:668
90.528417589992GKTemplate->__construct( ).../component.php:31
100.539517947560GKTemplateMenu->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.0019415640{main}( ).../index.php:0
20.10224720736Joomla\CMS\Application\SiteApplication->execute( ).../index.php:49
30.10224720736Joomla\CMS\Application\SiteApplication->doExecute( ).../CMSApplication.php:196
40.349912448920Joomla\CMS\Application\SiteApplication->dispatch( ).../SiteApplication.php:233
50.351012473264Joomla\CMS\Component\ComponentHelper::renderComponent( ).../SiteApplication.php:194
60.352212528592Joomla\CMS\Component\ComponentHelper::executeComponent( ).../ComponentHelper.php:377
70.352512557416require_once( '/var/www/vhosts/shan.info/httpdocs/components/com_k2/k2.php' ).../ComponentHelper.php:402
80.363912992824K2ControllerItem->execute( ).../k2.php:64
90.363912992824K2ControllerItem->display( ).../BaseController.php:710
100.377513718024K2ControllerItem->display( ).../item.php:78
110.377513718024K2ControllerItem->display( ).../controller.php:19
120.383814114392Joomla\CMS\Cache\Controller\ViewController->get( ).../BaseController.php:663
130.401114134760K2ViewItem->display( ).../ViewController.php:102
140.514817201120K2ViewItem->display( ).../view.html.php:742
150.514817201120K2ViewItem->loadTemplate( ).../HtmlView.php:230
160.517717381320include( '/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 1588 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.0019415640{main}( ).../index.php:0
20.10224720736Joomla\CMS\Application\SiteApplication->execute( ).../index.php:49
30.10224720736Joomla\CMS\Application\SiteApplication->doExecute( ).../CMSApplication.php:196
40.349912448920Joomla\CMS\Application\SiteApplication->dispatch( ).../SiteApplication.php:233
50.351012473264Joomla\CMS\Component\ComponentHelper::renderComponent( ).../SiteApplication.php:194
60.352212528592Joomla\CMS\Component\ComponentHelper::executeComponent( ).../ComponentHelper.php:377
70.352512557416require_once( '/var/www/vhosts/shan.info/httpdocs/components/com_k2/k2.php' ).../ComponentHelper.php:402
80.363912992824K2ControllerItem->execute( ).../k2.php:64
90.363912992824K2ControllerItem->display( ).../BaseController.php:710
100.377513718024K2ControllerItem->display( ).../item.php:78
110.377513718024K2ControllerItem->display( ).../controller.php:19
120.383814114392Joomla\CMS\Cache\Controller\ViewController->get( ).../BaseController.php:663
130.401114134760K2ViewItem->display( ).../ViewController.php:102
140.514817201120K2ViewItem->display( ).../view.html.php:742
150.514817201120K2ViewItem->loadTemplate( ).../HtmlView.php:230
160.517717381320include( '/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.