I know I should not ask this question - but as I am not getting prompt
reply from mysql mailing list posting it here too - Just in case anybody
knows about it
I am trying to install the mySQL on our remote server thr putty (SSH).
Following are the set o
>From the PHP docs...
=
Hello visitor, you have seen this page times.;
is necessary to preserve the session id
# in the case that the user has disabled cookies
?>
To continue, click here
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
1) read the manual
2) make sure you have sendmail installed
3) make sure sendmail is working
4) look at php.ini it has it all in there you just have to uncomment it and
maybe change the location for sendmail
> -Original Message-
> From: wm [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, 25 J
hi all,
what has to be configured, and how, on a bsd server to allow the mail()
function to work in php? using sendmail?
thanks,
wm
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
hi there,
some of you may remember my post from yesterday ( titled install to unix
... hastles )
as I said in that one I was using Solaris 9 ( the newest ver of the Solaris
OS ) i have since gone back to Solaris 8 and am having the same problem when
I go to do the "make" looking through the ./co
On Wed, 24 Jul 2002, Varsha Agarwal wrote:
>Hi,
>I have istalled php from the red hat cd at the time i
>installed red hat itself. I downloaded apache and
>installed it. Can anyone tell me how to configure php
>on apache server? I mean what do I do next to run php
>scripts? I am totally new to all
session_name()
JF
on 25/07/02 2:41 PM, Philip J. Newman ([EMAIL PROTECTED]) wrote:
> One question.
>
> When i start a new session i get the veriable PHPSESSID=what ever added to
> links that I want PHPSESSID to be called sid. How can i do this?
>
> ---
> Philip J. Newman.
> PhilipNZ.com Des
A new line is NOT a or in HTML.
Assuming this output is for HTML (browser) purposes, the browser will ignore
newlines.
second linethird line'; // works for HTML
?>
Will print...
this is first line
second line
third line
... to the browser.
If you have a $string with \n's in it, you can co
Credits are with the file. Cheers!
Rick
"Finish each day and be done with it. You have done what you could; some
blunders and absurdities have crept in; forget them as soon as you can.
Tomorrow is a new day; you shall begin it serenely and with too high a
spirit to be encumbered with your old n
Can anyone recommend where I could find a decent script that automatically
generates passwords? I don't care if they are readable or just random
letters, numbers.
Thanks!
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
You can either change it in your php.ini file or using the session_name()
function
Rick
"The greater danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it." - Michelangelo
> From: "Philip J. Newman" <[EMAIL PROTECTED]>
> Date: Thu, 25 Jul 2
One question.
When i start a new session i get the veriable PHPSESSID=what ever added to
links that I want PHPSESSID to be called sid. How can i do this?
---
Philip J. Newman.
PhilipNZ.com Design Solutions
http://www.philipnz.com/
[EMAIL PROTECTED]
Mob: +64 (25) 6144012.
Tele: +64 (25) 6144012
John:
On Fri, Jul 19, 2002 at 11:19:59PM -0400, John Holmes wrote:
> Maybe I'm behind the times, but I just found out about this one today.
> Basically if a user can take your form that sends an email, and send a
> value like "This is my subject\nBcc: [EMAIL PROTECTED]" for the subject,
> then th
On Thu, 25 Jul 2002 05:47:57 +0200, you wrote:
>Bonus points if you could tell me a way to parse the entire headers
>into something useful like a set of key, value pairs using the header
>name as key and the value as value.
$lines = split("\r?\n",$headerstring);
foreach($lines as $line) {
if
Jadiel:
On Sat, Jul 20, 2002 at 12:58:25AM -0500, Jadiel Flores wrote:
> header("Location: computer.php");
Do note, proper syntax uses complete URI's, not just the page name. Also,
you can do this with single quotes.
header('Location: http://www.foo.org/computer.php');
Enjoy,
--D
On Thursday 25 July 2002 11:47, Nicklas af Ekenstam wrote:
> Hi
>
> Could someone please enlighten me on a good way to grab the value for
> a given mail header once I've fetched the entire headers to a string
> using php:s imap_fetchheader() function?
>
> For an example I would like to look for a
Hi Joe:
On Fri, Jul 19, 2002 at 12:50:53PM -0500, 'Joe Rice' wrote:
>
> $answer = "hello\na\np\np\nl\ne\n"; /*from textarea in form*/
> /* replace all whitespace and newlines with nothing */
> $tempanswer = preg_replace("/\s*|\n*/","",$answer);
Easier:
$tempanswer = preg_replace('/\s/', '', $
On Thursday 25 July 2002 12:11, Wormy . wrote:
> Dear all,
> this sounds like a silly problem but i really dunno how to fix it!
>
> In the php manual on php.net said we can use an embedded newline just
> by writing the string on different line by pressing "enter" key. This
> doesn't work
Hi Justin:
On Fri, Jul 19, 2002 at 01:50:08PM +1000, Justin French wrote:
>
> 1. look for a given tag eg DIV
> 2. capture the tag (everything from '')
> 3. look for a given attribute (eg ID="foo", ID=foo, ID='foo' -- all valid
> ways)
> 4. capture it
> 5. be given the opportunity to manipulate t
Dear all,
this sounds like a silly problem but i really dunno how to fix it!
In the php manual on php.net said we can use an embedded newline just
by writing the string on different line by pressing "enter" key. This
doesn't work for me. Another thing is \n also work. For example:
Hi
Could someone please enlighten me on a good way to grab the value for
a given mail header once I've fetched the entire headers to a string
using php:s imap_fetchheader() function?
For an example I would like to look for a header called List-Id which
may look like this:
List-Id:
And grab th
Hi Steve,
try this:
if (basename($SCRIPT_NAME) == "index.php")
print "some silly message";
Jim Grill
Support
Web-1 Hosting
http://www.web-1hosting.net
- Original Message -
From: "Steve Minter" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, July 24, 2002 9:50 PM
Subjec
Try This
if(strtoupper($REQUEST_URI)=='INDEX.PHP')
{
...statements...
}
- Original Message -
From: "Steve Minter" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, July 24, 2002 7:50 PM
Subject: [PHP] web page function
I am tring to refer to a web page using a function. Wha
I am tring to refer to a web page using a function. What function refers to a web
page?
example: if (page=index.php)
{
print $something
}
What function should "page" be?
Thanks
Steve
Thanks all,
This is the correct script :
Function verify($file) {
GLOBAL $HTTP_POST_FILES ;
echo $HTTP_POST_FILES['file']['type'] ;
echo $HTTP_POST_FILES['file']['name'] ;
echo $HTTP_POST_FILES['file']['size'] ;
...
}
I forgot to put the GLOBAL in the front of the function. Now, my script w
> I have a datetime field in one of my mysql tables...when
> displaying some of
> my records I want to display the date in the aforementioned
> datetime field,
> but if the date is today I want to display "today" instead.
> If the date is
> yesterday I want it to display that so I
Never mind, I just found and exceptable work around.
$GLOBALS["session"] & $GLOBALS["document"] contain the objects.
(and after all that typing :)
-Evan
On Wed, Jul 24, 2002 at 10:21:32PM -0400, Evan said:
> Hey all,
>
> I'm having a strange problem with objects that I'm hoping someone out t
Hey all,
I'm having a strange problem with objects that I'm hoping someone out there can
help me track down. I'll give a run down of the setup here, please note that
register_globals is off.
A page creates two objects.
$document - this is always a new object and uses the ob_ functions to cont
Here's the code I use to validate emails:
function check_email($email)
{
global $email;
$regex="^([a-z0-9_]|\\-|\\.)+@(([a-z0-9_]|\\-)+\\.)+[a-z]{2,4}$";
return eregi($regex, $email, $trash);
}
Hope this helps,
Mike
"ØYstein HåLand" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTE
> I am not sure it works, since isn't tested, but here we go. It's
pure
> Mysql, and it would be probaly easier, faster, and more readable to do
> with
> PHP mixed. But where's the fun of it? ;-)
>
> date_field is the name of your date column.
>
> $sql = "SELECT IF(DAYOFMONTH(date_field) = DAY
You'll have to make sure that your headers include a reply-to email address.
Also set up with your server administrator that the outgoing emails from
your site have a correct sender. The mail function's return value only
tells you that it made it to the outgoing mail server. That the server
actu
I have a datetime field in one of my mysql tables...when displaying some of
my records I want to display the date in the aforementioned datetime field,
but if the date is today I want to display "today" instead. If the date is
yesterday I want it to display that so I how do I compare the dat
> Is there anyways to speed up MySQL queries? Or showing the results
> through
> PHP? I have several queries that have about 8 left joins or so.. Yes
very
> huge and when you have lots of people using these functions at once it
> really slows down.. Are there any practices that you can think of t
> > Try this function:
> > http://www.php.net/manual/en/function.stripslashes.php
>
> Oddly enough, as I told John, I did that as well and it doesn't work.
Are the \ there to escape anything, like ' or " or are they just in
there by themselves..as a delimiter or something. If the \ is by itself,
>Thought I turned on register_globals on in the php.ini, my server
>didn't know the HTTP_POST_FILES.
>
>echo $HTTP_POST_FILES[$file]['type'] ;
>
>echo $HTTP_POST_FILES[$file]['name'] ;
>
>echo $HTTP_POST_FILES[$file]['size'] ;
>
>I've always get these messages:
>
>PHP Warning: Undefined variable:
Hi,
what's the best way to log the bad email address' from a mail() loop?
my guess is:
But I'm interested in people's experience with what mail() returns:
>From the manual:
"mail() returns TRUE if the mail was successfully accepted for delivery,
FALSE otherwise."
Is the definition of "accept
Hi,
Thursday, July 25, 2002, 11:15:33 AM, you wrote:
TR> Hi,
TR> Thursday, July 25, 2002, 10:39:08 AM, you wrote:
R>> Hi all,
R>> Thought I turned on register_globals on in the php.ini, my server didn't know the
HTTP_POST_FILES.
R>> echo $HTTP_POST_FILES[$file]['type'] ;
R>> echo $HTTP_POST_
Thanks so much for the help you guys.
problem sorted out...
:D
"Vins" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi.
>
> I've got this script that needs to take for examle 02 and increase that to
> 03.
> but when i run the script $Num++; it changes 03 to
Hi,
Thursday, July 25, 2002, 10:39:08 AM, you wrote:
R> Hi all,
R> Thought I turned on register_globals on in the php.ini, my server didn't know the
HTTP_POST_FILES.
R> echo $HTTP_POST_FILES[$file]['type'] ;
R> echo $HTTP_POST_FILES[$file]['name'] ;
R> echo $HTTP_POST_FILES[$file]['size'] ;
Hi,
Thursday, July 25, 2002, 10:44:00 AM, you wrote:
v> Hi.
v> I've got this script that needs to take for examle 02 and increase that to
v> 03.
v> but when i run the script $Num++; it changes 03 to 3;
v> is there not a function that adds leading zeros onto a string ?
have a look at the spr
Hi,
Thursday, July 25, 2002, 4:26:15 AM, you wrote:
JL> I'm putting together a message board, and I'm having
JL> problems with hitting the return(enter) key within my
JL> textarea.
JL> I've looked around for a solution, I tried
JL> wrap="hard", wrap="soft" and wrap="vitual" and none of
JL> them
you could use: printf("%02d", ++$Num);
or if you want to put it back into $Num, use the sprintf() version
-Original Message-
From: vins [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 25, 2002 10:44 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Numbers with leading zero...
Hi.
I've got this
Hi.
I've got this script that needs to take for examle 02 and increase that to
03.
but when i run the script $Num++; it changes 03 to 3;
is there not a function that adds leading zeros onto a string ?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net
Hi all,
Thought I turned on register_globals on in the php.ini, my server didn't know the
HTTP_POST_FILES.
echo $HTTP_POST_FILES[$file]['type'] ;
echo $HTTP_POST_FILES[$file]['name'] ;
echo $HTTP_POST_FILES[$file]['size'] ;
I've always get these messages:
PHP Warning: Undefined variable: HT
At 10:22 AM 7/24/02 -0400, Scott Fletcher wrote:
>It work very nicely The whole process take 30 to 45 minutes for just
>one server. I wonder how does someone did 12 computers in 10 minutes.
>Cool!
For me the key to upgrading many servers is to compile once then copy the
resulting files to
You need to look at the differences between your server and the live one.
The only real way to test is to have both you AND another tester (preferably
on a slow computer with 56k connection) to try uploading the SAME IMAGE FILE
to both servers.
This will rule out problems with the data type (eg
on 25/07/02 8:30 AM, [EMAIL PROTECTED]
([EMAIL PROTECTED]) wrote:
> Anyway, with asides to the snooty "RTFM" reply I got, I thought I'd share.
No, I agree with the RTFM statement. A simple search for "remove slashes"
on php.net would have resulted in links to all the slashes functions,
includin
Just curious why you don't upload the image to a dir and just store the link
in the db?
> -Original Message-
> From: Jesse Lawrence [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, July 24, 2002 7:44 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] Image upload into database
>
>
> I've setup an i
Are you trying to upload the same image as you did at home? If so,
size isn't the problem if you can do it from home. It might be a
timeout issue. There might be something in php.ini you can set for
timeout. You can specify the max filesize to upload in php.ini also.
Good luck,
Tyler
On Wed
This should work
$object = new $classname;
Martin
-Original Message-
From: Michiel ten Hagen [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 24, 2002 11:17 PM
To: 'Mathieu Dumoulin'
Cc: [EMAIL PROTECTED]
Subject: [PHP] RE: create object from variable class.
Thx for quick reply
In article <[EMAIL PROTECTED]>,
[EMAIL PROTECTED] says...
> On Wed, 2002-07-24 at 08:29, Ian Ball wrote:
> > Assuming you are installing from your php-4.2.2 directory, it would appear
> > the libphp4.so hasn't actually been made, which would point to a possible
> > error in the configuration pa
I've setup an image upload feature on a site, which
uploads images into a mysql database.
The uploads are working absolutely as expected on my
local computer (the server), but when someone else
tried to upload, only 1/3 of the image was uploaded.
Could it be a matter of size? I was originally u
you're returning a literal true if the condition matches, and nothing if it
fails...
function validate() { //
if ( is_numeric($input1) && is_numeric($input2) &&
ctype_alpha($input3) &&
ctype_alpha($input4) )
return true;
else
return f
I've tried a function like this:
function validate() { //
if ( is_numeric($input1) && is_numeric($input2) && ctype_alpha($input3) &&
ctype_alpha($input4) )
return true;
}
And then I call the function:
if (validate() == false) {
some action;
}
My problem is I get the action every time, eve
> If the "\" are showing up in form posted data just do this:
>
> $newtext = stripslashes($oldtext);
That's what I'm doing now before they're written to the file.
> The slashes are put before any single or double quote by a
> nifty little php feature called "magic quotes". By escaping
> quotes i
> It's extremely important as to where you put the function within your
> script.
Understood, and as I said before, I'm fairly new to PHP, so I'm bound to
make the boneheaded mistakes. But I did try and solve it myself before
begging for help :)
Basically, the user enteres some text into a form,
Hi,
I have istalled php from the red hat cd at the time i
installed red hat itself. I downloaded apache and
installed it. Can anyone tell me how to configure php
on apache server? I mean what do I do next to run php
scripts? I am totally new to all this. Please help.
-Varsha
_
If the "\" are showing up in form posted data just do this:
$newtext = stripslashes($oldtext);
The slashes are put before any single or double quote by a nifty little php
feature called "magic quotes". By escaping quotes in form posted data you
greatly reduce the risk of sql injections and other
It's extremely important as to where you put the function within your
script. I know it's basic and goes without saying, but hey a lot of
mistakes that we make.. Especially late at night, are ones that embarrass us
after we find out the answer :) I guess I would have to find out exactly
what you
I am not sure it works, since isn't tested, but here we go. It's pure
Mysql, and it would be probaly easier, faster, and more readable to do with
PHP mixed. But where's the fun of it? ;-)
date_field is the name of your date column.
$sql = "SELECT IF(DAYOFMONTH(date_field) = DAYOFMONTH(CURRENT_
> Try this function:
> http://www.php.net/manual/en/function.stripslashes.php
Oddly enough, as I told John, I did that as well and it doesn't work.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
i use seconds in place of time alot.
using the PHP time() function and Date() functions u can do a lot.
instead of a time / date TIMESTAMP field type i use an INT type
i then call the $the_time = Time(); and insert that.
then u can manipulate the hell outta that INT value from the DB with php's
D
Mysql 4 can cache queries. You can try using temporary tables, so you can
break up joins.
Also, perhaps making a "rawdata" table placeholder. Put a timestamp field
on your columns. Make the query and store somewhere the query itself, the
results and the time they were last modified. Then when
Try this function:
http://www.php.net/manual/en/function.stripslashes.php
Rick
"And God shall wipe away all tears from their eyes; and there shall be no
more death, neither sorrow, nor crying, neither shall there be any more
pain: for the former things are passed away." - Revelation 21:4
> Fr
Is there anyways to speed up MySQL queries? Or showing the results through
PHP? I have several queries that have about 8 left joins or so.. Yes very
huge and when you have lots of people using these functions at once it
really slows down.. Are there any practices that you can think of that would
Anyway, with asides to the snooty "RTFM" reply I got, I thought I'd share.
Turns out the \'s that I was having problems getting rid of were written
there from a form post that was used to collect the data. I still haven't
found a way to remove them after reading them from the file, but I did
mana
You can also checkout OASIS
http://oasis.sourceforge.net/
It's pretty good software, but i'm unable to use it here because it
doesn't have as man features as OAS from RealMedia which my manager is
used to.
http://www.realmedia.com
It's expensive and doesn't really integrate into PHP. but it's
>..and how poor would the performance be if there were 813 shots in the
>movie? Thanks for your help
How fast/big is the surfer's computer?
It's the work on THEIR side that matters.
PHP can spew out 813 shots pretty quickly.
For that matter, if the movie itself is static, you can use PHP to j
As I written to zac, I tried avoid this problem with Dns2Go but the
Client application send the Ip of my router and not that of my computer.
Tiz
Wm wrote:
> If you want to continue to host it yourself, and simply want a stable
> address, try this: http://www.dynip.com/. I've used it for FTP se
If you want to continue to host it yourself, and simply want a stable
address, try this: http://www.dynip.com/. I've used it for FTP serving
before, and it works very well.
Wm
"Crimix" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Unfortunatelly I changed m
easyDNS.com provide a dynamic dns solution to your problem
Zac
- Original Message -
From: "crimix" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, July 24, 2002 10:03 PM
Subject: [PHP] Free WEB Hosting with PHP and MySQL support
> Unfortunatelly I changed my ADLS setting
Unfortunatelly I changed my ADLS setting from IP static to IP dynamic
and now nobody, me too, can access to my data.
My question is if exist a Free WEB Server where I can place my data
using PHP and MySQL support?
Thank you and have a nice day
Tiziano Crimella - Switzerland
--
PHP General Ma
RTM. stripslashes()
---John Holmes...
- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, July 24, 2002 5:21 PM
Subject: [PHP] Removing \ From a String?
> I'm trying to remove all \'s from a string before printing it, but strtr
> still treats it as
I'm trying to remove all \'s from a string before printing it, but strtr
still treats it as an escape character. How do I remove them? Anyone?
--
The Health TV Channel, Inc.
(a non - profit organization)
3820 Lake Otis Pkwy.
Anchorage, AK 99508
907.770.6200 ext.220
907.336.6205 (fax)
Web: www.hea
That should definitely be working. Only thing I can think of is that you're
database name isn't correct. You're certain "news" is the full name of the
database.. I mean it's not "news_com" or something like that? The $link
must be valid becuase the script isn't ending with "Couldn't make
connec
I have a column in one of my mysql tables which holds the date & time that
the record was inserted. When I run a query later on I want to display the
date, but if the date is today or yesterday I want to display "today" or
"yesterday" instead .. how do i compare to stored date with todays date?
t
I would recommend Smarty (http://smarty.php.net). Smarty is unique (?)
in that it compiles templates into PHP code -- making it one of the
faster templating engines out there.
I use Smarty & love it.
Cheers,
Hans
On Wed, 2002-07-24 at 15:02, Remy Dufour wrote:
> Hi,
> Im currently working with
Hi,
I found the function socket_set_block(); in ext/sockets/sockets.c (the
function is not documented) and I tried to use it but it seems to
doesn't take effect...
Why doesn't this function work ? Am I doing something wrong ?
Here is my code:
function sockRead($length = 1) {
soc
> From: Scott Fletcher [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, July 24, 2002 2:53 PM
> Subject: Re: [PHP] Running ./configure multiple times
>
> Yes, it is pretty safe to run ./configure more than once.
> The 1st time, it
> create the config.cache and so on. The 2nd time, it use the
>
(This was from an email sent to Gabor, and the site said this address was for help)
>This is not a definition of the $blah variable. $blah = 1; would be a definition.
I've never had any problems using just $blah; before, it never errored on me once, is
there any reason it does this? (by the wa
Well I think you were correct about not connecting to the db, but I don't
understand why. I wrote another little script just to test the
connection.
FALSE)
{
echo "got the db..yea!";
echo $link;
}
else
{
echo "didnt get db...bo";
echo $link;
}
?>
Jason Wong wrote:
> Apparently that is how it will work in a _future_ version of PHP. But for now
> it's all stuffed in RAM until the complete file is received.
That's crazy. Maybe I don't understand enough of how PHP deals with
various web servers and maybe that's why this is the way it is.
On Wednesday 24 July 2002 21:48, Reid Sutherland wrote:
> Hi,
>
> I'm currently locked in a battle with PHP and file uploads. I've
> searched the list to no avail. I actually found a guy with the same
> problem who ended up using perl to make this work. I'm trying to avoid
> that.
>
> The probl
On Wednesday 24 July 2002 22:22, Scott Fletcher wrote:
> It work very nicely The whole process take 30 to 45 minutes for just
> one server.
You've got a slow computer and/or you type too slow ;-)
> I wonder how does someone did 12 computers in 10 minutes.
> Cool!
For me it was a case of
On Wednesday 24 July 2002 23:41, Chris Garaffa wrote:
> Well my RedHat system got hosed, so I reinstalled everything. I'm back to
> installing PHP now, and I'm wondering if it's safe for me to run
> ./configure multiple times. Here's the situation:
> I want to compile with gd support, and pdflib,
On Thursday 25 July 2002 00:34, Matthew Bielecki wrote:
> I have a couple of scripts that fail with the error of:
> Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result
> resource in...
>
> I'm new to both SQL and PHP and I'm wondering if I have some setting
> turned off or
Hi,
Im currently working with phplib template and im wondering if PEAR template class can
give me more...
Anyone got an idea ?
Rémy
Yes, it is pretty safe to run ./configure more than once. The 1st time, it
create the config.cache and so on. The 2nd time, it use the config.cache
and other stuffs instead of starting from scratch. To redo everything from
scratch. I believe one of those config.* files need to be removed so yo
It is on whatever installation my host is running :o) I know it's 4.x, though I
should really make them upgrade.
>>> "Phillip S. Baker" <[EMAIL PROTECTED]> 07/24/02 02:34PM >>>
At 11:26 AM 7/24/2002 Wednesday, Martin Clifford wrote:
>Shouldn't it be:
>
>$result = mysql_query($sql, $link_id);
A
At 11:26 AM 7/24/2002 Wednesday, Jesse Lawrence wrote:
>I'm putting together a message board, and I'm having
>problems with hitting the return(enter) key within my
>textarea.
>
>I've looked around for a solution, I tried
>wrap="hard", wrap="soft" and wrap="vitual" and none of
>them worked (should
At 11:26 AM 7/24/2002 Wednesday, Martin Clifford wrote:
>Shouldn't it be:
>
>$result = mysql_query($sql, $link_id);
Actually mysql_query should default to the last database connection opened
if no link identifier has been specified.
So the link identifier to not absolutely required.
Phillip
-
I've never had a problem with this. Even using a textbox with only the required
parameters works fine as far as hitting the return key to get a newline. If you're
talking about hitting the return key to submit, that's something else entirely, hehe.
Martin Clifford
Homepage: http://www.complet
Shouldn't it be:
$result = mysql_query($sql, $link_id);
PHP will be quick to tell you that there is a missing link identifier in the
mysql_query() call. It's happened to me plenty of times. HTH!
Martin Clifford
Homepage: http://www.completesource.net
Developer's Forums: http://www.completeso
I'm putting together a message board, and I'm having
problems with hitting the return(enter) key within my
textarea.
I've looked around for a solution, I tried
wrap="hard", wrap="soft" and wrap="vitual" and none of
them worked (should they? I may have done it wrong?)
and I also tried nohardbreak
Yes, what on earth was I thinking!
should be:
...
$result = mysql_query($sql);
if (mysql_num_rows($result)) {
$row = mysql_fetch_assoc($result);
} else {
echo "whatever";
}
...
Kevin Stone wrote:
>You beat me too the punch and I think you expl
You beat me too the punch and I think you explained it better than me, but
just one minor little thing to note. Where you said..
"if ( $result = mysql_query($sql)) "
This is not a valid way to check if the query has returned anything.
mysql_query() returns FALSE on error. So if there was no er
With phpMyAdmin, just scroll down until you see the dumping section. Select the
appropriate information, tick the "save as file" box, then "Go". It'll prompt you to
save the file. You just use that file, then, as a query to your next database.
Martin
>>> "1LT John W. Holmes" <[EMAIL PROTECT
I encountered that same timeout problem once, and I wound up just installing
my own copy of PhpMyAdmin in an .htaccess protected directory on the server,
and extending the time limit there. It only took about 10 minutes to set
up, and as an added bonus it was a more recent version of PhpMyAdmin t
Try using mysql_query(); instead of mysql_db_query(); The SQL query is the
first parameter in this function. The second parameter is a pointer
connecting to the mysql server. The pointer is generated by mysql_connect()
and you'll also need to select the database with mysql_select_db(). But
it'
I can almost guarantee that it's not the second line that is "failing",
the problem here is that $result is not containing naything, and that is
normally due to the fact that you are not connecting to the db, or the
table "tablename" is not there.
I use the following format as my "standard" My
1 - 100 of 161 matches
Mail list logo