Re: [PHP] web services

2003-03-22 Thread Alexandru COSTIN
Hello, Hi Guys, I want to create webservices using NUSoap + PHP. I have gone through NUSoap Site at http://dietrich.ganx4.com/nusoap/faq.php but havenot found any thing to start with. Can any body point me to some good examples + Manuals on the matter. PHP Webservices sounds promising

[PHP] variales within define constants

2003-03-22 Thread Dan Rossi
hi guys i'm sure i've done this before but is it possible ? i would like it to show up like this define('CONSTANT','Hello $var'); $var = Dan; echo CONSTANT -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: fast template class

2003-03-22 Thread rush
Gilberto Garcia Jr. [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I´m a newbie on this class. But i´m getting this error. can you post snippet of the code and exact error that you get? rush -- http://www.templatetamer.com/ -- PHP General Mailing List (http://www.php.net/) To

RE: [PHP] variales within define constants

2003-03-22 Thread Daniel Diehl
Just try it :) -Original Message- From: Dan Rossi [mailto:[EMAIL PROTECTED] Sent: Samstag, 22. März 2003 08:09 To: Php-General Subject: [PHP] variales within define constants hi guys i'm sure i've done this before but is it possible ? i would like it to show up like this

php-general Digest 22 Mar 2003 13:25:23 -0000 Issue 1953

2003-03-22 Thread php-general-digest-help
php-general Digest 22 Mar 2003 13:25:23 - Issue 1953 Topics (messages 140651 through 140677): md5 cookies 140651 by: Sebastian Re: Sessions question 140652 by: Beauford.2002 140673 by: Jason Wong Resume PHP Sockets? 140653 by: Richard Mikalsen Re: How to

[PHP] upload files and file types

2003-03-22 Thread Dan Rossi
hi there , i was wondering on security of file uploads , i am currently using the pear uploader class , i can check for allowed file extensions , but it doesnt seem to check for file type , i can currently rename say an image to zip and it uploads , is there anyway a hacker could rename an

RE: [PHP] variales within define constants

2003-03-22 Thread Dan Rossi
?? why would i not try it before posting heh :O -Original Message- From: Daniel Diehl [mailto:[EMAIL PROTECTED] Sent: Sunday, March 23, 2003 12:23 AM To: 'Dan Rossi'; 'Php-General' Subject: RE: [PHP] variales within define constants Just try it :) -Original Message- From: Dan

[PHP] Parsing results from mySQL query

2003-03-22 Thread Charles Kline
Hi everyone, I have ALMOST gotten this working (mySQL part works). I have gotten the advice that this is easier to do in PHP then to try and make this query work in mySQL. Here is the query and a sampling of the current results (from phpMyAdmin) SELECT p.fname, p.lname,

[PHP] Re: [SOAP] web services

2003-03-22 Thread Bill Kearney
Unless, of course, you need real text encoding. XML-RPC *only* supports USASCII. No unicode, not even ISO-8859-1. And it's spec author actively fights /against/ improving this situation. -Bill Kearney Tony Bibbs [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] That seems network

[PHP] sha1 hash in old php?

2003-03-22 Thread Bill Kearney
Anyone got a php script for generating sha1sum hashes from a short bit of text? The target platform does not have any of the libraries, let alone the latest php, installed. So before I rewrite it in PHP I figured I'd ask -Bill Kearney -- PHP General Mailing List (http://www.php.net/) To

[PHP] Password Authentication

2003-03-22 Thread trlists
I am trying to build password authentication into a database front end for a MySQL DB. I find the php docs on this point quite confusing so I have a lot of questions. I can use a one-way hash to do this if that's the best way, as I don't need to retrieve the password. However if I could do

[PHP] Removing Risky Characters

2003-03-22 Thread Tom Rawson
When validating user input to remove quotes and other characters that can be used for hacks, does one need to be concerned about the high- ASCII characters which have 'quote' meanings (e.g. 0x91 - 0x94). I presume not, but just wanted to verify that PHP will not interpret these as quotes.

Re: [PHP] Sessions question

2003-03-22 Thread Beauford.2002
Why? You wouldn't even know it happened - nor would the site. This is just a security precaution. - Original Message - From: Jason Wong [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, March 22, 2003 2:25 AM Subject: Re: [PHP] Sessions question On Saturday 22 March 2003 08:09,

Re: [PHP] Password Authentication

2003-03-22 Thread Justin French
I just md5() the passwords, and reset them if needed... rather than retrieving. The advantage for me on this is that it's portable... md5() is part of the base PHP install, whereas the mcrypt stuff isn't (or wasn't). Justin on 23/03/03 1:31 AM, [EMAIL PROTECTED] ([EMAIL PROTECTED]) wrote: I

Re: [PHP] Password Authentication

2003-03-22 Thread trlists
On 23 Mar 2003 Justin French wrote: I just md5() the passwords, and reset them if needed... rather than retrieving. The advantage for me on this is that it's portable... md5() is part of the base PHP install, whereas the mcrypt stuff isn't (or wasn't). Something like that was my inclination

[PHP] Session's length.

2003-03-22 Thread L0vCh1Y
- php-general. I used such code: $exp = 60*60*24*10; # for ten days. session_set_cookie_params($exp); But it works wrong - cookies were removed right after i have rebooted. The other way is to put session id into the cookies, but... Isn't it the same? Thank you. Yours,

Re: [PHP] ob_start problem

2003-03-22 Thread Larry E. Ullman
Warning: ob_gzhandler() [ref.outcontrol]: output handler 'ob_gzhandler' cannot be used twice in /blahblah/includes/bottom.inc on line 25 I can't speak as to why this would only happen occasionally, but I believe that you should comment out the output_buffering line in the php.ini file when

Re: [PHP] upload files and file types

2003-03-22 Thread Larry E. Ullman
hi there , i was wondering on security of file uploads , i am currently using the pear uploader class , i can check for allowed file extensions , but it doesnt seem to check for file type , i can currently rename say an image to zip and it uploads , is there anyway a hacker could rename an

Re: [PHP] Removing Risky Characters

2003-03-22 Thread David Otton
On Sat, 22 Mar 2003 09:34:03 -0500, you wrote: When validating user input to remove quotes and other characters that can be used for hacks, does one need to be concerned about the high- ASCII characters which have 'quote' meanings (e.g. 0x91 - 0x94). I presume not, but just wanted to verify

Re: [PHP] variales within define constants

2003-03-22 Thread Jim Lucas
yes, you can do this, but you have the order wrong. you must set the variable before you use it. and you must have double quotes around the variable in the define() call single quotes denotes a literal string which will not include the value of a variable, you would end up echo'ing Hello $var

Re: [PHP] Password Authentication

2003-03-22 Thread David Otton
On Sat, 22 Mar 2003 09:31:14 -0500, you wrote: First off, there are multiple encryption methods out there -- PHP crypt() and the mcrypt functions, and MySQL encrypt(), for encryption; and the md5 etc. functions for hashing. Is there any information on best practices here, particularly in

Re: [PHP] sha1 hash in old php?

2003-03-22 Thread Jason Sheets
Chris Monson has written a pure PHP implemntation of SHA. It is available on PHP Classes at http://phpclasses.promoxy.com/browse.html/package/65.html. Jason Bill Kearney wrote: Anyone got a php script for generating sha1sum hashes from a short bit of text? Hi Bill, The target platform

[PHP] Separators in variable values causing MySQL commands to fail

2003-03-22 Thread rentAweek Ltd
In my PHP script I have coded e.g.: $sql = INSERT INTO `$owners` ( `FirstName`, `LastName`) VALUES ( '$firstname' , '$lastname' ); $result = mysql_query($sql); So along comes e.g. John O'Groats and nothing gets inserted into the database. OK, I can bypass my oversight by stripping out

Re: [PHP] Test the server.

2003-03-22 Thread Vincent M.
Sebastian wrote: put this in a .php file: ?php phpinfo(); ? it'll tell you what OS, (usually) check if safe mode is on.. if it's on then usually you can't exec anything. cheers, - Sebastian Yes I know but my aim is to make a php script which checks automaticly if the php and the shell functions I

Re: [PHP] Separators in variable values causing MySQL commands to fail

2003-03-22 Thread Jim Lucas
you must remove the backticks. Jim - Original Message - From: rentAweek Ltd [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, March 22, 2003 9:50 AM Subject: [PHP] Separators in variable values causing MySQL commands to fail In my PHP script I have coded e.g.: $sql = INSERT

Re: [PHP] Separators in variable values causing MySQL commands to fail

2003-03-22 Thread David Otton
On Sat, 22 Mar 2003 17:50:30 +, you wrote: OK, I can bypass my oversight by stripping out apostophes from the variable values. There has to be a better way please. http://www.php.net/manual/en/function.mysql-escape-string.php -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] Separators in variable values causing MySQL commands to fail

2003-03-22 Thread Jim Lucas
and , you need to escape the values that you are inputing ie. htmlspecialchars() or htmlentities() those values Jim - Original Message - From: rentAweek Ltd [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, March 22, 2003 9:50 AM Subject: [PHP] Separators in variable values

Re: [PHP] Separators in variable values causing MySQL commands to fail

2003-03-22 Thread Larry E. Ullman
OK, I can bypass my oversight by stripping out apostophes from the variable values. There has to be a better way please. Turn on Magic Quotes GPC or use the addslashes() function. Or, if you want to be more precise and MySQL-specific, use the mysql_escape_string() or mysql_real_escape_string()

Re: [PHP] Test the server.

2003-03-22 Thread David Otton
On Sat, 22 Mar 2003 12:59:19 -0800, you wrote: Yes I know but my aim is to make a php script which checks automaticly if the php and the shell functions I need are available. If you look at the output of phpinfo() you'll see a whole bunch of variables that are set differently depending on the

Fwd: Re: [PHP] Separators in variable values causing MySQL commands to fail

2003-03-22 Thread L0vCh1Y
- rentAweek, rL In my PHP script I have coded e.g.: rL $sql = INSERT INTO `$owners` ( `FirstName`, `LastName`) VALUES ( rL '$firstname' , '$lastname' ); rL $result = mysql_query($sql); rL So along comes e.g. John O'Groats and nothing gets inserted into the rL database. rL OK, I can bypass

[PHP] Re: Session's length.

2003-03-22 Thread Joel Colombo
from the user posts at php.net http://www.php.net/manual/en/function.session-set-cookie-params.php The idea of a session is that it ends when the user closes the browser (maybe even before hand). If you want a cookie to last longer, than use the setcookie() function. -Kevin Sent out by

Re: [PHP] Session's length.

2003-03-22 Thread Adam -
Hi, As I belive, the sessions (session cookies) will expire after the browser has been restarted. So even if you put the session id in a cookie, after ten days you might have your old session id, but it would be delete from the server long ago. The server doesn't keep session for that log

[PHP] Date Diff

2003-03-22 Thread Adam -
Greetings all, A while ago I was using asp and when I started using php the harder thing to learn was Dealing with dates. There isn't a datediff function like asp.. Instead you have timestamps. Powerful it may be but a little hard to learn about and use. Other wise I find php to be very

Re: [PHP] Re: Session's length.

2003-03-22 Thread L0vCh1Y
Hello Joel, Saturday, March 22, 2003, 9:52:20 PM, you wrote: JC from the user posts at php.net JC http://www.php.net/manual/en/function.session-set-cookie-params.php JC The idea of a session is that it ends when the user closes the browser JC (maybe even before hand). If you want a cookie to

[PHP] creating mailing list in php?

2003-03-22 Thread Jason Jacobs
Hi y'all. I am working on a mail list app that's pretty simple...don't need to let users post, only admins, and it's very straightforward. I tested it out with mail() on 50 addresses, and it took 78 seconds plus massive server load. Part of that may be the mail scanner we have, but I also

Re: [PHP] Date Diff

2003-03-22 Thread Jason Sheets
Hello Adam, Since timestamps are in seconds you just subtract them and then use date to convert it to a more human readable format. ?php $yesterday = time() - 86400; print date('m/d/y', $yesterday); ? You could also use the strtotime function to convert a string to a timestamp. PHP

Re: [PHP] Test the server.

2003-03-22 Thread Ernest E Vogelsinger
At 21:59 22.03.2003, Vincent M. said: [snip] Yes I know but my aim is to make a php script which checks automaticly if the php and the shell functions I need are available. [snip] You can use function_exists() and

[PHP] array insert help

2003-03-22 Thread Jason Dulberg
I need to create a form where work/home address details need to be entered. I'd like to have these listed as 2 entries in the mysql db so I'm assuming I need to create an array and loop through the array to do the insert. So I have an address[1] and address[2] for example for a total of 12

Re: [PHP] array insert help

2003-03-22 Thread Ernest E Vogelsinger
At 20:59 22.03.2003, Jason Dulberg said: [snip] My problem is that I'm not sure how to set up the array for the fields and how to take the input fields and insert them. Do I need a multidimensional array for this? ie. input type=text name=address[address][]

RE: [PHP] array insert help

2003-03-22 Thread Jason Dulberg
Thanks for your help... I tried the code as you suggested however when I attempted to echo the variables for testing but nothing showed. for($i = 0; $i = 1; ++$i) { echo paddress.$_POST['address']['address'][$i]; echo brcity.$_POST['address']['city'][$i]; } The form fields are as you

Re: [PHP] creating mailing list in php?

2003-03-22 Thread -{ Rene Brehmer }-
Just don't use PHP for sending the mail like that. It's better to have the mailserver run the list management. Then you only send one message to the server, and its distribution list system handles the delivery of all the messages. Depending on the mailserver, your PHP would then only have to

RE: [PHP] variales within define constants

2003-03-22 Thread Dan Rossi
hmm there is a problem, i set my defines in a defines.php file , i place it right at the top of my main includes file , which sets the paths for other include files , i have my funtion within a class , so the order is include(defines.php); include(class.php); $class = new class; would it work

RE: [PHP] array insert help

2003-03-22 Thread Ernest E Vogelsinger
At 22:24 22.03.2003, Jason Dulberg said: [snip] Thanks for your help... I tried the code as you suggested however when I attempted to echo the variables for testing but nothing showed. for($i = 0; $i = 1; ++$i) { echo

[PHP] how to pass variable for $_GET

2003-03-22 Thread DomIntCom
ok - I know how to pass these variables by appending variables to the link. however, I'm trying to pass the following string; '2003-1-1 00:00:01' AND '2003-3-20 23:59:59' now - when I pass it what I get is the following; date='2003-2-1%2000:00:01'%20AND%20'2003-3-1%2023:59:59' it seems what

[PHP] PHP and IIS

2003-03-22 Thread Beauford.2002
I just installed Win2k server and IIS (need it for a project I am doing) and get the following error after installing PHP. All permissions are set correctly. This appears to be a common problem as a search comes up with hundreds of the same problem - funny though - no answers. Any help is

Re: [PHP] PHP and IIS

2003-03-22 Thread Denis L. Menezes
Hi, Just a thought. Have u put all the dlls in the system32 forlder? Denis - Original Message - From: Beauford.2002 [EMAIL PROTECTED] To: PHP General [EMAIL PROTECTED] Sent: Sunday, March 23, 2003 8:03 AM Subject: [PHP] PHP and IIS I just installed Win2k server and IIS (need it for a

RE: [PHP] variales within define constants

2003-03-22 Thread Dan Rossi
ok i need to e able to predefine messages in a settings file , but need dynamic variables to print out , the variables are within a class , basically i want the message settings seperate from the class itself so they are configurable, this is mostly need for when emailing messages , i need to be

Re: [PHP] Password Authentication

2003-03-22 Thread Justin French
on 23/03/03 2:02 AM, [EMAIL PROTECTED] ([EMAIL PROTECTED]) wrote: On 23 Mar 2003 Justin French wrote: I just md5() the passwords, and reset them if needed... rather than retrieving. The advantage for me on this is that it's portable... md5() is part of the base PHP install, whereas the

Re: [PHP] Password Authentication

2003-03-22 Thread Jason Sheets
You can use a static salt from within your application though. Jason Justin French wrote: on 23/03/03 2:02 AM, [EMAIL PROTECTED] ([EMAIL PROTECTED]) wrote: On 23 Mar 2003 Justin French wrote: I just md5() the passwords, and reset them if needed... rather than retrieving. The advantage for

[PHP] Re: how to pass variable for $_GET

2003-03-22 Thread DomIntCom
ok - found urldecode which is now giving me the following; \'2003-1-3 00:00:01\' AND \'2003-3-10 23:59:59\' original string; '2003-1-3 00:00:01' AND '2003-3-10 23:59:59' Domintcom [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] ok - I know how to pass these variables by appending

[PHP] regex

2003-03-22 Thread Nate
hi, i need to search $final_footer for a string such as %INCLUDE_FILE[/path/to/file]% (where /path/to/file could be anything) and delete it from the string. it being %INCLUDE_FILE[/path/to/file]% (not just /path/to/file) im new to regexps but im guessing I should use preg_match for this? Can

php-general Digest 23 Mar 2003 01:53:33 -0000 Issue 1954

2003-03-22 Thread php-general-digest-help
php-general Digest 23 Mar 2003 01:53:33 - Issue 1954 Topics (messages 140678 through 140723): upload files and file types 140678 by: Dan Rossi 140690 by: Larry E. Ullman Re: variales within define constants 140679 by: Dan Rossi 140692 by: Jim Lucas

[PHP] Re: [PHP-DB] Gathering data from a database

2003-03-22 Thread L0vCh1Y
- Mike, MD I have been having this problem for a while now, and I cant figure it out. the code is: MD ? MD $host = localhost; MD $uname = sniper; MD $pass = starcraft; MD $database = sha; MD $tablename = members; MD $connect = mysql_connect ($host, $uname, $pass); MD $select = mysql_select_db

Re: [PHP] Re: how to pass variable for $_GET

2003-03-22 Thread Leif K-Brooks
http://www.php.net/manual/en/ref.info.php#ini.magic-quotes-gpc DomIntCom wrote: ok - found urldecode which is now giving me the following; \'2003-1-3 00:00:01\' AND \'2003-3-10 23:59:59\' original string; '2003-1-3 00:00:01' AND '2003-3-10 23:59:59' Domintcom [EMAIL PROTECTED] wrote in

Re: [PHP] regex

2003-03-22 Thread Leif K-Brooks
Try this (entirely untested!): $final_footer = preg_replace('%INCLUDE_FILE\\[[^\\]]*\\]%','',$final_footer); Nate wrote: hi, i need to search $final_footer for a string such as %INCLUDE_FILE[/path/to/file]% (where /path/to/file could be anything) and delete it from the string. it being

[PHP] Re: how to pass variable for $_GET

2003-03-22 Thread Nate
stripslashes(\'2003-1-3 00:00:01\' AND \'2003-3-10 23:59:59\'); Domintcom [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] ok - found urldecode which is now giving me the following; \'2003-1-3 00:00:01\' AND \'2003-3-10 23:59:59\' original string; '2003-1-3 00:00:01' AND

Re: [PHP] regex

2003-03-22 Thread Nate Sanden
Thanks! That worked almost. It removed everything except for the 2 % signs. How might I remove those as well? Leif K-Brooks [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED]... Try this (entirely untested!): $final_footer = preg_replace('%INCLUDE_FILE\\[[^\\]]*\\]%','',$final_footer);

Re: [PHP] regex

2003-03-22 Thread Nate
Thanks! That worked almost. It removed everything except for the 2 % signs. How might I remove those as well? Leif K-Brooks [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Try this (entirely untested!): $final_footer = preg_replace('%INCLUDE_FILE\\[[^\\]]*\\]%','',$final_footer);

Re: [PHP] regex

2003-03-22 Thread Leif K-Brooks
Whoops! Try this: preg_replace('|%INCLUDE_FILE\\[[^\\]]*\\]%|','',$final_footer); Nate Sanden wrote: Thanks! That worked almost. It removed everything except for the 2 % signs. How might I remove those as well? Leif K-Brooks [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Try

Re: [PHP] regex

2003-03-22 Thread Nate
Worked great. Thanks so much. Leif K-Brooks [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Whoops! Try this: preg_replace('|%INCLUDE_FILE\\[[^\\]]*\\]%|','',$final_footer); Nate Sanden wrote: Thanks! That worked almost. It removed everything except for the 2 % signs. How

Re: [PHP] PHP and IIS

2003-03-22 Thread Leo Spalteholz
On March 22, 2003 04:03 pm, Beauford.2002 wrote: I just installed Win2k server and IIS (need it for a project I am doing) and get the following error after installing PHP. All permissions are set correctly. This appears to be a common problem as a search comes up with hundreds of the same

Re: [PHP] PHP and IIS

2003-03-22 Thread Beauford.2002
I'm an Apache user - I had runscripts on for the main server, but I had a virtual host which did not - I assumed incorrectly that the virtual would inherit the other settings. I was wrong. B. - Original Message - From: Burhan Khalid [EMAIL PROTECTED] To: Beauford.2002 [EMAIL PROTECTED]

[PHP] SSL

2003-03-22 Thread Rodney Green
Greetings! Is there a PHP function that will allow a script to connect to a web server using SSL? I would need to post data from a script to a remote server securely. The remote server has SSL enabled. Thanks, Rod CinchHost.com - Web Hosting Made

Re: [PHP] SSL

2003-03-22 Thread Jason Sheets
Hello Rodney, You can use Curl to send post requests, take a look at http://www.php.net/curl If you have compiled PHP --with-openssl you can also access https locations with functions such as file_get_contents. If Curl is not an option and you have PHP compiled with streams and

[PHP] Re: [php] Re: [PHP] SSL

2003-03-22 Thread Rodney Green
You can use Curl to send post requests, take a look at http://www.php.net/curl If you have compiled PHP --with-openssl you can also access https locations with functions such as file_get_contents. If Curl is not an option and you have PHP compiled with streams and --with-openssl you can

[PHP] [php] nomenclature

2003-03-22 Thread John Taylor-Johnston
Hi, I'm writing an academic paper detailing how my bibliographic database works. $myinput = mysql_query($sql) or die(print font color=red.mysql_error()./font); while ($mydata = mysql_fetch_object($myinput)) { } What is the usual, normal, standard nomenclature for $myinput and $mydata? How do

[PHP] more issues with variales within strings

2003-03-22 Thread Dan Rossi
hi guys , i am sure this worked on an earlier version of php, 'NOT_ALLOWED_EXTENSION' = Not Allowed File Extension, the following filetypes are allowed : ($this-type)\n, this is inside an array then i used to do $this-extract_filetypes($this-imgtypes); $this-error_codes[NOT_ALLOWED_EXTENSION];

Re: [PHP] [php] nomenclature

2003-03-22 Thread John Hicks
$result = mysql_query($sql) ; ^ while ($rec = mysql_fetch_object($results)) ^ On Saturday 22 March 2003 11:56 pm, you wrote: Hi, I'm writing an academic paper detailing how my bibliographic database works. $myinput = mysql_query($sql) or die(print font

Re: [PHP] [php] nomenclature

2003-03-22 Thread Jason Wong
On Sunday 23 March 2003 13:13, John Hicks wrote: $result = mysql_query($sql) ; ^ while ($rec = mysql_fetch_object($results)) ^ I think $row is more commonly used than $rec. And you have an extra 's' on the second $result. -- Jason Wong - Gremlins Associates - www.gremlins.biz Open

RE: [PHP] more issues with variales within strings

2003-03-22 Thread Dan Rossi
never mind this is the only way i can probaly do this 'NOT_ALLOWED_EXTENSION' = Not Allowed File Extension, the following filetypes are allowed : (.$_SESSION['ext_type'].) -Original Message- From: Dan Rossi [mailto:[EMAIL PROTECTED] Sent: Sunday, March 23, 2003 2:56 PM To: Php-General

[PHP] [php] Blind?

2003-03-22 Thread John Taylor-Johnston
I'm blind or tired or both. Anyone see anything wrong with: $sql = 'SELECT * FROM '.$table.' WHERE MATCH (author,title,book,journal,volumenumber,issuenumber,placeofpublication,publisher,year,pages) AGAINST (\''.stripslashes($searchenquiry).'\' IN BOOLEAN MODE) ORDER BY id asc;'; I've tried

Re: [PHP] [php] nomenclature

2003-03-22 Thread John Taylor-Johnston
Thanks jason, john. http://www.php.net/manual/en/function.mysql-fetch-object.php $row and $result Jason Wong wrote: On Sunday 23 March 2003 13:13, John Hicks wrote: $result = mysql_query($sql) ; ^ while ($rec = mysql_fetch_object($results)) ^ I think $row is more commonly

Re: [PHP] [php] Blind?

2003-03-22 Thread Tom Rogers
Hi, Sunday, March 23, 2003, 4:25:29 PM, you wrote: JTJ I'm blind or tired or both. Anyone see anything wrong with: JTJ $sql = 'SELECT * FROM '.$table.' WHERE MATCH JTJ (author,title,book,journal,volumenumber,issuenumber,placeofpublication,publisher,year,pages) JTJ AGAINST

Re: [PHP] [php] Blind?

2003-03-22 Thread John Taylor-Johnston
Yeah, but it works it you pass it into MySQl. Obligatory I think. I found my problem 10 lines up. A missing ; but singled out that line - just to confuse me. Sorry, it wasn't that after all. Thanks, John Tom Rogers wrote: Hi, Sunday, March 23, 2003, 4:25:29 PM, you wrote: JTJ I'm blind or