Do yourself a favor and read the mysql manual. It explicitly answers your
questions and many more you are likely to have. Furthermore, there is a
searchable manual online at mysql.com that makes it rather easy to find
answers about mysql.
To get you started, here is a link to a description of a
Is there any inherit danger or taboos against changing the value of a
variable from an integer to a string?
example:
if ($Msg==1) $Msg = "You have foobar'ed your entire server.";
Thanks.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additio
Well it should be '$date',
Also.. If the column type is date and you are entering it for a form,
check to make sure you are typing it in ok and you trim() the variable
if It still doest work... do a before the mysql_query()
and see exactly what its inserting...
-Original Message-
F
php-general Digest 18 Nov 2001 06:02:16 - Issue 1001
Topics (messages 74987 through 75023):
Re: relative paths
74987 by: Gaylen Fraley
Re: Multiviews and GET requests no longer working?
74988 by: James Green
74989 by: James Green
Transfer variable to next web-page
hi there,
I try to save a record (in the "date" type in MySQL) from the by :
$query = "INSERT INTO $table VALUES ($post_id, 0, '$topic', '$uname',
'$body', $date, '$newdate', 0) ";
But it couldn't work (I used $date or '$date' on above, but they got the
same results) !
It showed me the wrong
See http://php.weblogs.com/php_vs_asp and
http://php.weblogs.com/php_asp_7_reasons
The articles need to be updated for Microsoft.Net though.
Jason G. <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> You could check the list archives... This question flys by ev
Are you a Mortgage Office in need of leads?
We receive refinance requests direct from borrowers
throughout the United States daily!
Whether your office services one state or multiple states,
our leads will meet your needs!
A few features of our program:
*Leads are exclusive
> Hi,
>
> I used
> header("content-type:text/html;charset='windows-1256'");
> and header("content-language:'fa'");
I suggest to try "Content-Type" "Content-Language"
with initial capitals rather than all lowercase and
simply fa, without qoutes.
header("Content-Type: text/html; char
Oops...
> have you tried /e modifier?
>
> preg_replace("//e",'${$1}', $curline);
preg_replace("//e",'${$1}', $curline);
>
> it's just a tip.
>
>
> - Original Message -
> From: "Jeff Lewis" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Saturday, November 17, 2001
have you tried /e modifier?
preg_replace("//e",'${$1}', $curline);
it's just a tip.
- Original Message -
From: "Jeff Lewis" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, November 17, 2001 2:25 PM
Subject: Re: [PHP] Question on variable variables
> Thanks
Hello,
I tried compiling apache 2.0.28 w/ php 4.0.6. Here's how I did it:
Install apache:
./configure --prefix=/usr/local/apache2 --enable-module=so
make
make install
Install PHP:
./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql --with-xml
--disable-debug --enable-track-vars
mysqldump
check it out, either man or google
then ftp that file down, load it wherever, and mysql database < dump.sql
jack
-Original Message-
From: cosmin laslau [mailto:[EMAIL PROTECTED]]
Sent: Saturday, November 17, 2001 5:25 PM
To: [EMAIL PROTECTED]
Subject: [PHP] PHP Backing up a Da
Hello,
as you may remember, some day ago, I asked how to develop
on linux PHP pages accessing Mysql via ODBC (The reasons why I *have*
to cope with this exact sub optimal set up are in the original
message, no reason to repeat them here). I have installed
all the UnixODBC rpms I could find ( I h
Hi,
Say I'm not really confident in the prowess of my server, and I want to
download my database onto my computer. Can that be done? What can I look
(FTP access) in the directory structure. I guess, where is it usually
located?
Thanks.
Cosmin Laslau
_
Hello Everyone !
I'm looking for information on using PHP for standalone applications.
Specifically, I need to create a PHP-based application that can be runned
from a CD-ROM. Have any of you done this?
Any suggestions?
On another note:
I need to develop a CD-ROM based Survey, where the
You can do this using the number_format function or probably sprintf.
/Paul
On Saturday, November 17, 2001, at 01:36 PM, Scott Dudley wrote:
>
> i'm new to php and am having difficulty translating this tiny awk
> function that i use to comma format numbers. can someone assist? my
> stumbling
i'm new to php and am having difficulty translating this tiny awk
function that i use to comma format numbers. can someone assist? my
stumbling block thus far have been the fact the the php regex matching
functions don't return the byte offset within the haystack and the regex
replace functions
I read something saying that the API changed from 2.026 to 2.0.28 and when I
tried using a Apache2 php module, it said it was not compatible with this
version of Apache.
-Jobarr
"Vincent Stoessel" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> The current php
Yes thanks for that, I already have this but am having a brain cramp on how
to obtain years.
function datediff($now, $old)
{
/
$DIS = $now - $old; // Diff In Secs
$secs = $DIS % 60; // modulo
$DIS -= $secs;
$days = floor($DIS / (24*60*60));
$DIS -= $days * (24*60*60);
$hours = floor
search the archives there are tons of messages dealing with date
manipulation.
basically take the timestamps find the difference in seconds, convert to
days, etc
jack
-Original Message-
From: Jeff Lewis [mailto:[EMAIL PROTECTED]]
Sent: Saturday, November 17, 2001 3:17 PM
To: PHP is n
I am storing a birthdate in my database as a Unix timestamp but when I
display it I want to calculate the different between that date and todays
date and display the persons age.
How can I do that with PHP?
I also want to know if it is currently their birthday. So trying to set
$isbday to yes i
if (ereg('special word', $string)) {
echo 'Found';
} else {
echo 'Not Found';
}
--
Julio Nobrega
No matter where you go, &this.
<[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> hey ..
>
> i want php to do an IF, when he founds a special word in a stri
> i want php to do an IF, when he founds a special word in a string (ex:
> text_-_write_-_text ) .. i m not able to manage it ..
Could you use this example?
Regards,
Johan
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-m
Brilliant. For those of us unfamiliar with the laws of de Morgan:
http://www.unc.edu/~rowlett/Math81/notes/DeMorgan.html
Fred
Jimmy Elab <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> de Morgan and Boole, not Alzheimer nor Confusius
>
> !(A OR B) = (!A) AND
I'm not sure where you found the function mysql_store_result, but it is not
a built-in PHP function and that is why you are getting an error.
If you just want to return Match if one or more rows in the group match the
first name use something like this:
function LookupFirstname ($FName, $Group,
I was waiting for someone to meantion de Morgan! 10 points for Mr.
Elab. Ha ha...
-Original Message-
From: jimmy elab [mailto:[EMAIL PROTECTED]]
Sent: Saturday, November 17, 2001 1:41 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Re: alzheimers and confused
de Morgan and Boole, not Alzhe
Richard already answered the variable part, but I thought I'd point out
that you need to use double quotes in your HTML tags... Single quotes
are incorrect...
text for button
");
?>
Or...
text for button
");
?>
Or... Better yet, why not just:
text for button
See the PHP ma
You may not be able to get an entire free book, but Amazon has lots of
sample chapters from several PHP books here
http://www.amazon.com/exec/obidos/search-handle-form/103-3308426-8753433
Trongduc <[EMAIL PROTECTED]> wrote in message
004d01c16f94$3ddcd490$190b10ac@d">news:004d01c16f94$3ddcd490$
Thats sounds right becasuse anything between ... can only
will be passeed only to one script.
Steve
On Tue, 13 Nov 2001, George Pitcher wrote:
> I don't think that you can nest forms.
>
> George
>
> - Original Message -
> From: "De Necker Henri" <[EMAIL PROTECTED]>
> To: "PHP-General
hey ..
i want php to do an IF, when he founds a special word in a string (ex:
text_-_write_-_text ) .. i m not able to manage it ..
thnx for helping in foward
greetings
wolf.dietrich von loeffelholz
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
are you actually doing anything with $request? that just gets a mysql result
back in a variable, you then have to extract the data from it...
Jeff Lewis wrote:
> I am wondering if there are any difference between using PHP and using the
> command line for mySQL. Entering this at the comman line
de Morgan and Boole, not Alzheimer nor Confusius
!(A OR B) = (!A) AND (!B)
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
I am wondering if there are any difference between using PHP and using the
command line for mySQL. Entering this at the comman line returns all the
membergroups properly. When I use this in my PHP program, it doesn't
continue past this line:
$request = mysql_query("SELECT membergroup FROM membe
This is perhaps elementary, but I cannot find solution in the documentation
I want to transfer to a php variable wheter I find a matching firstname in a group
from mysql db
function lookupFirstname ($fname, $gr, $conection)
{ $sql = "SELECT firstname AS matches ";
$sql .= "FROM persons ";
hi,
Does anyone know where the Online Free PHP Books are ?
I cannot buy a book with Amazon.com in my country.
There're a lot of free tutorials on the net, but they 're not enough for me
to understand PHP clearly.
Please let me know the URLs like that
thanks so much...
(I love PHP)
--
PHP Gener
Use
$phpVariableName = $htmlVariableName;
Remember to use the $ in front of the variable that you toss from the HTML
form.
At 10:00 AM 11/17/2001, Olav Drageset wrote:
>I just started..
>
>How do you transfer a variable from one web-page to another
>I try to use a form like this:
>ec
I just started..
How do you transfer a variable from one web-page to another
I try to use a form like this:
text for button
");
?>
and catch it injoin2.phpby:
$phpVariableName=htmlVariableName;
echo"$phpVariableName";
This do not work.
Can anyone tel me what should be done
Neith
On Fri, 2001-11-16 at 17:49, James Green wrote:
> If I call foo?id=1, not only is the id variable not set,
> _SERVER[QUERY_STRING] isn't either. Cookies and session variables work
> fine, it's just variables passed via GET. If I turn off Multiviews, the
> variables come through fine, but it means
On Fri, 2001-11-16 at 17:49, James Green wrote:
> If I call foo?id=1, not only is the id variable not set,
> _SERVER[QUERY_STRING] isn't either. Cookies and session variables work
> fine, it's just variables passed via GET. If I turn off Multiviews, the
> variables come through fine, but it means
You've answered your own question. If document-root is set to
/usr/web/htdocs then require("/somefile") will expect to find "somefile" in
document-root.
--
Gaylen
[EMAIL PROTECTED]
Home http://www.gaylenandmargie.com
PHP KISGB v2.22 Guestbook http://www.gaylenandmargie.com/phpwebsite
"Mitja Pag
php-general Digest 17 Nov 2001 17:29:19 - Issue 1000
Topics (messages 74965 through 74986):
wunderground and php
74965 by: Scott Atkins
74967 by: Fred
Re: alzheimers and confused
74966 by: Fred
74974 by: Robert Klinkenberg
¹Î¿ø»¡¸®´åÄÄ ÀÔ´Ï´Ù
74968
On Sat, 17 Nov 2001, Mitja Pagon wrote:
> I want to know if there is a way to include(require) a file using a path
> relative to web server root.
I think you'll find the $DOCUMENT_ROOT environment variable handy :)
~Chris /"\
I would think it's an HTML problem, try:
echo "";
or
echo '';
Jeff
- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, November 17, 2001 11:20 AM
Subject: [PHP] problem with image
> when i want to put an image like this (echo "";), my
> php is not
when i want to put an image like this (echo "";), my
php is not able to show the image?
is there something wrong with my php.ini??
greetings
wolf.dietrich von loeffelholz
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mai
Hi!
I want to know if there is a way to include(require) a file using a path
relative to web server root.
I'm aware of the fact that you can specify include path, but I believe that
this is not the best solution, since applications written that way aren't
easily portable.
What I'm looking for i
There are a number of things that could be wrong. It is difficult to tell
without knowing any details. I am drawn to the fact that you are just
assuming the web root. I don't know if you installed from RPMs or source,
but if var/www/html is not set as Apache's document root when you point
Konqu
The current php will work with apache 2.x
use:--with-apxs2
when you configure php
Jobarr wrote:
> I need a build of PHP that can be used as a module with Apache 2.0.28 beta.
> Anyone know where I could find one?
>
> thanks
> -Jobarr
>
>
>
>
--
Vincent Stoessel [EMAIL PROTECTED]
Java
OK, I found some hints in the annotated manual.
BTW, I'm looking for hearing any comments on this ...
- Original Message -
From: "Papp Gyozo" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, November 17, 2001 11:19 AM
Subject: [PHP] xslt function documentation
>
Hi,
I'm a newbie to php having been working with coldfusion for years.
Recently decided to test it out and have configured a box with Red Hat
Linux 7.1, kde, apache and mysql. These all seem to be running fine but
I can't seem to get a php page to translate.
Im assuming that the web root is var
Hi,
I'd like to know if someone out there knows a good tutorial or
some simple examples about how to use xslt functions.
The manual says the xslt ext is in experimental phase and so
the documentation lacks of even good examples or description
of the function arguments.
I've already r
Thanks Jason and Christoper for replying, here is the solution I came up
with. It takes into account that there could be multiple instances of what
I'm looking for on the same line - got it working late last night:
while (preg_match ("//",$curline,$tags))
$curline = preg_replace("//",${$tags[
You could check the list archives... This question flys by every week or
two...
-Jason Garber
IonZoft.com
At 01:41 PM 11/17/2001 +0530, Adrian D'Costa wrote:
>Hi,
>
>Is there somewhere on the PHP site that give a list of advantages, speed,
>etc in comparsion with other similar programs. I hav
It seems to me that the use of a temp variable may be the clearest
solution, and I doubt any overhead would matter really.
$a = "dog";
$tmp = "MY".$a; //$tmp = "MYdog";
So the following two would be the same:
$$tmp = "Spot";
$MYdog = "Spot";
Good Luck,
Jason Garber
IonZoft.com
At 09:47 PM 11
It depends on how you exactly formulated the test
// if((!strpos($yourimage, ".jpg")) or (!strpos($yourimage, ".jpeg")))
if((!strpos($yourimage, ".jpg")) and (!strpos($yourimage, ".jpeg")))
THe first is
if !jpg or !jpeg
while the second if statement tests for
if !jpg and !jpeg
another wa
Hi,
Is there somewhere on the PHP site that give a list of advantages, speed,
etc in comparsion with other similar programs. I have a client that is in
ASP and would like to move to PHP and need this info.
Thanks
Adrian
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mai
55 matches
Mail list logo