First of all, are they paying you to automate or to repurpose the content
for the web? Taking a page designed for print and then automating it into
a page for the web is the wrong approach, your problem is not technical it
is a design problem. Technically it is easy, I think, does Quark not have
and what problem is that?
how about just using the example?
http://www.php.net/manual/en/function.file.php
$lines = file ('http://www.example.com/');
// Loop through our array, show html source as html
source; and line numbers too.
foreach ($lines as $line_num = $line) {
echo Line
Right, well there's a few issues here.
1.
You're asking if there's a way to parse a QXD file so retrieve the text from
it. I doubt this can be done. I had a quick google for it, to no luck. I
also bothered to open up a Quark 3.32 file in my text editor, to check out
the source. It looks
Hi,
Friday, February 28, 2003, 12:20:38 PM, you wrote:
RK I really need somebody to help me with this I am totally lost on what
RK to do
RK I need a way to read the following text file and add to or delete from
RK or change the data.
RK I have been able to move it all into an array using this
Please don't send MS Word content in your email. It crashed Mozilla before
I was able to reply.
Karl James wrote:
Hey guys I finally got my phpinfo
file to show on apache server
But when I try to do a hello world or browser check
I
G'day Karl
Hey guys I finally got my phpinfo file to show on apache server
But when I try to do a hello world or browser check I get a 500 error
message
FWIW, I've seen this error when I've had mac line endings instead of unix.
cheers
kim
--
PHP General Mailing List
There is no need to post this thrice.
Anyway. What went wrong? Did you get an error message? Are both sites on
the same machine?
At 18:40 25-2-03, you wrote:
Hello all,
I am having problems with a script. The script works great on one of my
sights, however, when I transferred it to
://www.nypalet.com/Mail.html .
I do not know jack about PDP, I got the script from www.flashkit.com.
Thanks so much for the response.
Mark J
- Original Message -
From: Chris Hayes [EMAIL PROTECTED]
To: bionicegg [EMAIL PROTECTED]
Sent: Tuesday, February 25, 2003 1:07 PM
Subject: Re: [PHP] help please
Do you need an answer for each of the times that you posted it?
1) Posting code is good, however telling us it doesn't work is no
good. What are the error messages, if any? Why is it not working, ie
what did you expect it to do?
2) What version of php on the old site as compared to the new
It would be helpful to find out what error messages you are getting when you run the
script.
if(!mail($ToName. .$ToEmail.,$ToSubject, $EmailBody, From:
.$FirstName..$Email.)) die(Unable to send message);
would be a good start. I'm not sure if there is a system error you could replace
unable to
, 2003 1:20 PM
Subject: Re: [PHP] help please
Do you need an answer for each of the times that you posted it?
1) Posting code is good, however telling us it doesn't work is no
good. What are the error messages, if any? Why is it not working, ie
what did you expect it to do?
2) What version
Hi!
...and then Fat Lizard said...
%
% Hi,
% I'm trying to use move_uploaded_file, but so far with no success, no matter
% what I try.
Do you have register_globals turned on?
Did you really use input name='userfile' in your form code?
Are you sure that $userfile has a value? What is it?
input name=add type=checkbox id=add[] value=179
Does id even exist?
HTH
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
:[EMAIL PROTECTED]
Sent: Sunday, February 23, 2003 2:42 AM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Help with Multiple Checkboxes
input name=add type=checkbox id=add[] value=179
Does id even exist?
HTH
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net
+.
---Matt
-Original Message-
From: John Taylor-Johnston [mailto:[EMAIL PROTECTED]
Sent: Sunday, February 23, 2003 2:42 AM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Help with Multiple Checkboxes
input name=add type=checkbox id=add[] value=179
Does id even exist?
HTH
--
PHP General
Hi,
Sunday, February 23, 2003, 10:43:36 PM, you wrote:
HI Hi All,
HI i am new to qmail and linux so bear with me.first of all i would like to clearly
state my situation here.we have to
HI servers linux+windows.we have qmail installed on linux.wesite is hosted on
windows.now i want to create
I am having some difficulty getting a list of check boxes to work
properly. I have dug through the list archives, usenet, PHP Manuals,
etc. and still I am unable to process multiple checkboxes from a form
submission properly. The following is what I am running into.
Form:
input name=add
Oops, just remembered something else; are PHP_AUTH_USER and PHP_AUTH_PW
handled at the client side or sent in clear text back to the server for
processing ? Basically what I'm doing is once they are set is doing a select
from a database like so;
$result=mysql_query(SELECT * FROM users WHERE
Nick,
md5 is a hashing function, not an encryption function. You need anti-replay
if you want the password transfer to be secure
On Tue, 18 Feb 2003, Clarkson, Nick wrote:
Would this pass both variables in clear text back to the server ? If so
would it be better to do this;
[cut]
Would
be
appreciated.
Thanks,
Nick
-Original Message-
From: Peter Hicks [mailto:[EMAIL PROTECTED]]
Sent: 18 February 2003 14:43
To: Clarkson, Nick
Cc: '[EMAIL PROTECTED]'
Subject: RE: [PHP] Help with authentication 'design'
Nick,
md5 is a hashing function, not an encryption function. You need
I've searched the archives, bit it's not helping me much purely because it's
not specific PHP code I'm after, but rather help with a login system design.
So far I've got a PHP_AUTH based login which checks against a MySQL
database, and if the user's details are correct it updates the database
You may want to check out PEAR::LiveUser
http://pear.php.net/package-info.php?pacid=126
http://projects.21st-hq.de/liveuser/
A very complete / multilevel authentication package.
Get the latest source from CVS as the source on pear
site is a bit outdated.
olinux
--- Clarkson, Nick [EMAIL
On Saturday 15 February 2003 17:05, Michael Eacott wrote:
? php
# Show details of BOOKS
# Performing SQL query
$query = SELECT * FROM `$books` WHERE `title` LIKE '$title' LIMIT 99;
$result = mysql_query($query) or die(Query failed);
$count = 1; $bookslist = ;
while ($rowarray =
Jason
Thanks for your help .
I've implemented you advice. The problem persists in that I'm trying
create the following situation:
When the posted action php script runs I want the retrieved $_POST array
to contain such information that the action script can find out what
checkboxes were
On Saturday 15 February 2003 18:38, rentAweek support wrote:
Jason
Thanks for your help .
I've implemented you advice. The problem persists in that I'm trying
create the following situation:
When the posted action php script runs I want the retrieved $_POST array
to contain such
mail($mailto, $mailsubj, $msg, $mailheader);
- where does $mailto come from?
WAW wrote:
Hello All,
I have a problem. I did this form mail script and it is sending the
email to the poster not the email specified in the $mailto. Can someone
help me. Sorry it will be long, the code that is:
make sure that the php3_xml.dll is in your system path and it can be
found.
Ray
On Tue, 2003-02-11 at 07:38, Cavallaro, Vito wrote:
how i do work php with xml?
In php3.ini add extension = php3_xml.dll but not work. is runnig on winnt
workstation
--
PHP General Mailing List
all *.dll are C:\PHP3 but internet explorer make unload the file.xml
-Mensaje original-
De: Ray Hunter [mailto:[EMAIL PROTECTED]]
Enviado el: martes 11 de febrero de 2003 15:06
Para: Cavallaro, Vito
Cc: [EMAIL PROTECTED]
Asunto: Re: [PHP] help me
make sure that the php3_xml.dll
]]
Enviado el: martes 11 de febrero de 2003 15:06
Para: Cavallaro, Vito
Cc: [EMAIL PROTECTED]
Asunto: Re: [PHP] help me
make sure that the php3_xml.dll is in your system path and it can be
found.
Ray
On Tue, 2003-02-11 at 07:38, Cavallaro, Vito wrote:
how i do work php with xml
[snip]
How should I display the page ... the page has a lot of html code and
trying to write echoblah blah blah . ;
will not be a an option. Please suggest a way out .
Use includes:
http://www.php.net/include
And write HTML as HTML:
h3Greetings/h3
pHello b?php echo $username
On Sun, 2 Feb 2003, César Aracena wrote:
Hi all,
I'm sorry for this re-post, but I do need help with this URGENT...
I just finished loading the OS to my PC once again, installed and
configured IIS and then installed PHP 4 but now, every page I try to open
tells me:
Failed opening
Apparently it does not like the function name to be the same as the class
name. So change one of them.
? php;
class first
{
var $age;
var $name;
function first($age, $name)
{
return $age.$name;
}
}
//main script
$first = new first;
Apparently it does not like the function name to be the same as the class
name. So change one of them.
No, what's happening is that when you instantiate an class, it runs
(as a constructor) the function whose name is the same as the class.
So when you do this:
$first = new first;
it's
: Chris Hayes [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, February 03, 2003 7:35 PM
Subject: Re: [PHP] Help with classes (oop)
Apparently it does not like the function name to be the same as the class
name. So change one of them.
? php;
class first
{
var $age;
var
Hi Leonard,
Try this:
? php;
class first
{
var $total;
function first($age, $name)
{
$this-total = $age.$name;
}
}
//main script
$obj = new first(35, chris);
print $obj-total;
?
The problem with what you were doing is that when you
On Monday 03 February 2003 20:45, Chris Boget wrote:
function setData( $age, $name )
{
$age = $age;
$name = $name;
}
Is useless ;-) I think you wanted this:
function setData( $age, $name )
{
$this-age = $age;
function setData( $age, $name )
{
$age = $age;
$name = $name;
}
Is useless ;-) I think you wanted this:
function setData( $age, $name )
{
$this-age = $age;
$this-name = $name;
}
Good
;
return $retval;
}
}
-Original Message-
From: Johannes Schlueter [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 03, 2003 2:59 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Help with classes (oop)
On Monday 03 February 2003 20:45, Chris Boget wrote:
function setData
When you name a function in the class with the same name as the class
itself, this function gets automatically executed upon defining the
object (class). this is called `constructor'.
in your very case, this is the function first, which requires two
parameters to be passed to it. You need to
On Sat, 1 Feb 2003, Hugh Danaher wrote:
echo(| %s | %s | %s | %s | %s |br /, $array[id], $array[username],
$array[password], $array[status], $array[notes]);
try
echo | %s | %s | %s | %s | %s |br /.$array[id]. .$array[username].
.$array[password]. .$array[status]. .$array[notes];
dots
?php
mysql_connect(hostname, mysqluser, mysqlpassword)||die(db error
msg...);
mysql_select_db(databaseName)||die(database error msg...);
$result=mysql_query(select * from table_name);
/*heres the trick*/
while($array=mysql_fetch_array($result)){
printf(| %s | %s | %s | %s | %s |br /, $array[id],
On Sunday 02 February 2003 22:57, anders thoresson wrote:
I'm having trouble designing a good html-form/MySQL combination for an
access rights system.
[snip]
You may want to have a look at this:
http://phpgacl.sourceforge.net
It seems to provide a very comprehensive system for setting
Make a php file with nothing but this in it
?php
phpinfo();
?
...and hit that in your browser. It will tell you the location of the
ini that it is using.
César Aracena wrote:
Hi all,
I'm sorry for this re-post, but I do need help with this URGENT...
I just finished loading the OS to
I just finished loading the OS to my PC once again, installed and
configured IIS and then installed PHP 4 but now, every page I try to
open
tells me:
Failed opening required '/icaam7/lib/stdlib.php'
(include_path='.;c:\php4\pear')
Since there's a slash at the beginning, it's looking for
echo(| %s | %s | %s | %s | %s |br /, $array[id], $array[username],
$array[password], $array[status], $array[notes]);
try
echo | %s | %s | %s | %s | %s |br /.$array[id]. .$array[username].
.$array[password]. .$array[status]. .$array[notes];
dots not comas between variables.
Hope this helps.
Hugh
On Sat, 1 Feb 2003, Karl James wrote:
Hello guys and gals!!!
can you tell me why i can't get this script to print my
table
thanks Karl
please check out the code below
obviously i left my username and passwords blank :-)
Pervasive login methods such as the one you've devised are the best way to
have a password protected region on your website. However it will only work
on pages that are parsed by PHP. In order to protect plain text or HTML
files they will have to be stored outside of your public directory and
Try fstat() function on the file pointer - it will return you the various
results, including its size.
--
Maxim Maletsky
[EMAIL PROTECTED]
Rodrigo Corrêa [EMAIL PROTECTED] wrote... :
How do i use the function filesize, because i´m using like:
I just want associate the variable $body
pass it one value at the time:
session_register(valid_user);
session_register(firstname);
session_register(lastname);
Another recommended method is to use superglobal variable $_SESSION. You
can then simply do:
$_SESSION['valid_user'] = $login;
$_SESSION['firstname'] = $first_name;
this means that somewhere (on line 19 of
/home/sisource/public_html/stage/administration/config.php)
there is an output. For sessions to work, session_start() should be
*before* any output was created. Even a new line or a whitespace would
break it.
--
Maxim Maletsky
[EMAIL PROTECTED]
Isnt it better to do it in this way?
Better than what?
session_start();
session_register('USER');
$USER['valid'] = true;
$USER['firstname'] = $first_name;
$USER['lastname'] = $last_name;
Then I really know what I am doing!
It's personal preference... whatever you understand.
I'd
Are you sure $first_name and $last_name have a value? Double check...
---John Holmes...
- Original Message -
From: Pushpinder Singh Garcha [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, January 27, 2003 4:44 PM
Subject: [PHP] help needed with session variables
hello,
I am
--- Patricio Vera S. [EMAIL PROTECTED] wrote:
I new to the php world ant the image too, and I need
modify the header information in a JPEG image file,
is that possibly? How?
Those are EXIF headers. I am not sure if there is support
for modifying them (aside from doing it manually yourself),
--- Chris Shiflett [EMAIL PROTECTED] wrote:
--- Patricio Vera S. [EMAIL PROTECTED] wrote:
I new to the php world ant the image too, and I need
modify the header information in a JPEG image file,
is that possibly? How?
Those are EXIF headers. I am not sure if there is
support for
- Original Message -
From: Didier McGillis [EMAIL PROTECTED]
Sent: Monday, January 27, 2003 7:14 PM
Subject: [PHP] HELP session cache limiters
Any thoughts on this error?
Warning: Cannot send session cache limiter - headers already sent (output
started at
Nevermind, I have found the person who fooled with the code and then lied
about being in the file.
From: Matt [EMAIL PROTECTED]
To: Didier McGillis [EMAIL PROTECTED], [EMAIL PROTECTED]
Subject: Re: [PHP] HELP session cache limiters
Date: Mon, 27 Jan 2003 19:48:31 -0500
- Original
R'twick Niceorgaw wrote:
Hi all,
I'm pretty much a stranger to perl and now got to convert a perl script to
php. however, at once place I can not understand what the lines are doing
and what could be the equivalent of them in php. Could some one help me with
this ?
Here's my perl code :
Thanks Sean
That worked :)
-R'twick
- Original Message -
From: Sean Burlington [EMAIL PROTECTED]
To: R'twick Niceorgaw [EMAIL PROTECTED]
Cc: php [EMAIL PROTECTED]
Sent: Friday, January 24, 2003 11:07 AM
Subject: Re: [PHP] help with perl equivalent ?
R'twick Niceorgaw wrote:
Hi all
the only difference to structure is this line is in the first file and not
the second.
fw_menu_2.addMenuItem(STANDARD
PROMOTION,location='http://www.bis.org.in/sf/sfp2.htm');
diff is a wonderful tool!!!
Enjoy
Jim
- Original Message -
From: Amit Gupta [EMAIL PROTECTED]
To: [EMAIL
Hmmm... I was about to reply with a simple solution, but there's a problem with it
that I can't explain. Assuming the text is in $str...
I can't get preg_replace to match a newline at the end of a pattern. If I use...
$str = preg_replace('/\n=.+--\n/sU', '', $str);
...it matches
Hmm... i'm not that advanced...
May be first I replace any string containing --- with ---x, then use
your solution?
[EMAIL PROTECTED] wrote in message
news:r01050400-1023-F7D646F52EC711D78B79003065B83B6C@[208.37.41.173]...
Hmmm... I was about to reply with a simple solution, but there's a
-
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, January 23, 2003 6:44 AM
Subject: Re: [PHP] HELP: Regex pattern matching
Hmmm... I was about to reply with a simple solution, but there's a problem
with it that I can't explain. Assuming the text is in $str...
I can't get
Thanks indeed!
This pattern worked just perfect.
Nasko
1lt John W. Holmes [EMAIL PROTECTED] wrote in message
00e601c2c2e0$0c204720$a629089b@TBHHCCDR">news:00e601c2c2e0$0c204720$a629089b@TBHHCCDR...
If the separators are always the same length, then you can use the
following:
$new_str =
You first file just requires loading into an array and you can use
unique array functions to remove
duplicates etc..
The other files simply load into an array and use preg to strip out what
you want and follow the same
checking and removal of duplicates.
Checkout: preg_match and array functions
In that case, I don't know of any PHP classes to help you.
- Original Message -
From: Didier McGillis [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, January 22, 2003 7:53 AM
Subject: Re: [PHP] HELP please quickly
No. The numbers are coming from two text files. The first text
],
[EMAIL PROTECTED]
Subject: RE: [PHP] HELP please quickly
Date: Wed, 22 Jan 2003 23:26:10 +1000
You first file just requires loading into an array and you can use
unique array functions to remove
duplicates etc..
The other files simply load into an array and use preg to strip out what
you want
]
Subject: Re: [PHP] HELP please quickly
In that case, I don't know of any PHP classes to help you.
- Original Message -
From: Didier McGillis [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, January 22, 2003 7:53 AM
Subject: Re: [PHP] HELP please quickly
No. The numbers are coming
it into an array
which one is better?
From: Timothy Hitchens \(HiTCHO\) [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: 'Didier McGillis' [EMAIL PROTECTED],
[EMAIL PROTECTED]
Subject: RE: [PHP] HELP please quickly
Date: Wed, 22 Jan 2003 23:26:10 +1000
You first file just requires
. The
second file is 7.1MB and seems to fail telling me Fatal error: Allowed
memory size of 8388608 bytes exhausted (tried to allocate 81 bytes)
So it seems to be on hurrdle at a time.
From: Clarkson, Nick [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: RE: [PHP] HELP please quickly
Date: Wed, 22
]
To: [EMAIL PROTECTED]
Subject: RE: [PHP] HELP please quickly
Date: Wed, 22 Jan 2003 14:15:32 -
I'm pretty new to PHP so I can't help you with the code per se, but how
about as an outline;
Open the first file and read values into an array.
Open the 2nd file and read in the first line.
Compare
(
{ fwrite ($results, $buffer); }
}
}
?
-Original Message-
From: Didier McGillis [mailto:[EMAIL PROTECTED]]
Sent: 22 January 2003 14:33
To: [EMAIL PROTECTED]
Subject: RE: [PHP] HELP please quickly
Cool. Thanks for the information. I try and organize my thoughts like
it is placed back into the code.
Any thoughts.
From: Clarkson, Nick [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: RE: [PHP] HELP please quickly
Date: Wed, 22 Jan 2003 15:21:32 -
I managed this bit of code, but I doubt it does exactly what you want, but
it's a start. And just to add to it I
Are the numbers coming from a mysql database? If so, mysql can handle this chore.
- Original Message -
From: Didier McGillis [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, January 22, 2003 7:21 AM
Subject: [PHP] HELP please quickly
Here is a brief description of what I want
, January 21, 2003 5:49 PM
Subject: Re: [PHP] HELP HELP on a file parser
Sorry should have done this.
in.txt (there will be 470 of these #'s) - it uses these numbers to check
against the chek.txt file
455784
455785
455786
455787
455788
check.txt - after it checks this file where number
($results, $answer);
From: 1LT John W. Holmes [EMAIL PROTECTED]
Reply-To: 1LT John W. Holmes [EMAIL PROTECTED]
To: Didier McGillis [EMAIL PROTECTED]
CC: [EMAIL PROTECTED]
Subject: Re: [PHP] HELP HELP on a file parser
Date: Wed, 22 Jan 2003 16:07:17 -0500
Okay, if I understand everything
a number in the in.txt file
$answer = array_flip($intersect);
fwrite ($results, $answer);
From: 1LT John W. Holmes [EMAIL PROTECTED]
Reply-To: 1LT John W. Holmes [EMAIL PROTECTED]
To: Didier McGillis [EMAIL PROTECTED]
CC: [EMAIL PROTECTED]
Subject: Re: [PHP] HELP HELP on a file parser
Date
-
From: Didier McGillis [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, January 22, 2003 4:23 PM
Subject: Re: [PHP] HELP HELP on a file parser
Fixed a couple of things in the code. Pretty good for psudo code. :)
But I get this error when running.
Warning: Argument #1
Karl James wrote:
Parse error: parse error, unexpected '}' in
/home/virtual/site12/fst/var/www/html/Create_Account.php on line 5
http://www.ultimatefootballleague.com/Create_Account.phps
I'm Trying to get the values of the form to echo out and to insert into my
managers table.
If you don't
On Tuesday 21 January 2003 20:13, Dankshit wrote:
Is there a way to autenticate an SMTP server in my PHP.ini???
In my development site, i need to autenticate a SMTP, but in the PHP.INI
does not have an option to autenticate..does anybody has any solution for
this??
There is at least one
I need some help, I think this is probably really simple and I was
wondering
if anyone had some code I could use to help me write this.
I need a page to parse a text file with a list of numbers, and then take
those numbers and parse another file with over 7MB of information and to
look for
you miss a { at first if statement
-Original Message-
From: Karl James [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 20, 2003 12:28 PM
To: php
Subject: [PHP] Help with Error, I am Trying!!
Parse error: parse error, unexpected '}' in
if (!$_POST['Team_Name'] || !$_POST['First_Name'] || !$_POST['Last_Name'] ||
!$_POST['Email'] || !$_POST['Username'] || !$_POST['Password'])
header (location: http://www.ultimatefootballleague.com/Create_Account.htm;);
}
Change to:
if (!$_POST['Team_Name'] || !$_POST['First_Name'] ||
From: James Brennan [EMAIL PROTECTED]
Sent: Tuesday, January 07, 2003 8:29 PM
Subject: [PHP] help - WHILE in FOREACH
The while statement is only executing correctly for the first run through
the foreach loop. Why?
Thanks,
loop
foreach($desc as $key=$value) {
printf(Show %s Description
Is this your exact code? I ask, because the following should generate a parse error:
echo option value = ''/option;
You have 3 double-quotes ().
- Original Message -
From: James Brennan [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, January 07, 2003 7:29 PM
Subject: [PHP] help
The second set of quotes is actualy two single quotes with nothing
in-between.
.loop
From: Rick Emery [EMAIL PROTECTED]
Reply-To: Rick Emery [EMAIL PROTECTED]
To: James Brennan [EMAIL PROTECTED],[EMAIL PROTECTED]
Subject: Re: [PHP] help - WHILE in FOREACH
Date: Tue, 7 Jan 2003 20:18:08 -0600
On Tue, 7 Jan 2003, James Brennan wrote:
The while statement is only executing correctly for the first run through
the foreach loop. Why?
It's /real/ hard to tell when you don't give any context or otherwise
explain what it is you want to achieve. Since the code in fact executes
correctly, we
My appologies for the lack of explicit information. Thank you for taking the
time to write a reply. That is exactly what I needed to know.
Thanks again,
James
From: Chris Wesley [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: [PHP] help - WHILE in FOREACH
Date: Tue, 7 Jan 2003 18:49:53
You need to tell preg_match that there will be multiple characters. Right
now, you're searching for one, and only one.
if (! preg_match ('/^[a-z0-9]+$/', $unchecked_text)) {
The + means one or more matches to the range in brackets.
-- tracy
On 1/4/03 9:03 AM, Anders Thoresson [EMAIL
|$sql = INSERT into $table_name (f_name, l_name, username, password)
Values ('$f_name', '$l_name', '$username', '$password');|
notice the single quotes
Karl James wrote:
Hey guys,
I cant figure out whats wrong with this code.
Im sure its syntax can some one take a look at it and
Help me out
Look at UPDATE at http://www.mysql.com/
*** REPLY SEPARATOR ***
On 03/01/2003 at 6:37 PM Pushpinder Singh Garcha wrote:
hello all
I am using php and mysql in my web application. I am making use of
forms to accept data from the user and add it to the mysql database. I
Without the error message you are making it kind of tough.
What's the response that you get.
Also you should use long ?php and not just ?
Single quote your arrays as in $_POST['f_name'] and not $_POST[f_name]
This will help if you ever move to a serve that's not so lax.
*** REPLY
on 02/01/03 7:54 AM, Karl James ([EMAIL PROTECTED]) wrote:
can someone take a look at this
and see why this wont work.
why don't you start by telling us what's wrong, or HOW it doesn't work?
Justin
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
There's your answer...
You do not have permission to insert into the database with that user.
Contact your DBA! :-)
and if that's you read the MySQL manual.
Especially about the mysql.user table
*** REPLY SEPARATOR ***
On 01/01/2003 at 1:19 PM Karl James wrote:
Access
On Wed, 18 Dec 2002, dreamyman wrote:
1.I want to put my menu in a top frame and when I select a Item ,it can
display it in the frame below.
2.my web has 2 frame ,lefe and right.
but the right has a menu ,so I want to change left frame when select
different menu of left frame.
HTML
Don't post in HTML and are you paying?
---John Holmes...
- Original Message -
From: Mike Bowers [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, December 17, 2002 7:15 PM
Subject: [PHP] Help needed on CMS Project
I'm working on a CMS project. It's based on PHP-Nule but I am
You have error reporting set to display notices, either set your
error_reporting to
error_reporting = E_ALL ~E_NOTICE
or use
if (isset($Array) eregi($Pattern, $Array[URL])) {
New B wrote:
Please help! I am a beginner of php, I got an error from my own webpage:
Notice: Undefined
Why dont you try Post-Nuke :)
Good Luck
Tariq
Mike Bowers wrote:
I'm working on a CMS project. It's based on PHP-Nule but I am re-writing
it to make the DB less used and to clean the code up a bit.
Unfortunately I do not have time alone to do all I want and the last
devs and coders I had
Don't double post and do a little thinking for yourself. The error is
undefined variable: Array. That means that where you are using
$Array[URL], it doesn't have a value, it's, undefined. Where is
$Array coming from, or where do you think it's coming from?
---John W. Holmes...
PHP Architect - A
SpiderWebb wrote:
From: SpiderWebb [EMAIL PROTECTED]
Subject: Help nedded
Date: 09 December 2002 16:46
I dont know if this is possible in PHP (Newbie) im working on a project
where each product has 3 diffierent prices depending on the amount sold so
say for example 1- 100 price A 101-299 price B
Forget my previous advice. I'd misunderstood it.
BABA Yoshihiko wrote:
This seems a matter of database design. For simple solution, use COUNT
in SQL. But having a record for each item would probably exceed the
limit of either harddisc or database one day.
--
BABA Yoshihiko
--
PHP
1201 - 1300 of 1991 matches
Mail list logo