joennika214
New Member
- Messages
- 13
- Reaction score
- 0
- Points
- 0
Good day sir.. im wondering why cant the pictures from my site wont appear in the page online but when in my computer its good. hers the code.
include('/home/joennika/public_html/db_connection/Global_Variables.php');
/* Connects to the systems database*/
$connection = mysql_connect($host,$user,$password) or die(mysql_error());
mysql_select_db($database,$connection) or die(mysql_error());
/* Select all categories from PetType table */
$query = 'select * from tbl_news order by date_made desc limit 1';
$result = mysql_query($query) or die ('Couldn’t execute query.');
while ($newArray = mysql_fetch_array($result))
{
// give a name to the fields
if (strlen($newArray['Body']) > 290)
{
$v_Body= substr($newArray['Body'],0,289);
}
else
{
$v_Body = $newArray['Body'];
}
$v_Date_Made = $newArray['Date_Made'];
$v_Title = $newArray['Title'];
}
$query = 'select * from tbl_softwares where use_number >0 order by Use_Number';
$result = mysql_query($query) or die ('Couldn’t execute query.');
$counter=0;
while ($newArray = mysql_fetch_array($result))
{
// give a name to the fields
$var_image_path[$counter]=substr($newArray['image_small'],1,strlen($newArray['image_small']));
$var_image_title[$counter]=$newArray["Title"];
$var_image_pk[$counter]=$newArray["PK"];
$counter+=1;
}
?>
here where i insert the image
<div id="leftworkPan">
<ul>
<li>
<img src="<?php echo $var_image_path[0] ?>" alt="<?php $var_image_title[0] ?>" width="109" height="105"
align="top" title="<?php $var_image_title[0] ?>" /><a href="frm_about.php?ID=<?php echo $var_image_pk[0]; ?>">view</a></li>
<li class="middle"> </li>
<li> <img src="<?php echo $var_image_path[1] ?>" alt="<?php $var_image_title[1] ?>" width="109"
height="105" align="top" title="<?php $var_image_title[1] ?>" /><a href="frm_about.php?ID=<?php echo $var_image_pk[1]; ?>">view</a></li>
<li><img src="<?php echo $var_image_path[2] ?>" alt="<?php $var_image_title[2] ?>" width="109"
height="105" align="top" title="<?php $var_image_title[2] ?>" /><a href="frm_about.php?ID=<?php echo $var_image_pk[2]; ?>">view</a></li>
<li class="middle"> </li>
<li> <img src="<?php echo $var_image_path[3] ?>" alt="<?php $var_image_title[3] ?>" width="109"
height="105" align="top" title="<?php $var_image_title[3] ?>" /><a href="frm_about.php?ID=<?php echo $var_image_pk[3]; ?>">view</a></li>
</ul>
</div>
Heres my site http://joebetsoft.x10hosting.com/
image path : /images/System/Products_pics (i also tried /public_html/images/System/Products_pics
the image wont appear.. but in my computer it shows.. also when i goto another pages like "NEWS" and others the server says i cant find the page even though the page is on my directory.
include('/home/joennika/public_html/db_connection/Global_Variables.php');
/* Connects to the systems database*/
$connection = mysql_connect($host,$user,$password) or die(mysql_error());
mysql_select_db($database,$connection) or die(mysql_error());
/* Select all categories from PetType table */
$query = 'select * from tbl_news order by date_made desc limit 1';
$result = mysql_query($query) or die ('Couldn’t execute query.');
while ($newArray = mysql_fetch_array($result))
{
// give a name to the fields
if (strlen($newArray['Body']) > 290)
{
$v_Body= substr($newArray['Body'],0,289);
}
else
{
$v_Body = $newArray['Body'];
}
$v_Date_Made = $newArray['Date_Made'];
$v_Title = $newArray['Title'];
}
$query = 'select * from tbl_softwares where use_number >0 order by Use_Number';
$result = mysql_query($query) or die ('Couldn’t execute query.');
$counter=0;
while ($newArray = mysql_fetch_array($result))
{
// give a name to the fields
$var_image_path[$counter]=substr($newArray['image_small'],1,strlen($newArray['image_small']));
$var_image_title[$counter]=$newArray["Title"];
$var_image_pk[$counter]=$newArray["PK"];
$counter+=1;
}
?>
here where i insert the image
<div id="leftworkPan">
<ul>
<li>
<img src="<?php echo $var_image_path[0] ?>" alt="<?php $var_image_title[0] ?>" width="109" height="105"
align="top" title="<?php $var_image_title[0] ?>" /><a href="frm_about.php?ID=<?php echo $var_image_pk[0]; ?>">view</a></li>
<li class="middle"> </li>
<li> <img src="<?php echo $var_image_path[1] ?>" alt="<?php $var_image_title[1] ?>" width="109"
height="105" align="top" title="<?php $var_image_title[1] ?>" /><a href="frm_about.php?ID=<?php echo $var_image_pk[1]; ?>">view</a></li>
<li><img src="<?php echo $var_image_path[2] ?>" alt="<?php $var_image_title[2] ?>" width="109"
height="105" align="top" title="<?php $var_image_title[2] ?>" /><a href="frm_about.php?ID=<?php echo $var_image_pk[2]; ?>">view</a></li>
<li class="middle"> </li>
<li> <img src="<?php echo $var_image_path[3] ?>" alt="<?php $var_image_title[3] ?>" width="109"
height="105" align="top" title="<?php $var_image_title[3] ?>" /><a href="frm_about.php?ID=<?php echo $var_image_pk[3]; ?>">view</a></li>
</ul>
</div>
Heres my site http://joebetsoft.x10hosting.com/
image path : /images/System/Products_pics (i also tried /public_html/images/System/Products_pics
the image wont appear.. but in my computer it shows.. also when i goto another pages like "NEWS" and others the server says i cant find the page even though the page is on my directory.