Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Home Answers Viewqa PHP php problem
Login         

View Questions and Answers by Category

Advertisements


 
Have Programming Question? Ask it here!
 
 
 


Raina Anja
php problem
0 Answer(s)      11 months ago
Posted in : PHP


Hello!! I have a problem ,i want to display the data of a single row in my database,this is the code:

include 'connectMySql.php'; $username=$row['username']; if(! $conn ) { die('Could not connect: ' . mysql_error()); } $sql = 'SELECT * FROM users WHERE username="'.$username.'" LIMIT 1';

$result = mysql_query( $sql); if(! $result) { die('Could not get data: ' . mysql_error()); }

while($row = mysqlfetchassoc($result, MYSQL_ASSOC)) { echo "ID : {$row['id']}
".

     "Firstname : {$row['firstname']} <br> ".
     "Lastname : {$row['lastname']} <br> ".      

     "Email    : {$row['email']} <br> ".
     "--------------------------------<br>";

} ;

?>


Advertisement
View Answers

Related Tutorials/Questions & Answers:
problem on php
problem on php   l have five tables and build them as forms and link between them php and database and i want to build query between them plz help me soon   PHP MySQL Tutorials
php problem
php problem  Hello!! I have a problem ,i want to display the data of a single row in my database,this is the code: <?php</p> include 'connectMySql.php'; $username=$row['username']; if(! $conn ) { die('Could
Advertisements
in php installation problem ?
in php installation problem ?   php installation in 7th step did not display y/n dialog box how to solve the problem
php sql problem - SQL
php sql problem  I ahve a php code that doesn't allow me to get the vat value from db. i tried to add $vat = 21; below $shippingCost = 10... NOW() is problem
PHP Sticky form problem
PHP Sticky form problem  I have done the full coding of a sticky form.... Please see my coding below...and advice me what is the problem, and what... Calculator</title> <?php if (isset($_POST['submitted']) &&
PHP Sticky form problem
PHP Sticky form problem  I have done the full coding of a sticky form.... Please see my coding below...and advice me what is the problem, and what... Calculator</title> <?php if (isset($_POST['submitted']) && !isset
Charset problem upon publishing PHP + MySQL website
Charset problem upon publishing PHP + MySQL website  Charset problem upon publishing PHP + MySQL website
problem to do coding upload image in php
problem to do coding upload image in php  can i get example coding how to upload image in php?i have try it but i dont no wheter it is correct...;/form> </body> </html> 2)upload.php: <?php if ((($_FILES
php
php   what is php   PHP Tutorials
php
php  what is php
php
php using javasript  how to set timer in php using javasript
php
php  my problem is when i display data like this $_POST["combo1"] it will show vlaue . suppose i select INDIA it shows "1" , but i want "INDIA... shortcut method in php like in javscript seletedIndex
php
php  i want to know about php and php plateform required software to make php program and database that used in php program?   Please visit the following link: PHP database
php
php  i want to know about php and php plateform required software to make php program and database that used in php program?   Please visit the following link: PHP database
PHP
PHP  How to work in drupal with PHP
php
php  show the constructor overloading in php
php
php  how to write a program in php to create pdf file
php
php  what is php   PHP is one of the most used open source server-side scripting language, which runs on almost all the platform. PHP... and Solaris. To know more about PHP, Visit Here
PHP
PHP   hii, Define PHP?   Hello, The PHP Hypertext Preprocessor is a programming language that allows web developers to create dynamic content that interacts with databases. PHP is basically used for developing web
php
php  retrieve data from mysql in php   Please visit the following links: http://www.roseindia.net/sql/mysql-table/mysql-php-select.shtml http://www.roseindia.net/sql/mysql-example/select-where.shtml
php
php  plz tell me code for PHP SQL Insert,delete,update,view is used to insert the record from HTML page to Mysql database using in single PHP form
PHP
PHP  How to check whether a username exists on a website using php and cURL and not MySQL
PHP
PHP  I want to create Calendar Event in PHP. Could u help me
php
php  how to set email remainder in php?can you help me pls
php
php  How to catch a image and link click counters using Ajax php can any one help me
php
Write a simple PHP program that display the days of week as per the system date using switch case statement.  Write a simple PHP program that display the days of week as per the system date using switch case statement
PHP
PHP  I would love to do PHP project with the title of "Hospital Management System". I want to know how to make validation using jquery
Imagemagick in PHP - PHP
Imagemagick in PHP   i faced the problem while implement imagemagick code in php. Can you please post a sample code
php
php  im beginner to php. i faced problem with creating form and data stored into mysql <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <
php
php  im beginner to php. i faced problem with creating form and data stored into mysql <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <
php
can learn php mysql connectivity examples from the given link: PHP Mysql Connectivity
 

 

 

DMCA.com