Record not being displayed

Posted on 2007-03-26
Last Modified: 2008-03-06
Any idea as to why this field will not display the record from the db?  All of the variables on the page are dispalying except for this one.  There is nothing special about it because it is a text type.

$providerID = $_GET["providerID"];
$query = "SELECT strProviderservice, strCompanyname, strOwner, strAddress, strTown, strZipcode, strPhone, str2ndphone, strMobile, strPager, strFax, strEmail, strWebsite, strlicense, strInsured, strBonded, strHours, str24houremerg, strOtherservices, strServicearea, strInbusiness_since, strServicesoffered, strFreeestimate, strWorkguaranteed, strProvidertagline, strAd_size, strImage FROM tblAdspace WHERE providerID = " . mysql_real_escape_string($providerID);
$result = mysql_query($query) or die(mysql_error());

while ($row = mysql_fetch_array ($result)) {
$strProviderservice = $row['strProviderservice'];
$strCompanyname = $row['strCompanyname'];
$strOwner = $row['strOwner'];
$strAddress = $row['strAddress'];
$strTown = $row['strTown'];
$strZipcode = $row['strZipcode'];
$strPhone = $row['strPhone'];
$str2ndphone = $row['str2ndphone'];
$strMobile = $row['strMobile'];
$strPager = $row['strPager'];
$strFax = $row['strFax'];
$strEmail = $row['strEmail'];
$strWebsite = $row['strWebsite'];
$strLicense = $row['strLicense'];
$strInsured = $row['strInsured'];
$strBonded = $row['strBonded'];
$strHours = $row['strHours'];
$str24houremerg = $row['str24houremerg'];
$strOtherservices = $row['strOtherservices'];
$strServicearea = $row['strServicearea'];
$strInbusiness_since = $row['strInbusiness_since'];
$strServicesoffered = $row['strServicesoffered'];
$strFreeestimate = $row['strFreeestimate'];
$strWorkguaranteed = $row['strWorkguaranteed'];
$strProvidertagline = $row['strProvidertagline'];
$strAd_size = $row['strAd_size'];
$strImage = $row['strImage'];

<input type="text" size="14" value="<?= $strLicense ?>" name="strLicense"> <-- This Line
Question by:pingeyeg
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
LVL 14

Expert Comment

by:Vel Eous
ID: 18794463
Which field is not being displayed ?

Author Comment

ID: 18794494
LVL 14

Accepted Solution

Vel Eous earned 500 total points
ID: 18794505
You have a spelling error in your  $query statement:

strlicense -> strLicense

Author Comment

ID: 18794531
Holy Cow!  I can't believe I missed that.  Wow, something so small yet so big.  Thanks!

Featured Post

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Popularity Can Be Measured Sometimes we deal with questions of popularity, and we need a way to collect opinions from our clients.  This article shows a simple teaching example of how we might elect a favorite color by letting our clients vote for …
Generating table dynamically is the most common issue faced by php developers.... So it seems there is a need of an article that explains the basic concept of generating tables dynamically. It just requires a basic knowledge of html and little maths…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question