Hi
The manual states:
$pizza = piece1 piece2 piece3 piece4 piece5 piece6;
$pieces = explode( , $pizza);
So, if I want to be able to echo piece1 to the screen at a later stage,
I would go:
echo $pieces[0];
or
$first_piece = $pieces[0];
echo $first_piece;
Right?
Just want to make sure I
Hi all,
I get the following error while trying to connect to oracle. Please help
me.
Fatal error: Call to undefined function: ora_logon() in c:\program
files\apache group\apache\htdocs\one.php on line 5
Subodh Gupta
Tata Consultancy Services.
--
PHP General Mailing List
Petre Agenbag wrote:
Hi
The manual states:
$pizza = piece1 piece2 piece3 piece4 piece5 piece6;
$pieces = explode( , $pizza);
So, if I want to be able to echo piece1 to the screen at a later
stage, I would go:
echo $pieces[0];
or
$first_piece = $pieces[0];
echo $first_piece;
Hi Shaun,
How do you refresh a php page , from within your code.
a href=?=$PHP_SELF?click here to refresh/a :-)
You can't directly refresh a page with PHP (you can use Javascript though,
or a meta refresh tag).
How do i test if a browser supports cookies or not?
You asked this a couple of
You should probably check whether you environment variables are all set.
try phpinfo(), and see under Environment Variables.
Check for:
ORACLE_SID
ORACLE_HOME
LD_LIBRARY_PATH
ORACLE_TERM
ORA_NLS33
If they aren't there, you should set them up.
Regards,
Faisal
-Original Message-
From:
the best way to do password validation is using one way encryption (e.g.
MySQL PASSWORD() function). That way you check the encrypted user entered
password against the database ...
... WHERE pass = PASSWORD('{$_POST[password]}')
Tim Ward
www.chessish.com
-Original Message-
From: Mr.
undefined function means PHP doesn't know where to get the function from.
You probably didn't configure oci_8 libraries correctly.
Try phpinfo(), and see under the configuration.
Check whether oci8 is available.
Regards
Faisal
-Original Message-
From: Subodh Gupta
I checked up phpinfo(). It does not have oracle listed. What do I need to
do now?
Subodh Gupta
Tata Consultancy Services.
Faisal
Hello,
it's possible that attribute that have to use during an add do not exist.
For example from core.schema a programmer can retrieve information of the
attribute that must exist for a objectclass
and the attributes that can given for a class like person. As an example of
an entry of the
I get the following error:
Warning: LDAP: add operation could not be completed. in
/var/www/html/user/adduser_p.php on line 65
Where in my log files can I go to look for more detailed info on that error,
I don't know if I have logging enabled for slapd.
1. after ldap_add print ldap_error
Where was it listed?
In the 'configure command' section? Or the 'configuration' section?
If its available in the 'configure command' ONLY, doesn't mean that its
working properly.
Also, check the following:
1.Copy d:\php\php4ts.dll to c:\winnt\system32 // depends on where your dll
file is
2.
Hello,
at Solaris and Windows NT it's first necessary to install the Oracle Client
software and then to configure PHP properly the way it is documented!
I've done until know only three PHP installations with Oracle support but
all three installations where very simple!
Remember you have to
Heh..i just noticed something on your error:
Call to undefined function: ora_logon() in c:\program
files\apache group\apache\htdocs\one.php on line 5
If you've configured OCI8, use:
ocilogon(scott,tiger,$db);
instead of ora_logon();
Regards,
Faisal
-Original Message-
From:
There is no entry of oracle in any section.
The rest of things which you have pointed out are already in place.
How do I go aheadnow?
Subodh Gupta
Faisal
If its not there, than I only see these possibilities:
1. You have not placed the correct dll's in the correct location.
2. You have not edited php.ini to in the extension section for oci8
3. You have not restarted apache after performing item [2] above
Regards,
Faisal
-Original
-Original Message-
From: Gerald Roehrbein/Pctdmn [mailto:groehrbein;bigfoot.com]
Sent: Monday, October 28, 2002 10:50 AM
To: Subodh Gupta
Cc: [EMAIL PROTECTED]
Subject: RE: [PHP] error connecting to oracle.
Hello,
at Solaris and Windows NT it's first necessary
I have checked that all my dll's are in c:\winnt\system32 directory.
Further I have un-commented the requisite lines from php.ini and as you
said, restarted my apache server after doing all this. Still the problem
persists.
Subodh Gupta
Hi All,
I would like to be able to do a serach and replace in a HTML document. For a
list of words;
for example:
hello become buongiorno
yes becomes si
size become grossezza
The problem is that if I change the word size without considering html
tags and html comments in the case of inline
Hei!
Ühel ilusal päeval [27-10-2002 21:27] kirjutas Nick Eby:
I'm running oracle 8.1.7 w/ php 4.2. I use the oci8 functions to update
clob columns, and maybe 1 out of every 15 or 20 times, updating a clob
column causes the mysterious ora-600, internal error code. Anybody out
there
Hey there,
We have a class that sets up a tree structure that represents an e-learning
object made up of nested components. We have a function
getPropertyValue($name) which returns the property $name for the current
component.
Now, we want to allow the user to use something like
-Original Message-
From: Justin French [mailto:justin;indent.com.au]
Sent: 28 October 2002 07:27
Please start by looking in the manual... I simply typed
http://php.net/oracle into my browser, which resulted in this page:
http://www.php.net/manual/en/ref.oracle.php
Seems to
Enable oci8 extension
--
Maxim Maletsky
[EMAIL PROTECTED]
www.PHPBeginner.com // PHP for Beginners
www.maxim.cx // my Home
// my Wish List: ( Get me something! )
http://www.amazon.com/exec/obidos/registry/2IXE7SMI5EDI3
Subodh Gupta [EMAIL PROTECTED] wrote... :
I checked
-Original Message-
From: Faisal Abdullah [mailto:faisal;magnifix.com.my]
Sent: 28 October 2002 09:51
To: Subodh Gupta; [EMAIL PROTECTED]
Subject: RE: [PHP] error connecting to oracle.
-Original Message-
From: Subodh Gupta [mailto:Subodh.Gupta;seepz.tcs.co.in]
Sent:
When one uncomments oci8 extension in PHP.INI, then restarts apache, you
get an error on Apache's start-up which will mean your dll is not forund,
or there are no oci.h lib (wrong $ORACLE_HOME dir, or there is no client
at all... whichever) but, if no errors on Apache start were given to you,
just
What's the Oracle version?
OCIServerVersion($stmt);
--
Maxim Maletsky
[EMAIL PROTECTED]
www.PHPBeginner.com // PHP for Beginners
www.maxim.cx // my Home
// my Wish List: ( Get me something! )
http://www.amazon.com/exec/obidos/registry/2IXE7SMI5EDI3
Juhan Kundla [EMAIL
Actually, one should try always go for OCI8 functions even with lowere
versions. Sometiumes, though, these might not work well for v7.
--
Maxim Maletsky
[EMAIL PROTECTED]
www.PHPBeginner.com // PHP for Beginners
www.maxim.cx // my Home
// my Wish List: ( Get me something! )
try splitting it first to get several strings into one array, then loop
the array and replace its each element concatenating the strings. This
is how my mind can process it so far :)
--
Maxim Maletsky
[EMAIL PROTECTED]
www.PHPBeginner.com // PHP for Beginners
www.maxim.cx // my Home
Ford, Mike [LSS] [EMAIL PROTECTED] wrote... :
Look out! You've got your Oracle libraries in a twist. The oci8
library supports the OCI* functions; the oracle library supports the
ora_* functions. OCI is generally considered to be a better interface,
and should probably be
The following line sort of works:
$retVal =
preg_replace(/(.*){parent.(.*)}(.*)/e,'\\1'.\$this-parentNode-
getProper tyValue('\\2').'\\3',$retVal);
However, if there are more than one string to replace it only works
on the last one. So:
caption = the parent's coordinates are
Read about regular expressions.
php.net/pcre
--
Maxim Maletsky
[EMAIL PROTECTED]
www.PHPBeginner.com // PHP for Beginners
www.maxim.cx // my Home
// my Wish List: ( Get me something! )
http://www.amazon.com/exec/obidos/registry/2IXE7SMI5EDI3
Rodrigo de Oliveira [EMAIL
I'm sure there are some web based file manegers, check out
www.hotscripts.com
For your second problem, check first if you appache is sending the right
response.
Connect, using telnet, to localhost:80, and write:
GET /mp3 HTTP/1.0
(two times enter). Apache should send you 301 Moved Permanently
Does anyone know if there is a way to tell if a given file is a valid dbase file,
using PHP functions ?
The usual way of doing logins with encrypted/hashed passwords is
adding new user into the table:
INSERT users SET username='$_POST[username]', password=MD5('$_POST[pwd]');
checking if username/password match:
SELECT * FROM users WHERE username='$_POST[username]' AND
password=MD5('$_POST[pwd]');
Filetypes are usualy recognized by first 4 bytes (or so), so you need to
find out what these bytes should be
for dbase files
Plamen Slavov wrote:
Does anyone know if there is a way to tell if a given file is a valid dbase file, using PHP functions ?
--
PHP General Mailing List
[snip]
Lets say you have a statement like:
$query = SELECT * FROM mytable WHERE firstname=$firstname;
And if $firstname is set to:
xyz; DELETE FROM mytable
Then this is executed as: SELECT* FROM mytable WHERE firstname=xyz;DELETE
FROM mytable
This can wipe out your table...a bad thing...
I have three functions written which work and I want to only display one
of them depending on user input.
What is the correct way to code this?
I can display all three functions but not one.
this is my code:
?
include ('products_sc_fns.php');
// The shopping cart needs sessions, so start
Hi people,
I have a table (postgres), with a date field (-mm-dd). How do I group by
year?
'select sum(profit) from loan group by apply_date' would group by the DAY,
not year.
Thanks.
Regards,
Faisal
__
--
PHP General Mailing List (http://www.php.net/)
Hello Steve,
I hope I understand your questions...so first we will check value of
country (if it is other than finland)...then if the first if
requirement is not met we will continue to second part (checking
express)...and so on
if {$country!=finland){
In mysql, I would need to select an extra column
SELECT SUM(profit), YEAR(apply_date) AS year FROM loan GROUP BY year
Faisal Abdullah wrote:
Hi people,
I have a table (postgres), with a date field (-mm-dd). How do I group by
year?
'select sum(profit) from loan group by apply_date' would
I have a table (postgres), with a date field (-mm-dd). How do I group
by
year?
'select sum(profit) from loan group by apply_date' would group by the DAY,
not year.
SELECT SUM(profit) FROM load GROUP BY YEAR(apply_date)
---John Holmes...
--
PHP General Mailing List
I get this error from my code.
Fatal error: Cannot break/continue 1 levels in
/www/u1255/shop/purchase.php on line 22
I think I need to end the functions if a condition is met so is there a
way to do it without breaking?
Where do I go from here?
?
include ('products_sc_fns.php');
// The
Hello Steve,
oh my fault...i apologize...this should worki shouldn't use break
;)
if {$country!=finland){
display_shipping(calculate_nonfinland_cost($country));
}
elsif ($country==finland $express==no) {
display_shipping(calculate_shipping_cost($weight));
}
elseif ($country==finland
Break an continue are for loops (while,for ...), if you want to get out
of a function, use return
Steve Jackson wrote:
I get this error from my code.
Fatal error: Cannot break/continue 1 levels in
/www/u1255/shop/purchase.php on line 22
I think I need to end the functions if a condition is met
Hey everyone,
For years I have used a fantastic merchant ( http://www.ihtmlmerchant.com
), which is feature packed and easy to setup and use. It's written in a
competing language called iHTML ( http://www.ihtml.com ).
As I am getting considerably proficient at coding PHP, I find that I
Security Data S.A is proud to announce the inmediate availability of
PHPGrid under GPL license. PHPGrid is a PHP object that allows to
browse/add/edit/search/delete records in a database table. Is based on
ADOdb and incorporates features not found on similar products, for
exaple, manage unlimited
Hi all,
I've been away for a while but I'm back and have a question about IP addresses.
How do I retrieve / capture a users IP? I need to have it to process electronic
payments.
Thanks.
Bret
Besides Google, is there any other site that archives
this list? I checked PHP Builder but I can't seem to
find a thread (or message) dated after April...
thnx,
Chris
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hello,
Looking for this?
http://marc.theaimsgroup.com/?l=php-general
- E
Chris Boget [EMAIL PROTECTED] wrote:
Besides Google, is there any other site that archives
this list? I checked PHP Builder but I can't seem to
find a thread (or message) dated after April...
...[snip]...
--
PHP
I've been away for a while but I'm back and have a question about IP
addresses.
How do I retrieve / capture a users IP? I need to have it to process
electronic payments.
$_SERVER['REMOTE_ADDR']
Jome
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
Hello Bret,
use $REMOTE_ADDR like this:
?
echo $REMOTE_ADDR;
?
--
Best regards,
Martinmailto:corwin;corwin.sk
Monday, October 28, 2002, 3:46:04 PM, you wrote:
BLC Hi all,
BLC I've been away for a while but I'm back and have a question about IP addresses.
BLC How
$_SERVER['REMOTE_ADDR']
- Original Message -
From: Bret L Conard [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, October 28, 2002 4:46 PM
Subject: [PHP] IP addresses
Hi all,
I've been away for a while but I'm back and have a question about IP
addresses.
How do I retrieve / capture
Hi Again, sorry it's taken so long.
Thankyou for your help. I have since reappraised my thoughts on this subject
and would like to thank all of you (and inparticular Rasmus Lerdorf) for
your time in replying to my question. I will not be using anthing that was
provided in reply to circumvent
What; nobody has anything to say about parsing HTML and doing search and
replaces!! Is there another news group that might be better suited? I do
want to do it PHP if I hadn't made that clear.
Somebody, anybody, please help.
Henry [EMAIL PROTECTED] wrote in message
[snip]
What; nobody has anything to say about parsing HTML and doing search and
replaces!! Is there another news group that might be better suited? I do
want to do it PHP if I hadn't made that clear.
Somebody, anybody, please help.
[/snip]
What? No one wants to help someone who didn't search the
I'm trying to create a script that handles/logs banner click-throughs
from an HTML page passing variable information through the URL.
example URL:
http://somehost.com/bannerhandler.php?value=1
The test script I wrote, however, is not recieving the variable
information. Any ideas of what I
Thanks Jay, I am still a newbie and I will read the manual, thankyou for the
help.
Having an OK day in the UK .
Henry
Jay Blanchard [EMAIL PROTECTED] wrote in message
news:003f01c27e93$87bc1da0$8102a8c0;000347D72515...
[snip]
What; nobody has anything to say about parsing HTML
The tools for you to execute the regular expression are there for you in
the manual. The actual regular expression that you're looking for is
not a php issue. And I can't say that I'm totally convinced that you're
still not trying to circumvent google's TOS.
Henry wrote:
What; nobody has
wh1sp3r wrote:
I'm trying to create a script that handles/logs banner click-throughs
from an HTML page passing variable information through the URL.
example URL:
http://somehost.com/bannerhandler.php?value=1
The test script I wrote, however, is not recieving the variable
information. Any
[snip]
Thanks Jay, I am still a newbie and I will read the manual, thankyou for the
help.
Having an OK day in the UK .
[/snip]
Henry your questions will get answered more quickly and accurately when you
provide
a. A clear explanation of the problem at hand
2. Proof that you have
Hello,
Martin Hudec [EMAIL PROTECTED] wrote:
or (from my point of view is this better)
if {$country!=finland) :
display_shipping(calculate_nonfinland_cost($country));
elsif ($country==finland $express==no) :
display_shipping(calculate_shipping_cost($weight));
elseif
I did a search and I remebered that I have previously seen some of your
work. In particlar your guide to CMS in evolt.org. Which I think is
absolutely wonderful. Thankyou for your help and I hope that I haven't gone
to far with my disingenuous comment posting.
I hadn't appreciated the time
Hi Henry,
If it is so simple perhaps you might spend 5
minutes generating the regular expression to
use that will ignore the contents of tags save
for the contents of quotes within meta tags and
do the replace for an associative array of mappings.
I assure you that I am not trying to circumvent google's anything. I'm
trying to provide a HTML translation page tool for some of my visitors where
they will provide there own URL and a translation of some keywords will be
done for them. Thats all.
I never actually was going to flaunt googles
What?!? You're not awake at 4:30 in the morning writing code?!? I
think the commitee will have to reconsider your geek club membership. :)
Jay Blanchard wrote:
[snip]
Thanks Jay, I am still a newbie and I will read the manual, thankyou for the
help.
Having an OK day in the UK .
Hello,
wh1sp3r [EMAIL PROTECTED] wrote:
I'm trying to create a script that handles/logs banner click-throughs
from an HTML page passing variable information through the URL.
example URL:
http://somehost.com/bannerhandler.php?value=1
The test script I wrote, however, is not recieving
[snip]
I did a search ...
[/snip]
My apologies Henry, I had just received a piece of disturbing news along
with starting my Monday at 4:30 CST with some database server problems. You
just happened to get in the line of fire.
Start with the regular expression functions in PHP. Once you have an
[snip]
What?!? You're not awake at 4:30 in the morning writing code?!? I
think the commitee will have to reconsider your geek club membership. :)
[/snip]
How do you think that I knew the original post came in at that time?
ROFLMAO. Go ahead revoke my Geek Club card, the discounts no longer
Hello @ Edwin,
of course you can but let me say something
if .. else is used when u
need to execute one thing in case that requirement in if is met and
second thing if it is not met...
in case of if...elsif : command behind elsif is executed when
requirement in if is not metyou can add as
I assume you meant IE and not EI (?).
I don't have any problem with text areas that you are showing. Do have a
WRAP setting in your text area (hard, soft, off)? I don't specify any
wrap. I doubt that has anything to do with it, but I'm reaching.
Have you tried it on other machines? Perhaps
Hello Martin,
Martin Hudec [EMAIL PROTECTED] wrote:
Hello @ Edwin,
of course you can but let me say something
if .. else is used when u
need to execute one thing in case that requirement in if is met and
second thing if it is not met...
in case of if...elsif : command behind elsif is
Lets say I have a date: 29.10.2002 and I want to be able to find out
what week number it is, I know
how to find out what the current week number is: date(W) to day it
would result 44, but i need to be
able to do this dynamically ofcourse, any Ideas?
thanks, David
Hi to all,
anyone know a good free complier for win 2000/NT to compile PHP and so on?
thanks,
Bye
MArselo
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Maxim Maletsky [EMAIL PROTECTED] wrote in message
news:20021028122405.4F05.MAXIM;php.net...
What's the Oracle version?
8.1.7
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Lets say I have a date: 29.10.2002 and I want to be able to find out
what week number it is, I know how to find out what the current week
number is: date(W) to day it would result 44, but i need to be able
to do this dynamically ofcourse, any Ideas?
date( W, $yourUnixTimeStampDateVar );
date('W',strtotime('29.10.2002')); ??
Untested... I don't know if strtotime will recognize that format.
---John Holmes...
- Original Message -
From: Davíð Örn Jóhannsson [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, October 28, 2002 10:57 AM
Subject: [PHP] Week numbers
Lets
I'm having a problem getting my PHP script to talk to my database. I'm
attempting to use UPDATE with a PHP form to change records already in
the database. I'm able to pull the record with no problem and the
script is sending the confirmation e-mail without a problem on submit
but for some
Hi there,
Im looking for ANY help regarding his problem - I find this interesting to
say the least.
I recently switched to a new hosting company - they are running php 4.1.2 -
register globals is ON.
the sessions automatically expire without closing the window. if you load
index.php and
Hello user,
ill take a look only into this
udi // UPDATE THE DATABASE
udi $sql = UPDATE fantasytoo SET o1 = \$o1\,w1 = \$w1\,c1 =
udi \$c1\,o2 = \$o2\,w2 = \$w2\,c2 = \$c2\,en = \$en\,wc =
udi \$wc\,ot = \$ot\ WHERE realname = \$realname\ ;
udi }
well here u use first $sql..i cant
Here is an example that might help get you started:
http://shiflett.org/tutorials/php_flush.txt
James Taylor wrote:
Just curious if anyone out there knows how to do a Please wait type screen
while the script is running in the background.. Like say PHP is doing a
large select from a database,
On 28 Oct 2002 16:13:29 -
[EMAIL PROTECTED] wrote:
Hi! This is the ezmlm program. I'm managing the
[EMAIL PROTECTED] mailing list.
I'm working for my owner, who can be reached
at [EMAIL PROTECTED]
To confirm that you would like
[EMAIL PROTECTED]
added to the php-general
Whoops! Sorry about that. Hello everyone
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
PHP is ANSI compliant, thus, theoretically, any compiler should be able
to build it. Though, MS Visual Studio 6 is the one used for PHP windows
version. That's not free.
--
Maxim Maletsky
[EMAIL PROTECTED]
www.PHPBeginner.com // PHP for Beginners
www.maxim.cx // my Home
// my Wish
You can use the explode() function to separate the content part of the
response, which is what you're interested in.
Here's a similar example that only returns the content:
http://shiflett.org/tutorials/php_post.txt
Drew Kime wrote:
I've used the example function in the 08 Jul 200 user note
Hi people,
I need to know if there is a way to get HTML data from an URL.
i.e.
I need to get to stock values from the page of wall street. So I think that
I can use some code to connect to that URL and get the data. It's this
possibly ?
Regards, and thanks in advance!
f.
Hi people:
Can anybody help me with this? :
I've got a query in a table:
$result = mysql_query(SELECT username, email FROM users);
which should bring about 300 lines (each for an user).
Now, I've created a funtion which controls how many fields (cols) may be
seen by user. Some like this:
I need to know if there is a way to get HTML data from an URL.
http://www.php.net/manual/en/function.fopen.php
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hello Bsantos,
BP Now, I've created a funtion which controls how many fields (cols) may be
BP seen by user. Some like this:
BP function select_query ($fields, $table) {
BP $result = (SELECT $fileds FROM $table);
BP }
maybe mistype in SELECT fileds should be fieldsalso try using
Now, I've created a funtion which controls how many fields (cols) may
be
seen by user. Some like this:
function select_query ($fields, $table) {
$result = (SELECT $fileds FROM $table);
}
Well, I hould like to control how many fields my query will use.
For example: if I call
Hello John,
ohim really tired then...should go home ;)))than that
$fields should do the work$fields=id,name,email; for
example.:))) and to count how many fields are u using...i
think array should do the trickyou can count it then how
many fields
OS 10.2.1 - Latest libmcrypt.
Seems to have something to do with compatibility with older mcrypt
libs, but even after some hacking I couldn't get it to work right...
gcc -Iext/mcrypt/ -I/Users/mitch/desktop/php-4.3.0pre2/ext/mcrypt/
-DPHP_ATOM_INC -I/Users/mitch/desktop/php-4.3.0pre2/include
I need to replace all NON alpha-numeric characters in a string.
Example:
input: -What's Up Doc?
output: WhatsUpDoc
I received this in a previous post, but it doesn't work:
$str = ereg_replace(/[^[:alnum:]]/i, '', $str);
Thanks!
Shawn
--
PHP General Mailing List
There is a GNU gcc compiler for windows.
-Shawn
Marcello Lupo [EMAIL PROTECTED] wrote in message
news:0210281543120J.00435;hunters...
Hi to all,
anyone know a good free complier for win 2000/NT to compile PHP and so on?
thanks,
Bye
MArselo
--
PHP General Mailing List
I need to replace all NON alpha-numeric characters in a string.
Example:
input: -What's Up Doc?
output: WhatsUpDoc
I received this in a previous post, but it doesn't work:
$str = ereg_replace(/[^[:alnum:]]/i, '', $str);
Use preg_replace() with that string, not ereg_replace().
fopen() works but I'm still having problems. I need to get the text
posted
by a Dynamic Page. (ie. http://www.test.com/test.php?newsID=2 )
I'm no genius, but how about
fopen('http://www.test.com/test.php?newsID=2','r')
How about trying a few things before you post.
---John Holmes...
I believe there is some confusion between columns (fields) and rows. LIMIT
is generally used to limit the returned rows, not fields. If you want only
specific columns then select only the ones you want SELECT
id,firstname,lastname,login FROM users ORDER BY lastname,firstname.
Jason
Hi Bsantos,
Why not use the following code:
for ($i=0;$imysql_num_rows($result);$i++) {
echo td.result['$i']./td;
}
I hope this helps. Should be easier then using
$number_of_selected_cols_minus_one because how do u get this one?
Probably like this, right?
Hi!
I have made a guestbook to my website driven by php and mysql.
But I don't know how to get the text as it is written in the textfield
before it is sent to mysql. So is it possible to save the hits on enter in
the database?
Best regards Raymond
--
PHP General Mailing List
While I am not exactly sure of everything you are asking I think I had
a similar problem...
You need to convert the \r to \n before you put it into the DB.
On Mon, 28 Oct 2002 19:30:15 +0100
Raymond Lilleodegard [EMAIL PROTECTED] wrote:
Hi!
I have made a guestbook to my website driven by
Or maybe you are looking for the nl2br() function ...
Tom Woody wrote:
While I am not exactly sure of everything you are asking I think I had
a similar problem...
You need to convert the \r to \n before you put it into the DB.
On Mon, 28 Oct 2002 19:30:15 +0100
Raymond Lilleodegard [EMAIL
www.php.net/nl2br
---John Holmes...
- Original Message -
From: Tom Woody [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, October 28, 2002 1:26 PM
Subject: Re: [PHP] How to get linefeed from textfields registered in mysql?
While I am not exactly sure of everything you are asking
1 - 100 of 149 matches
Mail list logo