0
我看了,但無法找到我需要的答案。php爆炸mysql行
我想在包含多個橫幅文件名的mysql中爆炸一行。
<?php
$str = 'one|two|three|four';
// positive limit
print_r(explode('|', $str, 2));
// negative limit (since PHP 5.1)
print_r(explode('|', $str, -1));
?>
我從PHP教程網站獲取該代碼。是否有可能使用某種形式的echo命令在我的mysql行中打印文件名。
例如,這並不工作
<?php include '../connect/dbseries.php' ?>
<?php include 'Sbarray.php' ?>
<a href="series.php">back</a>
<?php
$str = print' . $row[Bannerfilenames] .';
// positive limit
print_r(explode('|', $str, 2));
?>
在此先感謝您的幫助 亞倫
$ str = print'。 $ row [Bannerfilenames]。'; <---檢查那條線...... – SmasherHell
回來。 $ row [Bannerfilenames] .Array([0] => 1)就是它在我的網站上顯示的內容。即時通訊尋找的是解決這個錯誤的方法。有任何想法嗎? –