How i do create alphabetical index links with data in a table?
for example i have table like this:
category
-
apple
bread
cornflakes
doughnut
egg
with the above records i want to create alphabetical links like click on the letter to
check its listing [A] - [B] - [C] - [D] - [E]
so
What wrong with this code? i am tryin to create an array from the while loop, but i
only get one value :(
while($rowmenu = mysql_fetch_array($resultmenu)){
while (list($k, $v) = each ($rowmenu)) {
$val[$k] = $v;
}
}
Basically the $rowmenu returns more than one records.. and i want
whats the different between currency and number??? aren't they both number?
are you trying to check if the number format is in currency like 2 decimal
place or something??
- Original Message -
From: Dan Anderson [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, June 06, 2003 4:45
using style=TABLE-LAYOUT:fixed does not wrap the text
- Original Message -
From: hui [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, May 28, 2003 3:13 PM
Subject: [PHP] Re: About Guest Book\'s messages
do it in your html code,
you use a table for the message text?
add
Try this
header(LOCATION: page2go.php);
- Original Message -
From: Angelo Zanetti [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, May 29, 2003 9:46 AM
Subject: [PHP] PHP redirect
Hi guys what is the function in PHP for directing a php page??
thanx in advance
Angelo
--
PHP
PHP Manual has good section on cookie... have you tried the manual?
good luck
awlad
- Original Message -
From: Ryan A [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Sunday, June 01, 2003 1:56 PM
Subject: [PHP] Cookies - recomendation please
Hi everyone,
Some time back I had no idea
John,
Since you have used both systems, would you kindly share with us whats pro
cons of them both systems??
I have used phpadsnew and like their user interface.. very neat.. not much
sure about oasis.
Thanks
- Original Message -
From: John Wards [EMAIL PROTECTED]
To: Randum Ian [EMAIL
Thanks John :)
- Original Message -
From: John Wards [EMAIL PROTECTED]
To: Awlad Hussain [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Wednesday, June 04, 2003 3:25 PM
Subject: Re: [PHP] Best open source banner advertising application
On Wednesday 04 Jun 2003 3:07 pm, Awlad Hussain
anyone knows any good cheap hosting company in UK/US?? with good support.
Many thanks
awlad
___
Sheridan Phoenix Company
The Business Centre Kimpton Road Luton Bedfordshire LU2 0LB
Email: [EMAIL PROTECTED]
Phone:
I am dispalying data from mysql database using the codes below:
$while($row=mysql_fetch_array($result))
{
echo $row[name];
}
How can i format the above data in this format as shown below? in alphabetical order
A
Whats the advantage (or shall i say disadvantage )of passing form variables to a
function like shown below:
function function_name($var,$var1,$var2)
{
}
rather than passing the $HTTP_POST_VARS array to the fuction like:
function function_name($HTTP_POST_VARS)
{
}
Is any better than other?
I have a advance search page, similar to this
http://www.shaadi.com/partner_search/matrimonial_search/advancedmarriagesearch.php
(mine on local server).
I can create the sql statement for it ...the only problem i have is passing the all
variables from page to page in record navigation..(I use
How about using session???
- Original Message -
From: Russell P Jones [EMAIL PROTECTED]
To: Matt Palermo [EMAIL PROTECTED]
Cc: 'PHP General' [EMAIL PROTECTED]
Sent: Tuesday, June 10, 2003 3:11 PM
Subject: RE: [PHP] php and flash chat program
The best way I can see to answer this would
You can store image as BLOB in DB
I would recomend you download mysql manual from www.mysql.com, very useful
awlad
- Original Message -
From: - [ Paul Ferrie ] - [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, June 11, 2003 11:46 AM
Subject: [PHP] what can i store in the DB
Paul
check the tutorial on Storing Images in Database
http://codewalkers.com/tutorials/35/2.html
good luck.. BTW cool flash work :)
- Original Message -
From: - [ Paul Ferrie ] - [EMAIL PROTECTED]
To: Awlad Hussain [EMAIL PROTECTED]
Sent: Wednesday, June 11, 2003 12:05 PM
Subject: Re
for example i have form with a dropdown selection as shown below.
FORM action=action.php
SELECT name=total
OPTION1/OPTION
OPTION2/OPTION
OPTION3/OPTION
OPTION4/OPTION
OPTION5/OPTION
/SELECT
/FORM
Just say I have a function to generate form fields based on the total variable from
above...
Thanks for your recommendations, what if they use page.php?$_POST[$total]?
instead of $toal?? wouldn't the outcome be the same?
is there good article on this subject? I think this is quite important in
developing secure application, I have googled but no luck
Thanks again
awlad
- Original
addslashes
(PHP 3, PHP 4 )
addslashes -- Quote string with slashes
Description
string addslashes ( string str)
Returns a string with backslashes before characters that need to be quoted
in database queries etc. These characters are single quote ('), double quote
(), backslash (\) and NUL (the
How do i generate a unique random number?
thanks
awlad
try this:
?php
header(Content-type: image/jpeg);
fopen (d:/crushme/images/1.jpg, r);
?
- Original Message -
From: Mark Tehara [EMAIL PROTECTED]
To: PHP [EMAIL PROTECTED]
Sent: Thursday, June 19, 2003 10:58 AM
Subject: [PHP] [Newman] Passing an image through a php file.
I would like to
try something like this, not sure if this what you want
create a random value like
$random = rand();
then attach it to the each page.. like
index.php?random=$random
good luck
- Original Message -
From: Daniel [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, June 19, 2003
try
$formatted = number_format($amount,2);
- Original Message -
From: Roy W [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, June 19, 2003 12:41 PM
Subject: [PHP] typecasting .. easy?
$amount is a calculated number
If $amount equals for example 52., how do I get that to
If I use MD5 based encryption...would i have similar problem in the future
when i move the codes around to different server?
- Original Message -
From: Jeff Harris [EMAIL PROTECTED]
To: Sævar Öfjörð [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Friday, June 20, 2003 12:06 AM
Subject: RE:
From the PHP manual, hope this will help.
/* To send HTML mail, you can set the Content-type header. */
$headers = MIME-Version: 1.0\r\n;
$headers .= Content-type: text/html; charset=iso-8859-1\r\n;
/* additional headers */
$headers .= From: Birthday Reminder [EMAIL PROTECTED]\r\n;
$headers .=
try CHMOD 777
- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, February 12, 2003 9:22 AM
Subject: [PHP] Re: File not rewritable - why? Help needed.
thank you for the reply
Chmod was just a try from my side to get it work.
I tried CHMOD 0777, and
Tell us what the url of Ankord is.
I use HtmlKit (http://www.htmlkit.com) its the best FREE editor available
out there. :)
-awlad
- Original Message -
From: Edward Peloke [EMAIL PROTECTED]
To: Php-General@Lists. Php. Net [EMAIL PROTECTED]
Sent: Tuesday, February 18, 2003 3:46 PM
http://www.devshed.com
http://www.phpfreaks.com
Search Google - PHP Tutorials
- Original Message -
From: DIKSHA NEEL [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, February 19, 2003 11:50 AM
Subject: [PHP] online tutorial
dear all,
i am a final year engineering student
try this site http://www.oscommerce.com/
you might have to add additional functions to customize it.
- Original Message -
From: Chris Knipe [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, February 20, 2003 2:06 AM
Subject: [PHP] php ecommers site
Lo all,
Is there any good
PHP is a server side language, you need a DHTML web based editor..
try this exellent FREE editor
http://www.interactivetools.com/products/htmlarea/
- Original Message -
From: Michiel van Heusden [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, February 21, 2003 9:46 AM
Subject:
David,
Is there any point using smarty on s small site? eg: website consists of 6/8
pages?
does it matter on the size of the site?
-awlad
- Original Message -
From: David Eisenhart [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, February 21, 2003 11:31 AM
Subject: [PHP] Re: smarty
Thanks guys
I'll have ago with smarty, and let you guys know what I think :)
Have a nice day
-awlad
- Original Message -
From: rush [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, February 21, 2003 2:18 PM
Subject: Re: [PHP] Re: smarty vs. patTemplate vs. inclu
Awlad Hussain
go to http://www.hotscripts.com and do a search on classifieds under PHP
codes
-awlad
- Original Message -
From: Nenad Djordjevic [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, February 21, 2003 2:35 PM
Subject: [PHP] small ads system
Hello,
I need web application (PHP/MySQL)
Thanks Kale, I'll have a go with your code
- Original Message -
From: kale [EMAIL PROTECTED]
To: Php. Net [EMAIL PROTECTED]
Cc: 'Awlad Hussain' [EMAIL PROTECTED]
Sent: Tuesday, February 25, 2003 9:29 AM
Subject: RE: [PHP] cookie problemes (solved with javascript)
I not a expert
Have a javascript alert like Are you 100% sure you haven't typed your name
wrong :)
Other option is to create name dictionary then compare..
- Original Message -
From: Joshua Moore-Oliva [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, February 28, 2003 11:35 AM
Subject: Re: [PHP]
I have a mysql table containing about 100 record, alphabetically ordered.
How would i display them in browser in a 3 columns, doesn't matter how long the rows
is as the number of records will grow in the database table.
the records should be in alphabetically order, for example:
aaa bbba
Thanks Jonathan,
I'll have a go with your codes.
Thanks very much
awlad
- Original Message -
From: Jonathan Pitcher [EMAIL PROTECTED]
To: Awlad Hussain [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Monday, March 03, 2003 4:17 PM
Subject: Re: [PHP] Automatic Table Creation
Awlad,
I
I am very new to class, trying out this class, but it doesn't seem to display anything?
what i am donig wrong?
?php
class site_init {
var $midgard; // array
function site_init()
{
echo $this-midgard[host];
}
?
i called this class by
$new_midgard = site_init;
it does not seem to print
can you assign global value in a class like:
class test{
global $arr;
}
anyone?
http://www.asp2php.com/
- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, March 05, 2003 1:42 AM
Subject: [PHP] convert .asp page .php
Hi all,
I joined your list hoping to find-out how to convert a .asp page to .php
I do realize that I am off the
i think you're not calling the the javascript validation function when
you're submiting the form
you need to call the function like this:
form method=post action=registration1.php onsubmit=return
Field_Validator(this)
try this code below, hope this will help
-awlad
did you try to include them as hidden variables?
if not, try including them as hidden vars
awlad
- Original Message -
From: Michiel van Heusden [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, March 07, 2003 11:59 AM
Subject: [PHP] attaching php-action to form-button
my problem
Diksha, please don't post the same question many times, doing this may
reduce the change of getting an answer..
-awlad
- Original Message -
From: Diksha Neel [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, March 07, 2003 12:45 PM
Subject: [PHP] JAVASCRIPT
dear all,
hi!
in my
Yeah, before sending it. Just wondering what the advantage is in
validating
before sending.
so that the user does not submit any crap..
good example is email validation :)
awlad
- Original Message -
From: Liam Gibbs [EMAIL PROTECTED]
To: php list [EMAIL PROTECTED]
Sent: Friday, March
http://www.phpfreaks.com
http://www.phpbilder.com
Best way to learn is to start writting small program like guestbook, if you
get stuck just ask :)
Use the PHP manual too...
-awlad
- Original Message -
From: Robin [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, March 11, 2003
I have a string with underscore in the middle.. like This_That
which function do i use to replace the _ with space? eg to This That
the string is in a variable..
I know its really simple but just don't know which function to use.
any suggestion?
-awlad
I have an associative like array[name]=hello;
I am trying to get two random values from the array, the key name and the value, but
using the codes below from the PHP manual i am getting the inex key value rather than
the name.
$rand_keys = array_rand ($input, 2);
print $input[$rand_keys[0]].\n;
Thanks for your reply, I now have only the keys but I need both keys and the
value.
??
any suggestions?
- Original Message -
From: Ernest E Vogelsinger [EMAIL PROTECTED]
To: Awlad Hussain [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Tuesday, March 18, 2003 11:45 AM
Subject: Re: [PHP
I think PHP should have a built in ability tp encode source code, so if someone wish
to protect their source code they should be able to.
I hear lot of people worried about other people nicking their codes.
But i also think this could kill the idea of open source.
What do you guys think?
-awlad
Managing user login
Whats the best option to use.. cookie?? or session??
Currently i am using cookies and sometime user complain they can't login,
what would you suggest?
-awlad
from script to
script.
Good luck.
-Mike
-Original Message-
From: Awlad Hussain [mailto:[EMAIL PROTECTED]
Sent: Friday, March 21, 2003 11:00 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Cookie or Session??
Managing user login
Whats the best option to use.. cookie?? or session
use javascript
- Original Message -
From: Keven Jones [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, March 24, 2003 4:32 PM
Subject: [PHP] Dynamic Form
Hi,
Can someone tell me if I can use php to accomplish
the following:
I would like to create a form that can:
A.
These lines already exist in httpd.conf file, you may need to change the
path or uncomment them.
- Original Message -
From: M.N. Ikhwan S. [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, March 26, 2003 12:49 AM
Subject: [PHP] can i ask?
ScriptAlias /php/ c:/php/
AddType
Good article on coding standard at www.phpfreaks.net
Is there any documents on how code should be layed out?
--
Philip J. Newman.
Head Developer
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
someone has asked the same question today about validating email, do a
search i'll find the reply.
- Original Message -
From: Haseeb Iqbal [EMAIL PROTECTED]
To: PHP General list [EMAIL PROTECTED]
Sent: Friday, March 28, 2003 4:02 AM
Subject: [PHP] last questions
thanx to all those who
I think php.ini file must exist.. otherwise php will not work.
- Original Message -
From: Javier Carreras [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, April 02, 2003 11:01 AM
Subject: [PHP] Php.ini doesn't exit
Hi all,
Where does PHP get its settings if php.ini file
I found this link that has a stand alone java application that will allow to
to upload a folder... if that what you want? or you want it to be embedded
in your webpage?
http://support.softartisans.com/docs/JFile/prog_g_recursive.htm
hope you find it useful
-awlad
- Original Message -
How can I get the file size of an image in KB, I know how to get the width
and height of an image using the getimagesize(); but not sure how to get the
image file size.
Many thanks in advance.
awlad
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
I have a search page display results in the format
Search results
--
Product ID NameMore Info
--
1Egg
58 matches
Mail list logo