Forum: PHP Sep 19th, 2008 |
| Replies: 6 Views: 721 Should be something like this:"<a href=\"re_images/".$img."\" target=\"_blank\"><img src=\"re_images/".$img."\" alt=\"ALT TEXT\"width=\"100\" height=\"100\" border=\"1\" /></a><br />\n"; |
Forum: PHP Sep 18th, 2008 |
| Replies: 6 Views: 721 And if you're interested in making that code a little smaller:
<?php
if(!empty($a1[image])) {
$im_array = explode("|", $a1[image]);
$images = "";
if ($im_array !== false) {
foreach... |
Forum: PHP Sep 18th, 2008 |
| Replies: 8 Views: 2,137 This:<?php while($row = mysql_fetch_array($sqlresult)){ ?>Should be this:<?php while($rows = mysql_fetch_assoc($sqlresult)){ ?>Your variable was named $row and you called it later in the loop as... |
Forum: PHP Sep 18th, 2008 |
| Replies: 8 Views: 986 If you're using JavaScript to call a PHP file, then it sounds like AJAX. In which case you would have to use the DOM to display the result of the PHP script. Please show us the script you're using. |
Forum: PHP Aug 13th, 2008 |
| Replies: 10 Views: 2,863 Ah see, news to me R0b. I haven't messed with session in forever. So maybe this is what he should use.
<?php
$host = "---";
$username = "---";
$password = "---";
$db = "---";
... |
Forum: PHP Aug 13th, 2008 |
| Replies: 10 Views: 2,863 If you'd like to do it in a session variable, do this.
<?php
$host = "---";
$username = "---";
$password = "---";
$db = "---";
$tbl_name = "---"; |
Forum: PHP Aug 13th, 2008 |
| Replies: 9 Views: 2,590 Are you looking to generate your own barcodes or use ones already on products? |