[PHP] Creating alphabetical index links

2003-06-06 Thread Awlad Hussain
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

[PHP] Array

2003-06-06 Thread Awlad Hussain
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

Re: [PHP] How can I check form variables in $_POST to make sure they are theright format?

2003-06-06 Thread Awlad Hussain
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

Re: [PHP] Re: About Guest Book\'s messages....

2003-05-29 Thread Awlad Hussain
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

Re: [PHP] PHP redirect

2003-05-29 Thread Awlad Hussain
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

Re: [PHP] Cookies - recomendation please

2003-06-02 Thread Awlad Hussain
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

Re: [PHP] Best open source banner advertising application

2003-06-05 Thread Awlad Hussain
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

Re: [PHP] Best open source banner advertising application

2003-06-05 Thread Awlad Hussain
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

[PHP] Good Hosting company

2003-06-09 Thread 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:

[PHP] categorise list

2003-06-09 Thread Awlad Hussain
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

[PHP] $HTTP_POST_VARS

2003-06-09 Thread Awlad Hussain
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?

[PHP] Mutile select search engine

2003-06-09 Thread Awlad Hussain
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

Re: [PHP] php and flash chat program

2003-06-10 Thread Awlad Hussain
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

Re: [PHP] what can i store in the DB

2003-06-11 Thread Awlad Hussain
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

Re: [PHP] what can i store in the DB

2003-06-11 Thread Awlad Hussain
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

[PHP] prevent modifying querystring

2003-06-11 Thread Awlad Hussain
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...

Re: [PHP] prevent modifying querystring

2003-06-11 Thread Awlad Hussain
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

Re: [PHP] dealiong with quote's in SQL strings

2003-06-13 Thread Awlad Hussain
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

[PHP] unique random id

2003-06-19 Thread Awlad Hussain
How do i generate a unique random number? thanks awlad

Re: [PHP] [Newman] Passing an image through a php file.

2003-06-19 Thread Awlad Hussain
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

Re: [PHP] Help me compose myself... I'm about to kill Microsoft....

2003-06-19 Thread Awlad Hussain
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

Re: [PHP] typecasting .. easy?

2003-06-19 Thread Awlad Hussain
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

Re: [PHP] strange crypt() problem

2003-06-20 Thread Awlad Hussain
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:

Re: [PHP] Is mail() broken in 4.3.0 when it comes to BCC?

2003-02-10 Thread Awlad Hussain
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 .=

Re: [PHP] Re: File not rewritable - why? Help needed.

2003-02-12 Thread Awlad Hussain
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

Re: [PHP] ankord php text editor

2003-02-18 Thread Awlad Hussain
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

Re: [PHP] online tutorial

2003-02-19 Thread Awlad Hussain
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

Re: [PHP] php ecommers site

2003-02-20 Thread Awlad Hussain
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

Re: [PHP] selection in form-field

2003-02-21 Thread Awlad Hussain
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:

Re: [PHP] Re: smarty vs. patTemplate vs. inclu

2003-02-21 Thread Awlad Hussain
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

Re: [PHP] Re: smarty vs. patTemplate vs. inclu

2003-02-21 Thread Awlad Hussain
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

Re: [PHP] small ads system

2003-02-21 Thread 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)

Re: [PHP] cookie problemes (solved with javascript)

2003-02-25 Thread Awlad Hussain
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

Re: [PHP] Capitalising Personal Names

2003-02-28 Thread Awlad Hussain
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]

[PHP] Automatic Table Creation

2003-03-03 Thread Awlad Hussain
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

Re: [PHP] Automatic Table Creation

2003-03-03 Thread Awlad Hussain
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

[PHP] creating class

2003-03-05 Thread Awlad Hussain
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

[PHP] assign gobal values in class?

2003-03-05 Thread Awlad Hussain
can you assign global value in a class like: class test{ global $arr; } anyone?

Re: [PHP] convert .asp page .php

2003-03-05 Thread Awlad Hussain
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

Re: [PHP] JAVASCRIPT

2003-03-07 Thread Awlad Hussain
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

Re: [PHP] attaching php-action to form-button

2003-03-07 Thread Awlad Hussain
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

Re: [PHP] JAVASCRIPT

2003-03-07 Thread Awlad Hussain
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

Re: [PHP] javascript

2003-03-07 Thread Awlad Hussain
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

Fw: [PHP] newbie

2003-03-11 Thread Awlad Hussain
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

[PHP] String Replace

2003-03-14 Thread Awlad Hussain
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

[PHP] Random array values from associative

2003-03-18 Thread Awlad Hussain
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;

Re: [PHP] Random array values from associative

2003-03-18 Thread Awlad Hussain
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

[PHP] Built in source encode function..

2003-03-21 Thread Awlad Hussain
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

[PHP] Cookie or Session??

2003-03-21 Thread Awlad Hussain
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

Re: [PHP] Cookie or Session??

2003-03-21 Thread Awlad Hussain
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

Re: [PHP] Dynamic Form

2003-03-24 Thread Awlad Hussain
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.

Re: [PHP] can i ask?

2003-03-26 Thread Awlad Hussain
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

Re: [PHP] Formatting code.

2003-03-26 Thread Awlad Hussain
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 --

Re: [PHP] last questions

2003-03-27 Thread Awlad Hussain
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

Re: [PHP] Php.ini doesn't exit

2003-04-02 Thread Awlad Hussain
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

Re: [PHP] uploading entire directory, with or without compression ...

2003-04-03 Thread Awlad Hussain
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 -

[PHP] Get image file size

2003-10-26 Thread Awlad Hussain
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:

[PHP] creating prev next link

2004-03-11 Thread Awlad Hussain
I have a search page display results in the format Search results -- Product ID NameMore Info -- 1Egg