?
Solved

Record not being displayed

Posted on 2007-03-26
4
Medium Priority
?
204 Views
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
0
Comment
Question by:pingeyeg
[X]
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
4 Comments
 
LVL 14

Expert Comment

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

Author Comment

by:pingeyeg
ID: 18794494
strLicense
0
 
LVL 14

Accepted Solution

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


strlicense -> strLicense
0
 
LVL 1

Author Comment

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

Featured Post

WordPress Tutorial 4: Recommended Plugins

Now that you have WordPress installed, understand the interface, and know how to install new parts, let’s take a look at our recommended plugins.

Question has a verified solution.

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

Foreword (July, 2015) Since I first wrote this article, years ago, a great many more people have begun using the internet.  They are coming online from every part of the globe, learning, reading, shopping and spending money at an ever-increasing ra…
This article discusses how to create an extensible mechanism for linked drop downs.
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
The viewer will learn how to dynamically set the form action using jQuery.
Suggested Courses

771 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