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



Home Answers Viewqa PHP php problem

Have Programming Question? Ask it here!
 
 
 


Raina Anja
php problem
0 Answer(s)      6 months and 4 days 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
problem in onlinetest...
problem in onlinetest...  hi, my code getting the problem is ,when user leave a question then the server puts error... pls help me
php - Ajax
php  ajax wiht php registration coding with validation coding also  Hi mohamed Please follow this link to find your problem http://www.roseindia.net/ajax/ajaxlogin/ajax-registration-program.shtml Thanks
rotate image in php - PHP
rotate image in php   Function to rotate image in PHP
PHP Property Management - PHP
PHP Property Management  PHP Property Management.. any idea
php means
php means  php means
javascript problem
javascript problem  hi guys My problem is that I am using radio button for yes or no but i want to do that if I press yes button then enter... enter please help me this problem
problem in validation
problem in validation  sir/madam, i m using struts-1.3.10. i m getting a problem my properties file is not found.... while i hav configuired it in struts-config.xml file, like thanks n regards himanshu
Problem with loginbean.jsp
Problem with loginbean.jsp  http://www.roseindia.net/jsp/loginbean.shtml - I am getting an error in loginbean.jsp.There is some error regarding .What is hello in this? Also in this example how
problem on strings
problem on strings  in string1 "123456 ABC DEF...",IN string2 "raveen". iwant to add string2 after 123456 in the first string based on index number.i need logic for this with out using StringBuffer concept. Thanks in advanace
problem with package
problem with package  Dear sir, i have created one java file with package com.net; and i compiled the program.it showing the .class file in " net" folder.The problem is i want to use that .class file in some other
Problem with cookies
Problem with cookies  Hello All, i need jsp code for RememberMe module of login. i am facing problem with cookies. so please if any one could guide me please help and provide mme the exact code.   Please visit
compilation problem
compilation problem  struts 2.0 : i have included all 5 jars in lib folder,but its giving compilation problem that package open symphony doesnot... havenot set the build path.if this is the problem then tell me how to set
compilation problem
compilation problem  struts 2.0 : i have included all 5 jars in lib folder,but its giving compilation problem that package open symphony doesnot... havenot set the build path.if this is the problem then tell me how to set
$_get php example - PHP
$_get php example  Explain the $_get method in php with a simple example. m a beginner
Advertisements
 

 

 

DMCA.com