php problem
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>";
}
;
?>
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 problemphp 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
php sql problem - SQLphp 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 problemPHP 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 problemPHP 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
problem to do coding upload image in phpproblem 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
phpphp 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
phpphp using javasript how to set timer in
php using javasript
phpphp 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
phpphp 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
phpphp show the constructor overloading in
php PHPPHP How to work in drupal with
PHP Imagemagick in PHP - PHPImagemagick in
PHP i faced the
problem while implement imagemagick code in
php. Can you please post a sample code
PHP PHP hii,
Define
PHP?
Hello,ADS_TO_REPLACE_1
The
PHP Hypertext Preprocessor is a programming language that allows web developers to create dynamic content that interacts with databases.
PHP is basically used
phpphp 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
phpphp how to write a program in
php to create pdf file
phpphp 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
phpphp 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
phpphp How to catch a image and link click counters using Ajax
php can any one help me
phpphp how to set email remainder in
php?can you help me pls
PHPPHP I want to create Calendar Event in
PHP. Could u help me
PHPPHP How to check whether a username exists on a website using
php and cURL and not MySQL
phpWrite 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
PHPPHP I would love to do
PHP project with the title of "Hospital Management System". I want to know how to make validation using jquery
phpphp 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>
<
phpphp 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
php - Ajaxphp 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
PHP formPHP form Hi Sir/Madam,
I am developing an attendance form using
php, which displays the name and ID of a Employees which are fetched from Db and I am adding one textfield to enter the Attendance...
The
problem is I am
PHP duplicate file - PHPPHP duplicate file i wanted to duplicate a
PHP file resides in different directory on submission
PHP MVC Framework - PHPPHP MVC Framework Which is the best & latest
PHP MVC Framework... and where can i download it.
Thanks
php a hrefphp a href How to use
php a href to pass the value in
PHP PHP Prevent blank uploadPHP Prevent blank upload In my small
PHP application, i am posting a data to server using POST method in
PHP, which is working fine. But the
problem is that it also accepts blank data as well as duplicate value. Is there any way
Pagination in PHP code - PHPPagination in
PHP code 3.Pagination in
PHP codeIs it possible to get the paging in
PHP without database call? How will I show the image instead of numbering? any code that can help
Array length in PHP - PHPArray length in PHP a function to get the array length in
PHP. Hi Friend,
Please visit the following link:
http://www.roseindia.net/tutorial/
php/phparray/
php-array-length-for.html
Thanks
Replace String in PHP - PHPReplace String in PHP What is the fastest way of replacing string in
PHP Code? Hi Friend,
Please visit the following link:
http://www.roseindia.net/tutorial/
php/phpbasics/
PHP-Array-Replace.html
Thanks
What-is-PHP - PHPWhat-is-PHP Hi,
I would like to know more about
PHP.
What
PHP and how it is good for programming websites?
Thanks
Deepak Hi,
Read more about
PHP at http://www.roseindia.net/
php/
Thanks