RE: [PHP] question about forum

2001-07-23 Thread Sandeep Hundal
have a look at other people's codes. you can start by looking at my forum, which is pretty simple to install and work with : http://www.wde.org/me/php/ /sunny -Original Message- From: Jason Wang [mailto:[EMAIL PROTECTED]] Sent: 23 July 2001 08:06 To: [EMAIL PROTECTED] Subject: [PHP]

RE: [PHP] mail with html

2001-07-23 Thread Sandeep Hundal
here's a script i wrote a while back. copied and pasted. - ? if ($submit) { $headers .= From: $myemail \n; $headers .= cc:$cc \n; $headers .= bcc:$bcc \n; // $headers .= Content-Type: text/html; charset=iso-8859-1\n; $message =

RE: [PHP] mail with html

2001-07-23 Thread Sandeep Hundal
Message- From: Sandeep Hundal [mailto:[EMAIL PROTECTED]] Sent: 23 July 2001 11:06 To: 'Adrian D'Costa'; php general list Subject: RE: [PHP] mail with html here's a script i wrote a while back. copied and pasted. - ? if ($submit) { $headers .= From: $myemail \n

RE: [PHP] mail with html

2001-07-23 Thread Sandeep Hundal
-Original Message- From: Adrian D'Costa [mailto:[EMAIL PROTECTED]] Sent: 23 July 2001 12:26 To: Sandeep Hundal Cc: php general list Subject: RE: [PHP] mail with html Hi Sandeep, Thanks for your mail but I was looking at something else. This is what I need. I have a table that I

RE: [PHP] mail with html

2001-07-23 Thread Sandeep Hundal
:[EMAIL PROTECTED]] Sent: 23 July 2001 13:04 To: Sandeep Hundal Cc: php general list Subject: RE: [PHP] mail with html The question is how do I declare the html coding in the message part. Any samples Adrian On Mon, 23 Jul 2001, Sandeep Hundal wrote: well all you need to do is use part

[PHP] checking to see if part of a variable exists?

2001-05-21 Thread Sandeep Hundal
hi all! i need to see if a $variable has a piece of text included in it. how do i do that? i need to do something like: if ($variable =matches= @monkeys.com) { then do this} tia! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

RE: [PHP] if $submit

2001-05-21 Thread Sandeep Hundal
i always use such statements like : if ($submit) { then do this } else { render the page } and it works fine... -Original Message- From: Tarrant Costelloe [mailto:[EMAIL PROTECTED]] Sent: 21 May 2001 15:16 To: Php (E-mail) Subject: [PHP] if $submit Whenever I use the ? if ($submit)

RE: [PHP] Problem with outputting date and time

2001-05-17 Thread Sandeep Hundal
what you could do is something like get the unix time, and add an hour to that, and then use the date function to output the date. $today = (time() + 3600); $output = date(F jS Y, h:ia, $today); hope that helps! /sunny -Original Message- From: Good Fella [mailto:[EMAIL PROTECTED]]

RE: [PHP] Re: WELCOME to php-general@lists.php.net

2001-05-15 Thread Sandeep Hundal
have a look at : http://www.hotscripts.com/PHP/ and www.devshed.com and zend.com sunny -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: 15 May 2001 14:45 To: [EMAIL PROTECTED] Subject: [PHP] Re: WELCOME to [EMAIL PROTECTED] Dear sir, I am new to

RE: [PHP] validate form with javascript

2001-05-14 Thread Sandeep Hundal
doh! forgot to add, you need to put this in your form tage as well : name=formname onSubmit=return formCheck() regards /sunny -Original Message- From: Sandeep Hundal [mailto:[EMAIL PROTECTED]] Sent: 14 May 2001 10:43 To: 'Meir Kriheli - MKsoft'; Chris Mason; [EMAIL PROTECTED] Subject

RE: [PHP] my query results won't clear!! :(

2001-05-14 Thread Sandeep Hundal
damn, yeah thats my problem. how do i clear out all variables then?? thanks! /sunny -Original Message- From: Mark Roedel [mailto:[EMAIL PROTECTED]] Sent: 14 May 2001 14:56 To: Sandeep Hundal; [EMAIL PROTECTED] Subject: RE: [PHP] my query results won't clear!! :( -Original

RE: [PHP] achive style message center

2001-05-14 Thread Sandeep Hundal
why not just use a message board? -Original Message- From: shaun [mailto:[EMAIL PROTECTED]] Sent: 14 May 2001 18:15 To: [EMAIL PROTECTED] Subject: [PHP] achive style message center i was wondering if anyone has or knows were i can find an archive style message system much like the

Re: [PHP] bulletin board or forum

2001-05-10 Thread Sandeep Hundal
there's a simple and free one i'm releasing very soon from my homepage : http://www.wde.org/me/php/ its got a working example too. /sunny --- Kian On [EMAIL PROTECTED] wrote: Hi, Does anyone know a FREE forum or bulletin board that written in PHP? Please give the name or URL. I would

[PHP] i need some help with extracting data from mysql

2001-05-10 Thread Sandeep Hundal
hi all, i've got a simple problem, yet it doesn't work, so i hope someone can help me out here. i've got a table with id, group, and name. each group has many names ofcourse. now i need to output the data like : group1 name1 name2 name3 group2 name4 name5 group3 name6

RE: [PHP] Forms and PHP_SELF

