there are two arrays:
$players = array(
"23" => "Michael Jordan",
"32" => "Michael Johnson"
);
$current_player = array(
"player_id" => "23",
"age" => "22"
);
how can i get the name of the player with player_id 23
can anyone help me out?...
User Profile
Collapse
-
match values of 2 arrays in smarty-urgent
-
return corresponding value from the array in smarty-urgent
hi
i have designed 2 web pages using smarty. in the first page a list of records has been shown with a link in the invoice no. whenever one clicks the link the details according to the invoice no has to be shown.
the problem is i have a column in the database that holds the code and i have to show the corresponding value in the second page. there is a big list for this.
i have done it using if | else.... -
thanks for the suggestion but it won't make any difference.
what i need is for example:
i will enter pe and click submit. what i will see is: pen pencil (below the form).
next time i will enter sh and click submit. what i will see is: pen pencil sharpner(below the form).
the process will continue unless i get all my desired product names.
i hope you understand what i want. i want... -
<html>
<head>
<title>Untitl ed Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<form action="testInv entory.php" method="post">
<input type="hidden" name="ctr" value="<?=$ctr; ?>">
Search Product Info !...Leave a comment:
-
handle multiple related form on one page, urgent
i have a table that contains product details. i have a form with a textbox that takes product name as input. as soon as the submit button is clicked the product name as submitted has to be shown bellow the first form (in same page). everytime i click the submit button the product name as entered has to be shown below along with the previous product names.
i have done it for the first submit. i don't know how to append the product name... -
thanks for the reply. but i failed to understand the usability for date in which format (i.e. [26 Feb 2006] or [Feb26 2006] or [26/02/2006] ).
it will be great if you explain with a date example.
thanks...Leave a comment:
-
-
here is the sql command:
=============== ===
Code:CREATE TABLE category ( cat_id int(2) NOT NULL auto_increment, category varchar(25) NOT NULL default '', PRIMARY KEY (cat_id) ) TYPE=MyISAM; # # Dumping data for table `category` # INSERT INTO category VALUES (1, 'Fruits'); INSERT INTO category VALUES (2, 'Colors'); INSERT INTO category VALUES (3, 'Games'); INSERT INTO category VALUES (4, 'Vehicles'); # --------------------------------------------------------
Leave a comment:
-
hi
thanks for the reply and also thanks for reminding me of my fault. i never thought of giving a reply. sorry for not giving any reply before to anyone.
whenever i got the solution i immediately moved on making it work. again whenever i didn't get a solution i moved on searching for the solution in different way. i never thought of replying to give thanks when i got solution or to inform that the solution didn't work...Leave a comment:
-
date difference
hi
i have developed an employee details web site. there is an option to view employee's experience.
in professional experience part i have:
start date: 01 Mar 2006 and end date:05 Oct 2006
how can i get the difference between the above dates in the following format:
days worked:x year (s), y month (s), z day (s)
please give a quick reply.
thank you -
managing text boxes based on the drop down list value
i have designed an employee information site. there is an option to generate pay slip.
how can i show the employee related data based on the drop down list.
i have found code example for managing list boxes. but i need help on managing multiple text boxes.
please give a quick reaply.
thank you -
decimal number with comma (,) where required
requirement 1
--------------------
present data:12000.00(i n database)
required data:12,000.00( display format)
requirement 2
--------------------
there are some decimal data [decimal(10,2)] in database. i have to print the total value in the same format (i.e. 12.00). but i am getting the value as 12.
please help me out
thank you -
create .pdf file
i have designed an ip management site. there is a letter generation option that generates a letter including all informations for the specified client. this letter has to be converted to a pdf file so that it can be mailed to that client.
please provide easy code solution that is easily understandable.
thank you -
show text box value according to the selected combobox value
i am developing an employee details website. i am creating a form to insert salary related information. i want that when the employee name is selected from the combobox, the designation and salary of the employee has to be shown in the respective text field from the database in the same form.
please help me with a easily understandable code example.
thank you,
fariba -
convert mysql data to excel file
i have developed a ip management website. there are options to view reports. is there any way to convert the reports in excel file by clicking a link/image.
thank you,
fariba -
upload, save and edit photo using php
hi, can i ask for a very simple example php code on how to save a photo from a form to the database or something like that? and how to get it and display it in the page? i just want a very simple example so that i can understand. i am new with php.
thanks
fariba -
upload photo, save in database and edit photo
hi
i am working with php. i am designing a site which will store employee information along with his/her photo and also edit information. i have completed the information save and edit part. now i want to add the photo upload option in the save and edit form.
looking forward to a quick reaply.
thank you
fariba
No activity results to display
Show More
Leave a comment: