[PHP] Understanding If conditional statements

2002-04-14 Thread lmlweb
I'm trying to get my code to print out a sorry - no results message if there is no match. I've read the If statement in the PHP manual (http://www.php.net/manual/ro/control-structures.php#control-structures.if) and I think my code structure may be wrong.. am I wrong to nest it this way in the

[PHP] Re: Understanding If conditional statements

2002-04-14 Thread lmlweb
Hi, I've rewritten the code to: // Sends the Query $sql_result = mysql_query($sql); if (!$sql_result) { echo Can't execute $sql . mysql_error(); exit; } if (mysql_num_rows($sql_result) == 0) { $option_block .= Sorry, your search has resulted in 0 records. Please try again. \n; } //

[PHP] array limits in echo function?

2002-04-08 Thread lmlweb
I'm just curious: if I use within my html codes: ?php echo $fname $lname; ?, I get an error message telling me: Parse error: parse error, expecting `','' or `';'' However, if I take out one of the variables so that it reads ?php echo $lname; ? it works. Has it always been this way? I never

Re: [PHP] array limits in echo function?

2002-04-08 Thread lmlweb
Apr 2002, lmlweb wrote: I'm just curious: if I use within my html codes: ?php echo $fname $lname; ?, I get an error message telling me: Parse error: parse error, expecting `','' or `';'' However, if I take out one of the variables so that it reads ?php echo $lname; ? it works.

Re: [PHP] Mail function acting a bit differently

2002-04-03 Thread lmlweb
Yes.. I found that there. My site doesn't allow .htaccess - now I'm off to find out why. Jason Wong [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED]... On Wednesday 03 April 2002 12:06, lmlweb wrote: How can I do that - controlling via .htaccess? Pointing me to references would

[PHP] Mail function acting a bit differently

2002-04-02 Thread lmlweb
I got an email someone submitted through my web form. I've been using this form for a while, and it had always worked. It still works, but something new has popped up. If someone writes, I'm available to meet with you anytime. We'll talk about our project. It appears as: I\'m available to meet

Re: [PHP] Mail function acting a bit differently

2002-04-02 Thread lmlweb
ROTECTED]... stripslashes() should work - or set the magic quote thingy to off -Original Message- From: lmlweb [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 03, 2002 1:12 PM To: [EMAIL PROTECTED] Subject: [PHP] Mail function acting a bit differently I got an email someone submitted th

Re: [PHP] Mail function acting a bit differently

2002-04-02 Thread lmlweb
I've answered myself, thanks all! It's definitely $form[message] = stripslashes($form[message]); mail(...); Lmlweb [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hosted web, so option to turn on or off is up to the hosting company, not me. stri

Re: [PHP] Mail function acting a bit differently

2002-04-02 Thread lmlweb
How can I do that - controlling via .htaccess? Pointing me to references would be good. TIA LML Miguel Cruz [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... On Tue, 2 Apr 2002, lmlweb wrote: Hosted web, so option to turn on or off is up to the hosting

[PHP] Re: Has anyone looked at phpinfo today?

2002-04-01 Thread lmlweb
who the heck was that :) James Arthur [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED]... ? phpinfo(); ? Notice anything different? --jaa -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Can I use variable appended to the end of a link if I'm not using it for SQL query?

2002-04-01 Thread lmlweb
For example, on a page, I have this link: a href=http://www.website.com/register.html?select=$title;$title/a where $title is whatever the database spits up on a previous query. Now I want to be able to carry that $title onto the next page, which is a form mail for registering for the events,

Re: [PHP] Can I use variable appended to the end of a link if I'm not using it for SQL query?

2002-04-01 Thread lmlweb
be used for anything you like - even ignored... :) -Original Message- From: lmlweb [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 02, 2002 2:56 PM To: [EMAIL PROTECTED] Subject: [PHP] Can I use variable appended to the end of a link if I'm not using it for SQL query? For example, on a

Re: [PHP] Can I use variable appended to the end of a link if I'm not using it for SQL query?

2002-04-01 Thread lmlweb
escaped, like ', and \, etc -Original Message- From: lmlweb [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 02, 2002 3:33 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] Can I use variable appended to the end of a link if I'm not using it for SQL query? Hi, I went ahead a

[PHP] php form mail - what am I doing wrong?

2002-03-30 Thread lmlweb
=LeftNavTextgt; a href=../other_links/index.htmlLinks/a/p/div!-- #EndLibraryItem -- !--FORM method=get ACTION=/cgi-bin/webglimpse/home/laurie/lmlweb-www div class=BlueBox p class=BoxBoxTitleSearch This Site/p p class=BlueBoxText align=center INPUT NAME=query size=15

[PHP] PEAR installation correct?

2002-03-25 Thread lmlweb
How do I know if my web hosting server installed PEAR correctly? I'm trying to create a Search Engine from the PHP Developer's Cookbook, and so far, here's what I know: PHP has the PEAR installed ('--with-pear' according phpinfo.php) And having telnetted into my server, was able to find the

[PHP] PHP Search Engine?

2002-03-23 Thread lmlweb
Hello, I've picked up a book called the PHP Developer's Cookbook, specifically for the search engine that was featured in it. It required the use of PEAR's File/Find.php, which my host hasn't installed, ..and very likely will not. Is there another way of coming up with a search engine in PHP

RE: [PHP] PHP Search Engine?

2002-03-23 Thread lmlweb
I don't think my server even has PEAR installed, so even if I just put the script on my own directory, it still needs the PEAR.php - will I need to do that too? -Original Message- From: Rasmus Lerdorf [mailto:[EMAIL PROTECTED]] Sent: Saturday, March 23, 2002 1:56 PM To: lmlweb Cc

RE: [PHP] PHP Search Engine?

2002-03-23 Thread lmlweb
, and then make the path to the PEAR.php in the Find.php. I don't know if this will work for the search application from the PHP Dev's Cookbook but so far it seem to be working this way. -Original Message- From: lmlweb [mailto:[EMAIL PROTECTED]] I don't think my server even has PEAR