473,385 Members | 1,707 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

BIG PROBLEM!! Please help

Hi there, I've developed a site for a group of companies.
And they wanted their adresses etc. on the site.
The site is http://fmf.centrumweertpromotion.nl/

When you click on the 2nd thing from the left in the menu,
and then click 'fashion' you get a view of all the involved
companies. To keep it easy to update, i made a folder for every
company with their logo and a info.php-file with their address
etc. in it. The BIG PROBLEM is that i get "marienel" twice though
the "marienel" should be the address of Maxin, the logo is the right
one, but the address is wrong. The info.php in both of those folders
is right.

I use the next code to sort thhings out:

if ($Page=="OndernemersType"){

## start gallery stuff
function GetCompany()
{
global $Type;
$the_array = Array();
$handle = opendir("./ondernemers/$Type/");

## define what isn't a gallery
while (false !== ($file = readdir($handle))) {
if ($file != "." && $file != "..") { /* as descripted below: these
"files" will not be added to the array */
$the_array[] = $file;
}
}

closedir($handle);

foreach ($the_array as $Company) {

include_once ("ondernemers/$Type/$Company/info.php");

echo "<img src=\"img/spacer.gif\" width=\"1\" height=\"10\">
<table width=\"370\" height=\"100\" border=\"0\" cellpadding=\"0\"
cellspacing=\"0\">
<tr>
<td width=\"1\" height=\"1\" bgcolor=\"#AEAEAE\"><img
src=\"./img/spacer.gif\" width=\"1\" height=\"1\" border=\"0\"></td>
<td height=\"1\" bgcolor=\"#AEAEAE\"><img
src=\"./img/spacer.gif\" width=\"100%\" height=\"1\"
border=\"0\"></td>
<td width=\"1\" height=\"1\" bgcolor=\"#AEAEAE\"><img
src=\"./img/spacer.gif\" width=\"1\" height=\"1\" border=\"0\"></td>
</tr>
<tr>
<td width=\"1\" height=\"1\" bgcolor=\"#AEAEAE\"><img
src=\"./img/spacer.gif\" width=\"1\" height=\"100%\"
border=\"0\"></td>
<td>
<table width=\"350\" border=\"0\" cellpadding=\"0\"
cellspacing=\"3\">
<tr>
<td rowspan=\"5\" width=\"100\" height=\"100\"
bordercolor=\"FFFFFF\" ><img
src=\"./ondernemers/$Type/$Company/logo.gif\" width=\"90\"
height=\"90\" title=\"$Name\" border=\"0\"></td>
<td align=\"right\" valign=\"middle\" width=\"10\"
class=\"subtext\" bordercolor=\"FFFFFF\">onderneming:</td>
<td class=\"bodytitle\" bordercolor=\"FFFFFF\">$Name</td>
</tr>
<tr>
<td align=\"right\" valign=\"top\" class=\"subtext\"
height=\"11\" bordercolor=\"FFFFFF\">adres:</td>
<td rowspan=\"2\" bordercolor=\"FFFFFF\" class=\"bodytext\"
valign=\"top\">$Adress<br>
$Postal<br>
$Place</td>
</tr>
<tr>
<td align=\"right\" valign=\"middle\" class=\"subtext\"
bordercolor=\"FFFFFF\"></td>
</tr>
<tr>
<td align=\"right\" valign=\"middle\" class=\"subtext\"
bordercolor=\"FFFFFF\">website:</td>
<td bordercolor=\"FFFFFF\"><a href=\"$SiteAdress\"
class=\"bodylink\" onFocus=\"this.blur()\"
target=\"_blank\">$Site</a></td>
</tr>
<tr>
<td align=\"right\" valign=\"middle\" class=\"subtext\"
bordercolor=\"FFFFFF\">email:</td>
<td bordercolor=\"FFFFFF\"><a href=\"mailto:$CompanyEmail\"
class=\"bodylink\" onFocus=\"this.blur()\">$Email</a></td>
</tr>
</table>
</td>
<td width=\"1\" height=\"1\" bgcolor=\"#AEAEAE\"><img
src=\"./img/spacer.gif\" width=\"1\" height=\"100%\"
border=\"0\"></td>
</tr>
<tr>
<td width=\"1\" height=\"1\" bgcolor=\"#AEAEAE\"><img
src=\"./img/spacer.gif\" width=\"1\" height=\"1\" border=\"0\"></td>
<td height=\"1\" bgcolor=\"#AEAEAE\"><img
src=\"./img/spacer.gif\" width=\"100%\" height=\"1\"
border=\"0\"></td>
<td width=\"1\" height=\"1\" bgcolor=\"#AEAEAE\"><img
src=\"./img/spacer.gif\" width=\"1\" height=\"1\" border=\"0\"></td>
</tr>
</table>";
}
};
echo "<table border=\"0\" cellspacing=\"0\" width=\"100%\"
cellpadding=\"0\"><tr>
<td height=\"20\" align=\"left\" valign=\"top\"><img
src=\"img/spacer.gif\" width=\"1\" height=\"20\"></td>
</tr>
<td>
<span class=\"bodytext\">
Onderstaande ondernemers nemen deel aan <i>food meets fashion</i> :
</span></td>
</tr>
<tr><td>";
GetCompany();
echo "</td></tr></table>";};
REALLY HOPE SOMEONE CAN HELP ME OUT!!!

greetings, krunkelgarten
Jul 17 '05 #1
0 1244

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

15
by: Holly | last post by:
I'm trying to get this page to look the same in Netscape and IE. I have a box that says 'Upcoming Events' on the lower left of the page. It's supposed to have a gray background, but in NS 4.x it...
1
by: Hui | last post by:
Hi gurus, I'm having data conversion (marshalling) problems with VB.NET DLL calling a old C DLL. The problem is that when the return type is a Long, I'm getting some garbage large number. eg....
15
by: Alfonso Morra | last post by:
Hi, I have some code from an example, that I want to retrofit into my project. The code from the example has the following line: SharedAppenderPtr myAppender( new...
25
by: bruce.james.lee | last post by:
hi i have a problem with integer subtraction in C. printf("%d", c < (a - b)); a is got from a #define and is 0x80000000 and b is got from input and is also 0x80000000. c is ffffffff (-1). Now,...
4
by: Madhu Gopinathan | last post by:
Hi All, I am faced with a horrible hang problem. I have a COM exe server that executes some tasks. The task execution manager is a thread that manages the pool of threads, which is 4 per processor....
1
by: Simon Harvey | last post by:
Hi, I'm hoping someone can help me witht he following problem: I have a fairly simple page that has a sort form and a button for adding the forms details to an arraylist. When the button is...
4
by: Jeff User | last post by:
Hi I tryed to solve this problem over in the framework.asp group, but still am having trouble. Hope someone here can help. using .net 1.1, VS 2003 and C# I have an asp.DataGrid control with a...
3
by: gauravkg via DotNetMonster.com | last post by:
Hi i have a problem I have a product product_name=taj Mahal product_id=111 i and different users will be putting reviews title and review description. this is the following xml file i...
1
by: rxgmoral | last post by:
dll problem,help me:) i create dll project ,the dll is Use MFC in a Static Library i hope exe call ListCtrl class from dll ==================DLL====================...
8
by: Dhananjay | last post by:
hello everyone Do you have any information how to generate a tool using .net which is used to translate the web page contents to html format. Plz reply me asap Thanks in advance Dhananjay
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.