Skip to main content
Known Participant
September 27, 2006
Question

Weird quirk with PHP

  • September 27, 2006
  • 1 reply
  • 209 views
So I made an address book using PHP and DW8. Something strange happens when I enter an individuals name in. The persons last name is "Anderson" but I found that I only need to enter "Anders" for this error to occur:

Joe AndersPHP Notice: Undefined variable: row_companies in c:\inetpub\wwwroot\contacts\details.php on line 155

I have no problems with the dozensof other names and companies I have entered but this one gives me the issue. Any ideas?
This topic is closed to new replies. Start a new post to keep the conversation going.

1 reply

Inspiring
September 28, 2006
Eiolon wrote:
> Joe AndersPHP Notice: Undefined variable: row_companies in
> c:\inetpub\wwwroot\contacts\details.php on line 155

It means that your script is trying to use a variable called
$row_companies. Without knowing the rest of your script, it's only a
guess, but since "Joe Anders" doesn't exist, you're probably getting an
empty recordset.

--
David Powers
Adobe Community Expert
Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
http://foundationphp.com/