2001-05-10 Thread Sandeep Hundal
surely all you need to do is put the php right at the top, and say if (isset($variable) { print this message } else {do this header (); } i've done that loads of times so the form data goes back to the page, and once its inserted into the db, it sends a header to redirect. /sunny

[PHP] i need some help with extracting data from mysql desperately!!

2001-05-10 Thread Sandeep Hundal
unfortunately, that doesn't seem to work either. it basically only gives me on name per group. here's my php: $query = SELECT * FROM $tablename WHERE approved='yes' GROUP BY group ORDER BY group, name; $result2 = mysql_query($query2); if ($result2) { while ($r2 =

RE: [PHP] i need some help with extracting data from mysql desperately!!

2001-05-10 Thread Sandeep Hundal
doh! i just realised the difference in $query number, but thats not an issue in the actual code, i just cleaned that up a bit /sunny -Original Message- From: Sandeep Hundal [mailto:[EMAIL PROTECTED]] Sent: 10 May 2001 16:49 To: 'bill'; [EMAIL PROTECTED] Subject: [PHP] i need some

RE: [PHP] i need some help with extracting data from mysql

2001-05-10 Thread Sandeep Hundal
-Original Message- From: Steve Werby [mailto:[EMAIL PROTECTED]] Sent: 10 May 2001 17:04 To: Sandeep Hundal; php Subject: Re: [PHP] i need some help with extracting data from mysql Sandeep Hundal [EMAIL PROTECTED] wrote: i've got a simple problem, yet it doesn't work, so i hope

[PHP] simple database extraction problem :(

2001-05-03 Thread Sandeep Hundal
hi all! just a quick thing. i've got loads of info in mysql, which i extract and then use a while ($r = mysql_fetch_array($result)) { to output the result. the only thing is, because its a loop, all results look the same, whereas i want the first row to be displayed differently than the next 4.

[PHP] simple querying mysql in a WML card problem :(

2001-04-25 Thread Sandeep Hundal
hi all! i'm trying to get simple 2 line results from mysql in a wml card, but i can't seem to manage it. here's my code: ? header(Content-type: text/vnd.wap.wml); header(Cache-Control: no-cache, must-revalidate); header(Pragma: no-cache); echo (?xml version='1.0'?); ? !DOCTYPE wml PUBLIC

Re: [PHP] Easy News Script

2001-04-15 Thread Sandeep Hundal
i wrote one a few months back, and use it as a diary. the enhanced one out for release soon will look more like the slashdot system, but much easier. http://www.wde.org/php/ /sunny --- Chris Anderson [EMAIL PROTECTED] wrote: I prefer to write my own - Original Message - From: "Zeus"

[PHP] a quick date and session id question

2001-04-15 Thread Sandeep Hundal
Hi all, I got two small questions. I'm trying to make an events calendar for my site, in which I want people to input in future dates, and then have the database display events by date. NOw they will probably be given a form which allows them to choose, and then gets inputted into the datase as

[PHP] a simple diary / news system for download

2001-04-11 Thread Sandeep Hundal
hi all, just wanted to say thanks to everyone for helping me out with my php enquires over the last few months. in the general free spirit ofcourse, i'm going to try and make all the code that i write available for free download. anyway, for starters, i've made a simple diary / news system on

[PHP] how to use php and xsl to transform xml to html?

2001-03-19 Thread Sandeep Hundal
ihi all, i was reading somewhere on how ASP uses microsoft's xml engine to transform xml documents which have accompanying xsl stylesheets. basically what i would like to do is write an xml document, write an accompanying xsl sheet, and then run a php script on the web so that an html file is

[PHP] how can i extract from such an array??

2001-03-02 Thread Sandeep Hundal
hi all, just a quick question. i've made a personal addressbook, the code for which i'm going to release soon (best probably for newbies). anyway, i want to make it so that i can pass multiple email address from one page to another. basically it'll be a form select function like : select

Re: [PHP] Super SQL problem! Please advise!

2001-02-09 Thread Sandeep Hundal
Thanks a lot for your help everyone!!! It worked!! Woohoo!! Not only that, I learned about joins! :) /sunny --- Steve Werby [EMAIL PROTECTED] wrote: "Sandeep Hundal" [EMAIL PROTECTED] wrote: thanks for the tip steve. i read up on left joins, and got this: SELECT diary.id, dia

Re: [PHP] Super SQL problem! Please advise!

2001-02-08 Thread Sandeep Hundal
BY comments.id ORDER BY diary.id DESC " --- Steve Werby [EMAIL PROTECTED] wrote: "Sandeep Hundal" [EMAIL PROTECTED] wrote: SELECT diary.id, diary.thedate, diary.topic, diary.entry, count(comments.id) AS comments FROM diary, comments WHERE diary.month='$month' AND diary.id = co

[PHP] How can I do this?? :((

2001-02-05 Thread Sandeep Hundal
Hi all, I'm basically really struggling with this query, so would appreciate any pointers on how I could do this. I've included my experimental code underneath, and need to make it work. The first query, which I know works, pulls info from a mysql table. Now for each of my diary entry, I want

[PHP] Stringing sql queries?

2001-02-03 Thread Sandeep Hundal
All, can I string 2 sql queries one after the other? like "select * from $table; select * from $table2;" ??? If I can, does that mean if I use mysql_fetch_array then it'll convert results from both queries into variables? TIA __ Get

[PHP] Need to count number of rows per id! :(

2001-02-02 Thread Sandeep Hundal
Hey guys, I need an answer to a problem I've been trying to work on for days :( I made a message board, which has a front page which lists Topic name, topic started by, and what date. All this info, and the topic message is stored in one mysql table. when you click on any of the topics, it

[PHP] How do I get last inserted ID?

2001-02-01 Thread Sandeep Hundal
Hi All, just a quick question. Say my script is inserting values into a database, which has an autoincremental id. Now I usually send out a mail also with the contents of the inserted stuff. The only problem is that of the ID field. How can I get the script to determine what id number was given