473,246 Members | 1,848 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,246 software developers and data experts.

Strange bug (?), 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
2 1594

Uzytkownik "krunkelgarten" <kr***********@hotmail.com> napisal w wiadomosci
news:87**************************@posting.google.c om...
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.


A syntax error in ondernemers/fashion/maxin/info.php it looks like.
Jul 17 '05 #2
Yes it was, thanx a lot.
A bit sloppy of me..

Thanks again!

Greetings Krunkelgarten
Jul 17 '05 #3

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

Similar topics

1
by: Ms.net | last post by:
I am writing application using Access Database.... Everything work on my PC. update, add,or delete. Since the application is multiuser, i put the database on network..... Application start...
2
by: Sammy | last post by:
Everyone, I have this very strange problem and we spent weeks to figure out what's going on. Let me outline the configuration of our system: 1. .NET Framework v. 1.0.3705 2. SQL 2000 SP 3...
1
by: Martin Feuersteiner | last post by:
Dear Group I'm having a very weird problem. Any hints are greatly appreciated. I'm returning two values from a MS SQL Server 2000 stored procedure to my Webapplication and store them in...
5
by: franz | last post by:
hello, it's hard to me explain you this kind of error i have from .net. i developed a script in asp.net with VS.NET. in VS.NET (code behind) it's work perfect. now i copied the code in an aspx...
11
by: Mike C# | last post by:
Hi all, I keep getting a strange error and can't pin it down. The message is: This application has requested the Runtime to terminate it in an unusual way. Please contact the application's...
31
by: Simply_Red | last post by:
i'm sorry i posted this in other groupes, and i didn't see it, and as this group is most actif, i repost it here, and sorry for mutliposting: Hi, i'm using VC6, i have this declaration: ...
16
by: Victor | last post by:
I have a strange problem in my website. I configured my website to run under 2 worker processes. (web garden enabled). and I stored my user information in the current httpcontext(like...
14
by: blumen | last post by:
Hi all, I'm a newbie in VB.Net Programming.. Hope that some of you can help me to solve this.. I'm working out to read,parse and save textfile into SQL Server. The textfile contains thousands...
3
by: Tomasz J | last post by:
Hello Developers, I have a control derived from System.Web.UI.WebControls.WebControl. Control has this property: public string Value { set { _value = value; } get { return _value; }
1
by: shaneal | last post by:
Hello all, I've been trying to learn some javascript and I ran into a strange scoping problem I was hoping someone here could help with. I have a fair amount of experience with functional...
0
by: abbasky | last post by:
### Vandf component communication method one: data sharing ​ Vandf components can achieve data exchange through data sharing, state sharing, events, and other methods. Vandf's data exchange method...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
Git
by: egorbl4 | last post by:
Скачал я git, хотел начать настройку, а там вылезло вот это Что это? Что мне с этим делать? ...
1
by: davi5007 | last post by:
Hi, Basically, I am trying to automate a field named TraceabilityNo into a web page from an access form. I've got the serial held in the variable strSearchString. How can I get this into the...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: Aftab Ahmad | last post by:
So, I have written a code for a cmd called "Send WhatsApp Message" to open and send WhatsApp messaage. The code is given below. Dim IE As Object Set IE =...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...

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.