473,320 Members | 2,088 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,320 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 1596

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: 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: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.