Solved

Record not being displayed

Posted on 2007-03-26
4
196 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
  • 2
  • 2
4 Comments
 
LVL 14

Expert Comment

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

Author Comment

by:pingeyeg
ID: 18794494
strLicense
0
 
LVL 14

Accepted Solution

by:
Tchuki earned 500 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

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Introduction Many web sites contain image galleries; a common design for these galleries includes a page with a collection of thumbnail images.  You can click on each of the thumbnail images to see the larger version of the image.  This is easily i…
Consider the following scenario: You are working on a website and make something great - something that lets the server work with information submitted by your users. This could be anything, from a simple guestbook to a e-Money solution. But what…
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…
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…

747 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now