Jump to content

Help with concatination and proper code layout


snowdog

Recommended Posts

I have to display 4 images in a table. The images are held in a directory structure that goes like this:

 

franchises\franchise_id_1\lotImages\dealer_id_1\lot_id_1\wheelFL.jpeg Each 1 is actually a variable that comes from the database and depends on what dealer and franchise is logged in.

 

Here is how I would write it: I can only assume it is not the proper way to do it. Any suggestions on the proper way to write something like this?

 

<?php
echo("<tr><td> $run['vinNumber'] </td><td> $run['carYear']  $nbsp; $run['carModel'] </td><td><img src='franchises/franchise_id_."$franchise_id"./lotImages/dealer_id_."$dealer_id"./lot_id."$run['id']".wheelFL.jpeg'></td></tr>");
?>

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.