Подредба на таблица с изображения, код.

brad4eda

Registered
Момчета имамедин много тъп и елементарен въпрос с който немога да се справя.
Имам следния код :

PHP:
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link href="../../site_css.css" rel="stylesheet" type="text/css" />

<?php

include "conn_camcoders.php";
$user = $_GET['id'];
$sql = "SELECT * FROM users WHERE id = '$user'";
$result = @mysql_query($sql) or die(mysql_error());
while ($sql = mysql_fetch_object($result))
{
$name = $sql -> name;
$overview = $sql -> overview;
$image = $sql -> image;
$image_1 = $sql -> image_1;
$image_2 = $sql -> image_2;
$image_3 = $sql -> image_3;
$image_4 = $sql -> image_4;
$manufacturer = $sql -> manufacturer;
$model = $sql -> model;
$year = $sql -> year;
$_3D = $sql -> _3D;
$distance_between_cameras = $sql -> distance_between_cameras;
$image_sensor = $sql -> image_sensor;
$total_pixels = $sql -> total_pixels;
$effective_pixels = $sql -> effective_pixels;
$focal_length = $sql -> focal_length;
$lens_brand = $sql -> lens_brand;
$f_value = $sql -> f_value;
$optical_zoom = $sql -> optical_zoom;
$mm_film_camera_equivalent = $sql -> mm_film_camera_equivalent;
$filter_diameter = $sql -> filter_diameter;
$standard_illumination = $sql -> standard_illumination;
$min_illumination = $sql -> min_illumination;
$image_stabilizer = $sql -> image_stabilizer;
$focus = $sql -> focus;
$white_balance = $sql -> white_balance;
$shutter_speed = $sql -> shutter_speed;
$intelligent_zoom = $sql -> intelligent_zoom;
$digital_zoom = $sql -> digital_zoom;
$backlight_compensation = $sql -> backlight_compensation;
$monitor = $sql -> monitor;
$image_format = $sql -> image_format;
$image_size = $sql -> image_size;
$flash = $sql -> flash;
$other_image_info = $sql -> other_image_info;
$signal_system = $sql -> signal_system;
$video_compression = $sql -> video_compression;
$audio_compression = $sql -> audio_compression;
$microphone = $sql -> microphone;
$speaker = $sql -> speaker;
$memory_card_slot = $sql -> memory_card_slot;
$HDMI = $sql -> HDMI;
$USB = $sql -> USB;
$AV_multi = $sql -> AV_multi;
$wifi = $sql -> wifi;
$blouetooth = $sql -> blouetooth;
$other_interface_info = $sql -> other_interface_info;
$face_detection = $sql -> face_detection;
$smile_detection = $sql -> smile_detection;
$gps_image_traking = $sql -> gps_image_traking;
$wather_prof = $sql -> wather_prof;
$power_supply = $sql -> power_supply;
$power_consumption = $sql -> power_consumption;
$weight = $sql -> weight;
$dimension = $sql -> dimension;
$menu_languages = $sql -> menu_languages;
$lens_front_cap = $sql -> lens_front_cap;
$lens_rear_cap = $sql -> lens_rear_cap;
$lens_pouch = $sql -> lens_pouch;
$operating_temperature = $sql -> operating_temperature;
$operating_humidity = $sql -> operating_humidity;
$other_standard_accessories = $sql -> other_standard_accessories;
$green_certificate = $sql -> green_certificate;


}
if($user == "l3dunive_admin"){echo "Моля изберете потребител";}
else{
echo "

<table width=\"500\" height=\"230\" border=\"0\">
  <tr>
    <td width=\"104\" height=\"22\"><img src=resize.php?img=$image&max=500></td>
	
    <td width=\"248\"><b>$name<b><p> </p><b>Advertisement Place / Място за вашата реклама</b><p> </p><p> </p><p> </p><p> </p></td>
	
	<td width=\"104\" height=\"22\"><img src=resize_small.php?img=$image_1&max=100></td>
	<td width=\"104\" height=\"22\"><img src=resize_small.php?img=$image_2&max=100></td>
	<td width=\"104\" height=\"22\"><img src=resize_small.php?img=$image_3&max=100></td>
	<td width=\"104\" height=\"22\"><img src=resize_small.php?img=$image_4&max=100></td>
	
  </tr>
  <tr>
    <td>
	
<span class=\"Devices_main_style\">Overview :</span><span class=\"Devices_second_style\">$overview</span>
<br>
<span class=\"Devices_main_style\">Model :</span><span class=\"Devices_second_style\">$model</span>
<br>
<span class=\"Devices_main_style\">Year :</span><span class=\"Devices_second_style\">$year</span>
<br>
<span class=\"Devices_main_style\">3D :</span><span class=\"Devices_second_style\">$_3D</span>
<br>
<span class=\"Devices_main_style\">Distance_between_cameras :</span><span class=\"Devices_second_style\">$distance_between_cameras</span>
<br>
<span class=\"Devices_main_style\">Image_sensor :</span><span class=\"Devices_second_style\">$image_sensor</span>
<br>
<span class=\"Devices_main_style\">Total_pixels :</span><span class=\"Devices_second_style\">$total_pixels</span>
<br>
<span class=\"Devices_main_style\">Effective_pixels :</span><span class=\"Devices_second_style\">$effective_pixels</span>
<br>
<span class=\"Devices_main_style\">Focal_length :</span><span class=\"Devices_second_style\">$focal_length</span>
<br>
<span class=\"Devices_main_style\">Lens_brand :</span><span class=\"Devices_second_style\">$lens_brand</span>
<br>
<span class=\"Devices_main_style\">F_value :</span><span class=\"Devices_second_style\">$f_value</span>
<br>
<span class=\"Devices_main_style\">Optical_zoom :</span><span class=\"Devices_second_style\">$optical_zoom</span>
<br>
<span class=\"Devices_main_style\">mm_film_camera_equivalent :</span><span class=\"Devices_second_style\">$mm_film_camera_equivalent</span>
<br>
<span class=\"Devices_main_style\">Filter_diameter :</span><span class=\"Devices_second_style\">$filter_diameter</span>
<br>
<span class=\"Devices_main_style\">Standard_illumination :</span><span class=\"Devices_second_style\">$standard_illumination</span>
<br>
<span class=\"Devices_main_style\">Min_illumination :</span><span class=\"Devices_second_style\">$min_illumination</span>
<br>
<span class=\"Devices_main_style\">Image_stabilizer :</span><span class=\"Devices_second_style\">$image_stabilizer</span>
<br>
<span class=\"Devices_main_style\">Focus :</span><span class=\"Devices_second_style\">$focus</span>
<br>
<span class=\"Devices_main_style\">White_balance :</span><span class=\"Devices_second_style\">$white_balance</span>
<br>
<span class=\"Devices_main_style\">Shutter_speed :</span><span class=\"Devices_second_style\">$shutter_speed</span>
<br>
<span class=\"Devices_main_style\">Intelligent_zoom :</span><span class=\"Devices_second_style\">$intelligent_zoom</span>
<br>
<span class=\"Devices_main_style\">Digital_zoom :</span><span class=\"Devices_second_style\">$digital_zoom</span>
<br>
<span class=\"Devices_main_style\">Backlight_compensation :</span><span class=\"Devices_second_style\">$backlight_compensation</span>
<br>
<span class=\"Devices_main_style\">Monitor :</span><span class=\"Devices_second_style\">$monitor</span>
<br>
<span class=\"Devices_main_style\">Image_format :</span><span class=\"Devices_second_style\">$image_format</span>
<br>
<span class=\"Devices_main_style\">Image_size :</span><span class=\"Devices_second_style\">$image_size</span>
<br>
<span class=\"Devices_main_style\">Flash :</span><span class=\"Devices_second_style\">$flash</span>
<br>
<span class=\"Devices_main_style\">Other_image_info :</span><span class=\"Devices_second_style\">$other_image_info</span>
<br>
<span class=\"Devices_main_style\">Signal_system :</span><span class=\"Devices_second_style\">$signal_system</span>
<br>
<span class=\"Devices_main_style\">Video_compression :</span><span class=\"Devices_second_style\">$video_compression</span>
<br>
<span class=\"Devices_main_style\">Audio_compression :</span><span class=\"Devices_second_style\">$audio_compression</span>
<br>
<span class=\"Devices_main_style\">Microphone :</span><span class=\"Devices_second_style\">$microphone</span>
<br>
<span class=\"Devices_main_style\">Speaker :</span><span class=\"Devices_second_style\">$speaker</span>
<br>
<span class=\"Devices_main_style\">Memory_card_slot :</span><span class=\"Devices_second_style\">$memory_card_slot</span>
<br>
<span class=\"Devices_main_style\">HDMI :</span><span class=\"Devices_second_style\">$HDMI</span>
<br>
<span class=\"Devices_main_style\">USB :</span><span class=\"Devices_second_style\">$USB</span>
<br>
<span class=\"Devices_main_style\">AV_multi :</span><span class=\"Devices_second_style\">$AV_multi</span>
<br>
<span class=\"Devices_main_style\">WiFi :</span><span class=\"Devices_second_style\">$wifi</span>
<br>
<span class=\"Devices_main_style\">Blouetooth :</span><span class=\"Devices_second_style\">$blouetooth</span>
<br>
<span class=\"Devices_main_style\">Other_interface_info :</span><span class=\"Devices_second_style\">$other_interface_info</span>
<br>
<span class=\"Devices_main_style\">Face_detection :</span><span class=\"Devices_second_style\">$face_detection</span>
<br>
<span class=\"Devices_main_style\">Smile_detection :</span><span class=\"Devices_second_style\">$smile_detection</span>
<br>
<span class=\"Devices_main_style\">GPS_image_traking :</span><span class=\"Devices_second_style\">$gps_image_traking</span>
<br>
<span class=\"Devices_main_style\">Wather_prof :</span><span class=\"Devices_second_style\">$wather_prof</span>
<br>
<span class=\"Devices_main_style\">Power_supply :</span><span class=\"Devices_second_style\">$power_supply</span>
<br>
<span class=\"Devices_main_style\">Power_consumption :</span><span class=\"Devices_second_style\">$power_consumption</span>
<br>
<span class=\"Devices_main_style\">Weight :</span><span class=\"Devices_second_style\">$weight</span>
<br>
<span class=\"Devices_main_style\">Dimension :</span><span class=\"Devices_second_style\">$dimension</span>
<br>
<span class=\"Devices_main_style\">Menu_languages :</span><span class=\"Devices_second_style\">$menu_languages</span>
<br>
<span class=\"Devices_main_style\">Lens_front_cap :</span><span class=\"Devices_second_style\">$lens_front_cap</span>
<br>
<span class=\"Devices_main_style\">Lens_rear_cap :</span><span class=\"Devices_second_style\">$lens_rear_cap</span>
<br>
<span class=\"Devices_main_style\">Lens_pouch :</span><span class=\"Devices_second_style\">$lens_pouch</span>
<br>
<span class=\"Devices_main_style\">Operating_temperature :</span><span class=\"Devices_second_style\">$operating_temperature</span>
<br>
<span class=\"Devices_main_style\">Operating_humidity :</span><span class=\"Devices_second_style\">$operating_humidity</span>
<br>
<span class=\"Devices_main_style\">Other_standard_accessories :</span><span class=\"Devices_second_style\">$other_standard_accessories</span>
<br>
<span class=\"Devices_main_style\">Green_certificate :</span><span class=\"Devices_second_style\">$green_certificate</span>
<br>


</td>
  </tr>
</table>

";
}
?>

Въпросния код се явява изходен за една системка, от типа на тези за GSM сайтовете с описанията и характеристиките на gsm-a.

В кода от редове 82 до 92 има таблици със основното изображение и още четери по-малки по размер изображения. Тези четерите изображения искам да ги вкарам под основното изображение, да са точно под него, заедно да са, а отдясно на тях да си остане текста за рекламното поле.

Можете ли да ми преправите кода на тези редове и да вмъкнете четерите малки изображения под общото голямо?
Мъчих се, ама оспях до някъде, неможах да ги подравня и за това моля да ми помогнете:)

Дайте ми и съвет как да направя тези малките изображения като се натисне върху тях да се отваря на нова страница снимката в оригиналния и размер.
 
Айде де момчета, помогнете малко на начинаещия:)
Отворете кода с някоя програмка и цетрирайте четирите изображения под главното, че как ли не се мъчих и не успях да го вкарам да са точно под него центрирани правилно :cry:
 

Back
Горе