Jack,
Thanks a lot for you help.
I did actually work out the logistics of the code and
it's doing fine. It's probably a solution to my
problem, there's only a couple of things though :
a) I got about 800 plus records in the table. And
there's a lot of empty or duplicate records in there
which n
you can use regluar expressions, or single character scanning via for loop,
1)RegExp:
if (ereg('[^a-z0-9]', $name)) print 'error!';
2)For loop
for ($i=0;$i wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Anyone know a good PHP function or script to scan a string for Valid
> Chara
haven't you tried to add a CC to the header?
$mailheadrs .="Cc: [EMAIL PROTECTED]\n";
"Anthony Ritter" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Is there any way to add an *additional* e-mail address - a cc - besides
the
> one that is already in the $to v
I checked openlinksw and the driver for Progress 9.1b is indeed available...
(for client is Linux glibc2.1 (x86) and server is UnixWare 7 (x86))
...but we are on Progress 9.1c.
When will the Progress 9.1c driver for this client/server config be
available?
Regards,
Simon.
> -Original Messa
On Sat, 17 Nov 2001, Jason G. wrote:
> You could check the list archives... This question flys by every week or
> two...
Thanks, but browsing is one thing I am still to get used to :) I like
things in my mail box.
Adrian
>
> -Jason Garber
> IonZoft.com
>
> At 01:41 PM 11/17/2001 +0530, Ad
Hi,
I already run php site www.body-builders.org but I wanned to add to it mailing list
like this one at
php.net I understand general algorithm of it but as newbuy I don't know how MySQL
database
can receive mail and then add it to the base?
so my question is how do i make MySQL database to
> Hi there.I just want to know if the following code is suppose to work or
> not?
> I thing it must work!
> Is there something wrong with my while() funtion or must i use other
> functions?
>
> $query = "SELECT co_id FROM employee ORDER BY co_id";
> db_connect($query);
> while($row=db_rang
php-general Digest 19 Nov 2001 09:39:20 - Issue 1003
Topics (messages 75039 through 75081):
PHP mail() function. Help please...
75039 by: Anthony Ritter
75040 by: Avdija A. Ahmedhod¾iæ
75052 by: Anthony Ritter
Re: building a php based subscription site (not a porn
Does anyone have any idea how i can detect a clients
IP address? I've found javascripts on the net but
they only work on netscape and only when java is
enabled. I need it to work on IE.
Thanks!
Heidi
=
Heidi Belal
ICQ# 32127109
A bus stops at a bus station.
A train stops at a train station
some loggings:
$LogIp1 = getenv("REMOTE_ADDR");
$LogIpaddr = gethostbyaddr($LogIp1);
$LogIpname = gethostbyname($LogIp1);
$LogBrowser = $HTTP_USER_AGENT;
$LogReferer = getenv("HTTP_REFERER");
Sjoerd van Oosten
Digitaal vormgever [EMAIL PROTECTED]
Datame
Well, I tried the following script which works:
";
$i++;
}
?>
but the following does not:
";
$i++;
}
?>
That is the same code as yours. It generates an array in the first while
loop and prints each value in the second one.
--
PHP General Mailing List (http://www.php.net/)
To
Hi Heidi,
>Does anyone have any idea how i can detect a clients
>IP address?
in PHP:
best,
Sebastian
--
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: [EM
mm, thats true - there is no compiler as such. PHP probably isnt the right
language for you in this case :(
--
Shane
On Sunday 18 Nov 2001 11:43 pm, John Monfort wrote:
> I just got it.
> So far, it doesn't look like it lets convert your code to a .exe code.
> My client's scoring logic is
Shane Wright wrote:
>
> mm, thats true - there is no compiler as such. PHP probably isnt the right
> language for you in this case :(
Dirty windows hack: http://www.deskcode.com/phpcompiler/
Ulf
--
NetUSE AG Dr.-Hell-Straße Fon: +49 431 386 436 00
http://www.netuse.de/ D-2
What is a << Warning: Invalid preceding regular expression >> mean when
running a page?
Output ---
Warning: Invalid preceding regular expression in /ereg.php on line 4
PHP Page Source -
<%
function invalid_string($string,$valid) {
for ($i
Ulf Wendel wrote:
>
> Shane Wright wrote:
> >
> > mm, thats true - there is no compiler as such. PHP probably isnt the right
> > language for you in this case :(
>
> Dirty windows hack: http://www.deskcode.com/phpcompiler/
Uuups, that one is broken. But there's somethink like that. I once
do
Ulf Wendel wrote:
> > Dirty windows hack: http://www.deskcode.com/phpcompiler/
>
> Uuups, that one is broken. But there's somethink like that. I once
> downloaded it. It's integrating the PHP script and the PHP interpreting
> into one .exe-File.
Here's the announcement:
http://www.phpbuilder.c
Hi,
I have installed PHP 4.0.4pl1 on a Sun/OS 5.6 server with iPlanet Web
Server 4.1. I want to access to an Oracle database with the OCI8
librairies. I have an Oracle client 8.1.5 installed on my server.
I have recompiled my PHP with these options :
./configure --prefix=/usr/local/p
I installed Apache, mySql and php from the redhat installation disk when
it first installed the operating system.
Apache and MySql are working fine but php isn't.
Checked the httpd.conf file and found this info:
LoadModule php4_module modules/libphp4.so
That file is there. The web root is var
On Mon, 19 Nov 2001, Douglas McKenzie wrote:
> That file is there. The web root is var/www/html
>
> So the question is, when I put a .php file there, why doesn't it run?
> Why does it return the page as code?
Edit the httpd.conf file. Look for .php . You'll probably find the line
that loads
I've got this:
AddType application/x-httpd-php .php4 .phtml .php
AddType application/x-httpd-php-source .phps
There no '#' marks at start of line so Im presuming that its running. However, the
only mod_php4.c on the system is in the folder where I gunzip'd the php file. I
haven't run th
Hi,
Thanks but,
header("Content-Type: text/html;
charset=windows-1256");
header("Content-Language: fa");
can not work and Farsi messages not shown.may be that
there was another way for define Arabic code page.
Thanks advance.
__
Do You Yahoo!?
Fi
It seems like that project vanished...none of the urls worked.
Thanks for the help!
__John Monfort_
_+---+_
P E P I E D E S I G N S
www.pepiedesigns.com
"The world is waiting, are you ready?"
-+__
On Mon, Nov 19, 2001 at 12:54:05PM +0100, Damien LEBLANC wrote:
> Hi,
>
>I have installed PHP 4.0.4pl1 on a Sun/OS 5.6 server with iPlanet Web
> Server 4.1. I want to access to an Oracle database with the OCI8
> librairies. I have an Oracle client 8.1.5 installed on my server.
>
> I have r
I needed this once, but I could not figure out how to just create the vars
in current scope.
If my_extract() is called from within a function, then the variables will
not be available unless you declare them global (which kinda makes the
function pointless).
Any ideas?
-Jason Garber
IonZoft.
Use the $HTTP_SERVER_VARS['REMOTE_IP'] variable...
At 01:58 AM 11/19/2001 -0800, Heidi Belal wrote:
>Does anyone have any idea how i can detect a clients
>IP address? I've found javascripts on the net but
>they only work on netscape and only when java is
>enabled. I need it to work on IE.
>Than
I believe that there is something like crontab for windows... If not, then
you could write one in C or C++ or VB etc...
From apache/mod_php, set a marker in a file, or in a db.
Every minute, or 5 minutes, or 15 minutes (you decide), your crontab
equivalent will call a cgi/php script that che
Well, you can make good use of regular expressions, or write your own function.
(It turns out i needed the functions, so I just wrote them, and included
them here)
**
//This regex checks for > 1 letters in a string - anything else will fail
if
We are not writing in perl...
Php offers a very handy feature, the ability to go in and out of html/php
code by just using and the ability to echo data by using
Seperate as much of your HTML from your PHP as possible. It will assist in
readability, and
maintenance.
there is 'at' program in windows2k (try it at the console)
- Original Message -
From: "Jason G." <[EMAIL PROTECTED]>
To: "Chris Lee" <[EMAIL PROTECTED]>; "'John Monfort'"
<[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Monday, November 19, 2001 1:16 PM
Subject: RE: [PHP] How to create
Daniel Persson wrote:
>
> I got this error message when using PHP 4.06 with MSSQL.
>
> PHP ERROR: PHP build incomplete: the prerequisite MS SQL Server support
> required to read the alert database
> was not built into PHP. Please recompile PHP with the necessary library
> (--enable-mssql).
>
>
Hi there. How would I go about downloading a file off of the server. The
filename will always be the same in my case. Say it is sitting in a
directory called 'textfiles'. What method/function would I use to download
it to a user's local system?
Thx Joe:)
--
PHP General Mailing List (http://ww
What kind of error message do you get? Anything in the web server logs? My
guess would be that you do not have your all of your oracle environment
variables set up.
-Original Message-
From: Damien LEBLANC [mailto:[EMAIL PROTECTED]]
Sent: Monday, November 19, 2001 6:54 AM
To: [EMAIL PR
I am setting up a new system for a friend and am getting the following error
when running ./configure -
/usr/libexec/elf/ld: cannot find -lgd.
error code 1
This machine is a default install of FreeBSD4.4, Apache-1.3.22, MySQL-3.23.44
and PHP-4.0.6. I have set this same system up on several oth
Mweb,
The iODBC site is back up; I recommend downloading the iODBC SDK and using
that.
I apologize for the inconvenience; we had a power station fire in the
neighborhood!
Best regards,
Andrew Hill
Director of Technology Evangelism
OpenLink Software http://www.openlinksw.com
Universal Data Acces
Simon,
You may use the 91b driver against a 91c database, connecting in sockets, or
you may use the 91 object file we ship and relink it against your 91c
installation to produce a shared-memory version.
Best regards,
Andrew Hill
Director of Technology Evangelism
OpenLink Software http://www.ope
I don't know if this is the right place to ask this (there is no .news.admin
group on news.php.net), but where is the right place to look for support for
OOP PHP programming.
Any newsgroups, mailing lists?
Maybe opening a group in this hierarchy named php.oop?? Where is the right
place to ask fo
Hey Guys and Girls,
I'm selecting a datetime value from SQL Server. In the database the data
looks like:
2001-11-16 18:33:56
When I print out the results on the page I get this:
1005958764
This is how I'm displaying the data:
while(!$rs->EOF)
{
print("" . $dtmDate->va
try using the date() with the field content.
string date (string format [, int timestamp])
"David Mitchell" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hey Guys and Girls,
>
> I'm selecting a datetime value from SQL Server. In the database the data
> looks
I've modified a couple of php scripts that are working quite well. They are
simple form/email scripts.
I have hit a road block with a counter that I need.
I need a counter that starts with i-1 and will increment by 1 after each
confirmation of a reservation form.
I don't necessarily have t
Hi,
I would like to know how to use PHP & Apache to add system user. Eg. #
Adduser mark
I am seeking advice, so should I use suexec to perform the task or
others.
Thank you
Mark Lo
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For a
Hi there. I managed to get the prompt for a file download when a user clicks
on a text link. The file downloads properly to the client machine, howevr,
when I open up the file there is no content. What do I have to add to the
following code to get the content sent back to the user?
Thx Joe :)
Hy,
I'm trying to post image files to a php script with another php script.
Don't ask why, it's a crazy project :)
Now the file is around 28000 bytes but the post receiver only gets
around
300 bytes. Has anybody experienced this behaviour?
I use the following script:
--- snap ---
http://www.ser
Hello All,
I am looking for example code demonstrating the ability to dynamically
modify website navigation based upon data in a database. Specifically what I
am trying to figure out is how to control what pages are available based
upon whether they have been "enabled" in the database. I am deve
Well, I don't really get what is your problem here. :-)
You said people must 'enable' pages to have it available. Is it not only a
matter of checking this 'enabled' flag? For example a database table with a
column named 'enabled', and others 'link' and 'text':
(example for mysql)
I am looking for someone to help maintain and work on our web page. We have
several PHP pages and can't find anyone locally who knows php.
Thanks,
Peter
800.333.9302
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [
Hi,
You could try using a DHTML menu like the one at
http://www.milonic.co.uk/menu
The array of elements needed can be generated using PHP based on certain
criteria.
Let me know if you or anybody else would like a PHP script creating so that
you could generate menus based on values that you hav
Hi all,
I have Debian Sid, I have Apache installed by source, and am trying to
install the source of PHP4.0.6. For reasons I won't go into, I cannot
use the Debian packages of Apache or PHP.
The problem is when I come to configure PHP with mysql support. I have
MySQL debs installed: mysql-server
> Do you have appropriate permissions in the directory you are runnning
> configure in for the user running configure??
Yes.
I'm r00t
--
Roy Sigurd Karlsbakk, MCSE, MCNE, CLS, LCA
Computers are like air conditioners.
They stop working when you open Windows.
--
PHP General Mailing List (http:/
I am trying to convert an ip address to a computer name. Then I am putting
it into the mail() script. However, when I do this it come up blank. I am
putting $r_hostname in the mail() script. Can anyone tell me why its not
working? The script I am using is:
Thanks,
Ben
--
PHP General Mai
Hi Everyone!
I have the HTTP reference book. Honestly, I don't know a lot about HTTP
language or protocol. I am supposely to write the HTTP script to connect to
the one of hte machine on the internet, then use authentication, then send
data and receive data, then close the connection. It i
Hi,
Thanks to all that helped me out yesterday.
I'm using PHP with Apache on a MS Windows 98 box.
I would like to include a cc to another e-mail adresss when sending an
e-mail.
In addition I would like to *receive* and *also have the cc person receive*
this e-mail as well.
Right now, I am rece
"Bcc: [EMAIL PROTECTED],[EMAIL PROTECTED]"
Or
"Cc: [EMAIL PROTECTED],[EMAIL PROTECTED]"
Or
"To: [EMAIL PROTECTED],[EMAIL PROTECTED]"
Put a comma between email addresses.
-Jason Garber
IonZoft.com
At 01:00 PM 11/19/2001 -0600, Anthony Ritter wrote:
>Hi,
>Thanks to all that helped me out yesterd
My ignorance with databases will probably show here, but I haven't been
able to solve this myself so I thought I'd post.
I'm working on converting a DB driven site using mysql specific commands
to the PEAR DB method.
One of the fields I have in my mysql database is a auto_increment
primary ke
Hello,
I'm trying to come up with a workable solution to implement version
control for our site. I have developers that use windows, and don't
know too much about the unix command line, so I'd prefer to use a
windows client to work on the site if possible.
I'm looking into CVS for the
Hi Jeff
There is a Windows version of WinCVS (see http://wincvs.org/ ).
John
Jeff Bearer <[EMAIL PROTECTED]> wrote in message
1006195598.1407.7.camel@jbearer">news:1006195598.1407.7.camel@jbearer...
> Hello,
> I'm trying to come up with a workable solution to implement version
> control for our
John is right. Use something like WinCVS. Then you can either setup
virtual hosts for each developer to have as their "sandbox" on the
development server or you can allow the developer to run php on his/her
own box and check in to the development server when they check into
CVS. There are p
I'm maybe a little unclear on exactly what you want. It says Version
Control in the subject, but then PHP debugging and such is discussed below.
To me the two are independent subjects. So, some more general info...
For version control I'd suggest either CVS or Perforce, depending on budget
:)
On 19 Nov 2001, Jeff Bearer wrote:
>-Is anybody doing something like this with their PHP development? Any
>-direction from a working implementation would be great. And what do you
>-think about the VNC idea that I just came up with?
>-
VNC in a fine tool, but I think not needed for this. Here i
My website has a navigation menu that is written to the browser depending on
what vars are set in the php script. I store all the link names in an
array, then simply do a 'foreach' loop to write the output. This would
allow me to add another menu item by just adding it into the array.
Simple ex
You can just link to the file eg
download file
just make sure the path is correct.
Joe Van Meer wrote:
> Hi there. How would I go about downloading a file off of the server. The
> filename will always be the same in my case. Say it is sitting in a
> directory called 'textfiles'. What method/fun
Where are you located?
__John Monfort_
_+---+_
P E P I E D E S I G N S
www.pepiedesigns.com
"The world is waiting, are you ready?"
-+___+-
On Mon, 19 Nov 2001, Peter Marrocco wrote:
> I am lo
Hi,
I have a form (POST method), that creates a back-up of a MySQL database as
an SQL file when submited. I am looking for a way to automate this task (ie
on a daily basis at midnight).
Any idea on how to do it in PHP? (if it is possible)
Thanks
Gab
--
PHP General Mailing List (http://www.p
cron either a php script itself [if you've got it installed as a cgi] or a
lynx request of the page
check the archives as well [marc.theaimsgroup.com] because this comes up
every week or so
- Original Message -
From: "Gab" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, November
Set up a crontab that uses wget to hit that page everyday at midnight.
You should use the flag in wget that tells it to delete the page that it
downloads. I use that method sometimes.
Tyler
- Original Message -
From: "Gab" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, Novem
thanks for a quick response but I have a major problem with that:
no shell access => can't use cron
Any other idea?
Gab
"Jack Dempsey" <[EMAIL PROTECTED]> wrote in message
005401c17137$b930af00$[EMAIL PROTECTED]">news:005401c17137$b930af00$[EMAIL PROTECTED]...
> cron either a php script itself
you need some way of automating the process, and without cron automatically
doing things for you, you're going to be pressed for a solution...i'm not
sure what you could do because you need something to do this
automatically...your host doesn't provide perl scripts to be cronned or
anything like t
> thanks for a quick response but I have a major problem with that:
> no shell access => can't use cron
Your Windows task manager? Just set it up to go to that page
every night at your (not the server's) midnight...
Chris
I'll check with the tech support but nothng is mentioned on the website.
I can transform the method into GET on the form, and could call the script.
The only way I see so far is using thi URL as a default page in my Win
browser and automate sschedule the task in windows, but i don't like that.
Hi!
How do I send the username and password to the port and recieve a
response saying hte username & password is accepted or fail???
Thanks,
Scott
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECT
hey there -
i've been going crazy trying to figure out how to add news items to the top
of an already existing txt file containng previous news posts. While I'd
love to change the system so everything is database-driven (as most of the
rest of the site is), this news area has so much news posts
Hello,
On Wed, Oct 31, 2001 at 03:26:44PM -0500, Liz Fulghum wrote:
> if ($REMOTE_ADDR=="127.0.0.1") {
> do something
> } elseif ($REMOTE_ADDR=="remote.somewhere.com") {
> do something else
> } else {
> eeks! its the end
> }
But how to easily accessing the whole environment. For exam
You can launch IE with an address as a paramater from task scheduler.
Example:
C:\PROGRA~1\INTERN~1\IEXPLORE.EXE http://somehost.com/somepath/somescript.php
Matt.
"Gab" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I'll check with the tech support but not
Has anyone been able to run PHP 4.06 as a module on windows 98? Every
time I have tried, using the install directions I get an error on
starting Apache.It tells me it take two arguments, a module name and
shared object file what am I doing wrong?
Gary
--
PHP General Mailing List (http://www
thanks,
That's what I did, and it works fine, was just hopping to find another way
than using cron, but still as a server-side script.
Gab
"Matthew Moreton" <[EMAIL PROTECTED]> wrote in message
018c01c1713f$d98f9ab0$0100a8c0@summy">news:018c01c1713f$d98f9ab0$0100a8c0@summy...
You can launch IE w
Hi, I wonder how could I do a script for print direfent data on
diferents columns from a table...
I mean this
$result = mysql_query("SELECT * FROM xxx");
while(($row = mysql_fetch_array($result)){
echo "
echo "
echo "".$row[id]."\n";//id for the firt record ex:1
echo "".$row[id
hey guys..
does anyone have any ideas on how to export information from a mysql
database to microsoft word, excel, access, note pad or any other such
application?
Regards,
Kunal Jhunjhunwala
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For addit
I need something that will do a direct transfer to word or excel or the
others.. not something via a cvs method..
Regards,
Kunal Jhunjhunwala
- Original Message -
From: "Joshua Hoover" <[EMAIL PROTECTED]>
To: "Kunal Jhunjhunwala" <[EMAIL PROTECTED]>
Sent: Tuesday, November 20, 2001 3:39 AM
> I need something that will do a direct transfer to word or
> excel or the others.. not something via a cvs method..
Excel loads comma separated (CSV - CVS is something else entirely)
files happily.
Jason
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTEC
Hi,
Some RegExp help here would be great... how do I strip one (or more)
's from the END of a string?
Many thanks,
Justin French
--
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 a
echo "".$row[id]."\n";//id for the firt record ex:1
echo "".$row[name]."\n";//id for the second record ex: 2
or
echo "".$row[0]."\n";//id for the firt record ex:1
echo "".$row[1]."\n";//id for the second record ex: 2
is that what you mean?
--
Chris Lee
[EMA
My browser show the message
“Parse error: parse error in C:\apache\htdocs\prueba\prueba.php on
line 21”
when i try to connect to a mysql server (v.3.23) using the follow syntax:
I read the php manual and the mysql manual, but I can’t find the
solution.
My server run under w98. (I installed t
I dont know if Im pointing out the obvious or if you orgot to post more
code.
--
Chris Lee
[EMAIL PROTECTED]
"Joe Van Meer" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi there. I managed to get the prompt for a file download when a user
clicks
>
I found the way...
$i = 0;
$result = mysql_query("SELECT * FROM sometable");
echo " \n";
while($row = mysql_fetch_array($result)){
echo "".$row[id]."\n";
if($i % 2 == 1){
echo " \n";
echo " \n";
}
$i++;
}
echo " \n"
Hi
I'm trying to transfer a variable from one web-page to another
The source page (http://astenios.hn.org/php/wall.php) is like
echo ' ';
echo '', $row[1], ' ';
and target(http://astenios.hn.org/php/detall.php) catch it by:
$codi = urldecode($codi);
echo 'codi = ', $codi;
This do not work.
Hi Nicolas,
@ 5:26:44 PM on 11/19/2001, Nicolas Llamosas wrote:
NL> line 21à$link = mysql_connect ("localhost", "my_user", "my_pass") {
NL> or die ("Could not connect");
NL> }
NL> print ("Connected successfully");
NL> mysql_close ($link);
You want:
$link = mysql_connect ("localhost", "
Hi Justin,
@ 5:20:15 PM on 11/19/2001, Justin French wrote:
JF> Some RegExp help here would be great... how do I strip one (or more)
JF> 's from the END of a string?
Are they always at the end of the string? No more anywhere else on the
line?
$string = str_replace('','',$string);
$string = st
this is fine as any of a place to ask OOP questions :)
--
Chris Lee
[EMAIL PROTECTED]
"Roko Roic" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I don't know if this is the right place to ask this (there is no
.news.admin
> group on news.php.net), but w
Hi Astenios,
@ 5:35:28 PM on 11/19/2001, astenios wrote:
a> I'm trying to transfer a variable from one web-page to another
a> The source page (http://astenios.hn.org/php/wall.php) is like
a> echo ' >';
a> echo '', $row[1], ' ';
Try:
--
-Brian Clark | PGP is spoken here: 0xE4D0C7C8
Hi Gary,
@ 4:42:20 PM on 11/19/2001, Gary wrote:
G> Has anyone been able to run PHP 4.06 as a module on windows 98? Every
G> time I have tried, using the install directions I get an error on
G> starting Apache.It tells me it take two arguments, a module name and
G> shared object file what am
Sorry, yeah, there are other 's in the string... I only want to chop
the trailing ones.
Justin
Brian Clark wrote:
>
> Hi Justin,
>
> @ 5:20:15 PM on 11/19/2001, Justin French wrote:
>
> JF> Some RegExp help here would be great... how do I strip one (or more)
> JF> 's from the END of a string
Hi Justin,
@ 5:51:23 PM on 11/19/2001, Justin French wrote:
JF> Sorry, yeah, there are other 's in the string... I only want to chop
JF> the trailing ones.
>> $string = preg_replace('/()+$/i','',$string);
^^^ that'll do it then.
--
-Brian Clark | PGP is spoken here: 0xE4D0C7C8
Please, DO N
Hi
$sql = "SELECT user FROM persons WHERE user = '$firstName' and domain = '$domainName'
; ";
$result = mysql_query($sql,$connection ) or die(mysql_error());
Calling above lines from php returns: You have an error in SQL syntax near ';' at
line 1
Issuing the command
SELECT user FROM pe
Hi Olav,
@ 5:58:14 PM on 11/19/2001, Olav Drageset wrote:
OD> Hi
OD> $sql = "SELECT user FROM persons WHERE user = '$firstName' and domain =
'$domainName' ; ";
Remove the semi-colon:
$sql = "SELECT user FROM persons WHERE user = '$firstName' and domain = '$domainName'";
--
-Brian Clark | P
Hi pjc,
@ 7:59:51 PM on 11/19/2001, pjc wrote:
p> The error that I am getting on delete_entry.php is that my variables aren't
p> there. Any suggestions folks?
Copy and paste the exact error message and repost it here.
--
-Brian Clark | PGP is spoken here: 0xE4D0C7C8
Please, DO NOT carbon co
remove the ";" at the end...
mysql_query() doesn't need it... since it only executes on atomic command,
the ";" is useless..
that's what's causing the error...
At 22:58 19/11/01 +, Olav Drageset wrote:
>Hi
>
>$sql = "SELECT user FROM persons WHERE user = '$firstName' and domain =
>'$domai
Does anybody have an easy script that send form results to a .txt file in
comma separated format.
Thanks,
Ben
--
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-ma
You don't need to put in the final semi-colon when running a query from
php. Take that out and you should be fine.
-Steve
On Monday, November 19, 2001, at 04:58 PM, Olav Drageset wrote:
> Hi
>
> $sql = "SELECT user FROM persons WHERE user = '$firstName' and domain =
> '$domainName' ; ";
> $r
Hi everyone,
I just downloaded phptriad, which installs apache/php/mysql/perl on a win
system. Im not sure on the language, but I want to be able to define virtual
directories. Currently everything under /apache/htdocs/ is accessible from
the browser, ie test.php located at c:\apache\htdocs\test.
- Original Message -
From: "pjc" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Monday, November 19, 2001 5:59 PM
Subject: [PHP] [newbie] passing variables
> I just started playing with PHP and MySQL and am building an online
> phonebook for myself.
>
> From my '
1 - 100 of 142 matches
Mail list logo