The PHP Group PHP Logo

Related Topics:

Anonymous Posted on Jan 25, 2010

PHP/SQL Problem Number: "); echo $row["Number"]; echo (" First Name: "); echo $row["First_Name"]; echo (" Middle: "); echo $row["Middle"]; echo (" Last Name: "); echo $row["Last_Name"]; echo (" Street Address: "); echo $row["Street_Address"]; echo (" City: "); echo $row["City"]; echo (" State: "); echo $row["State"]; echo (" Email: "); echo $row["email"]; echo (" How...hear?: "); echo $row["how_hear"]; echo (" Which Location?: "); echo $row["Which_location"]; echo (" "); } } else { echo ("The password you have entered does not match. Please double check. If you continue experiencing this, please email brodie@mydomain.com"); } echo ("If you encounter any problems, please email brodie@mydomain.com"); ?> This yields no results when I run the script through IE or Firefox. The source code that results is only the HTML and last echo statement (contact brodie...etc). There is data that matches the search parameters I'm using, I've confirmed it from the MySQL command line (27 results, just fyi). Any ideas why it is not returning information to the web browser? I have another php script that works fine, it is identical to this one except in the working one (that yields all results), $query = "Select * from Clients order by number";

1 Answer

Anonymous

Level 2:

An expert who has achieved level 2 by getting 100 points

MVP:

An expert that got 5 achievements.

Novelist:

An expert who has written 50 answers of more than 400 characters.

Governor:

An expert whose answer got voted for 20 times.

  • Expert 96 Answers
  • Posted on Feb 06, 2010
Anonymous
Expert
Level 2:

An expert who has achieved level 2 by getting 100 points

MVP:

An expert that got 5 achievements.

Novelist:

An expert who has written 50 answers of more than 400 characters.

Governor:

An expert whose answer got voted for 20 times.

Joined: Feb 03, 2010
Answers
96
Questions
0
Helped
25861
Points
135

Have you read the dataset in (i.e $row)?
you would require some sort of select statement to read the data frm sql into a dataset before yopu can read and display each record in the dataset.

i gather you may be new to sql statements. the bottom commect $query.... is reading the dataset into $query, the one you have issues with needs code that reads a record into $row

Add Your Answer

×

Uploading: 0%

my-video-file.mp4

Complete. Click "Add" to insert your video. Add

×

Loading...
Loading...

300 views

Ask a Question

Usually answered in minutes!

Top The PHP Group Computers & Internet Experts

Rob Hill
Rob Hill

Level 3 Expert

1483 Answers

Nikole Brown
Nikole Brown

Level 2 Expert

124 Answers

Syed Bilal
Syed Bilal

Level 3 Expert

252 Answers

Are you a The PHP Group Computer and Internet Expert? Answer questions, earn points and help others

Answer questions

Manuals & User Guides

Loading...