PHP Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 



Go Back   Dev Articles Community ForumsProgrammingPHP Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old March 18th, 2014, 10:56 PM
12Strings 12Strings is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Mar 2014
Posts: 5 12Strings User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 35 m 32 sec
Reputation Power: 0
General - Php values in html

Hello, I'm finding it difficult to make the following code work.
Specifically, trying to display database fields. The date is the
only php echo. I set the error as it is to stop notices of "undefined variables". I could use some help. Thanks.
PHP Code:
<?php
//  error_reporting(E_ALL ^ E_NOTICE);
error_reporting(0);
mysql_connect('localhost','root',''); 
mysql_select_db('oodb') or die("Unable to select database"); 
$query="SELECT acctno,pd,payrec,orderno, 
        bname,bstreet,bcity,bstate,bzip, 
        sname,sstreet,scity,sstate,szip, 
        terms,duedate 
        FROM FROM oocust WHERE payrec = 'R' && pd = 'N'"
;
$result=mysql_query($query);
if(
mysql_num_rows($result) ) 
   {
while(list(
$acctno,$pd,$payrec,$orderno,  
            
$bname,$bstreet,$bcity,$bstate,$bzip
            
$sname,$sstreet,$scity,$sstate,$szip
            
$terms,$duedate)= mysql_fetch_row($result))
   {
     } 
     }
      
?>


Code:
<input type="text" STYLE="color: #000000; background-color: #D4FFD4;" size=25 value="Old Orchard Plumbing">
<input type="text" STYLE="color: #000000; background-color: #D4FFD4;" size=30 value="2210 E. Hogan Hollow Road">
<input type="text" STYLE="color: #000000; background-color: #D4FFD4;" size=25 value="Margate, Fl  33063"><p>
<input type="text" STYLE="color: #000000; background-color: #D4FFD4;" size=15 value="Billing Date">
<input type="text" STYLE="color: #000000; background-color: #D4FFD4;" size=25 value="Account#"><br>        
<input type="text" STYLE="color: #000000; background-color: #AAFFAA;" size=15 name="Date" value="<?php echo date('m/d/y');?>">
<input type="text" STYLE="color: #000000; background-color: #AAFFAA;" size=25 name="acctno" value="<?php echo $acctno;?>">

Reply With Quote
  #2  
Old May 7th, 2014, 01:44 AM
12Strings 12Strings is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Mar 2014
Posts: 5 12Strings User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 35 m 32 sec
Reputation Power: 0
wow, no help in 2 months

Reply With Quote
  #3  
Old December 3rd, 2014, 07:36 AM
myrron myrron is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Dec 2014
Posts: 1 myrron User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 7 m
Reputation Power: 0
Send a message via Skype to myrron
an error with while loop

Reply With Quote
  #4  
Old January 15th, 2015, 03:51 AM
swathi bhatiya swathi bhatiya is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jan 2015
Posts: 1 swathi bhatiya User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 15 m 54 sec
Reputation Power: 0
Hi,
There is an error in mysql query.if you recheck your query will be able to get resultant output.For web development process php is more user friendly and secure one.Now most of the web development company are using php and its framework.

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingPHP Development > General - Php values in html


Developer Shed Advertisers and Affiliates


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.

© 2003-2017 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap