Matthew Weier O'Phinney wrote:
As you can see I need the COUNT value but I not know how get it from =
query using PEAR. Some body can help me?
You'll need to do two different queries, one that counts the number of
total results for the criteria, and one that pulls the set with a LIMIT
statement.
Dear all,
I want get words include today ** tonight on
www.XXX.com/index.html, and then show on my webpage.
Please advise, thanks!
issin
Information from NOD32
This message was checked by NOD32 Antivirus System for Linux Mail Server.
On Apr 12, 2005 9:07 AM, issin [EMAIL PROTECTED] wrote:
Dear all,
I want get words include today ** tonight on
www.XXX.com/index.html, and then show on my webpage.
Please advise, thanks!
issin
Information from NOD32
This message was checked by
You might also look towards the bottom of httpd.conf for any additional
conf files that are to be read. As I recall OSX will look for an
additional conf file by default which may be trying to load the same module.
Prathaban Mookiah wrote:
Might be under apache conf dir/modules.d/
Prathap
Know any good sql discussion groups for mysql?
Thanks
-Will
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Have a look here: http://lists.mysql.com/
Best regards,
Davy
William Stokes wrote:
Know any good sql discussion groups for mysql?
Thanks
-Will
--
Davy Obdam
mailto:[EMAIL PROTECTED]
web: http://www.davyobdam.com
Discordianism: Where reality is a figment of your imagination
--
PHP General
Try,
http://forums.mysql.com/list.php?10
Prathap
-- Original Message ---
From: William Stokes [EMAIL PROTECTED]
To: php-general@lists.php.net
Sent: Tue, 12 Apr 2005 10:51:44 +0300
Subject: [PHP] sql groups
Know any good sql discussion groups for mysql?
Thanks
-Will
--
Hi All,
I've gone and uninstalled the pre-installed httpd/php via yum on Fedora3
and re-installed Apache/PHP via source. Apache is now installed at
/usr/local/apache2. I want to know, where is the dir for html/php files.
B4 it was /var/www/html. What is it now..? Cheers.
Mark Sargent.
--
PHP
On Tuesday 12 April 2005 16:09, Mark Sargent wrote:
I've gone and uninstalled the pre-installed httpd/php via yum on
Fedora3 and re-installed Apache/PHP via source. Apache is now installed
at /usr/local/apache2. I want to know, where is the dir for html/php
files. B4 it was /var/www/html.
Jason Wong wrote:
On Tuesday 12 April 2005 16:09, Mark Sargent wrote:
I've gone and uninstalled the pre-installed httpd/php via yum on
Fedora3 and re-installed Apache/PHP via source. Apache is now installed
at /usr/local/apache2. I want to know, where is the dir for html/php
files. B4 it was
Hello,
I'm a University student studying Java, but I also do some freelance web
design - so naturally I do a fair bit of PHP which seems to be very
similar to Java.
Usually I just code PHP as I need it, but down the track get REALLY
annoyed when I need to edit or update my code. It's hard to
On Tuesday 12 April 2005 00:28, Richard Lynch wrote:
If your httpd.conf has a line loading PHP4 in it, comment that out.
Actually it might be inside a conf file in the conf.d subdirectory
cd /etc/httpd/conf.d
for a in *.conf; do echo File $a; grep php $a; done
Will point you in the right
Hello Tim,
Tuesday, April 12, 2005, 10:07:44 AM, you wrote:
TB I'm wondering, why does the toString() of classes have two underscored
TB preceding it [e.g. __toString()], as opposed to Java's normal toString()?
TB What's the purpose of the two underscores in PHP's classes?
The short answer:
Hello all,
I'm curious - has anyone on the list ever used PHPMaker? I apologise
in advance if this is heresy; the reason I am asking is that I am in
the position of arguing my corner against the use of PHPMaker for
someone actually bothering to code by hand. I can't believe that
PHPMaker could
Hi, i want to send an email with an attached file using PEAR classes. I
succeed to do it with one recipients and more.
I use an external SMTP to send it. My problem is that when i want to
send an email with for example 4 recipients and 1 attached file, the
mail is send 4 times to the SMTP
Php docs are quite messy about what works with what function...
This is my problem; I want to strip out spaces from my tags:
$word = [ / quote ];
$word = eregi_replace([[[:blank:]]*quote[[:blank:]]*], [quote], $word);
$word = eregi_replace([[[:blank:]]*\/[[:blank:]]*quote[[:blank:]]*],
[/quote],
On Tuesday 12 April 2005 18:30, jem777 wrote:
Php docs are quite messy about what works with what function...
This is my problem; I want to strip out spaces from my tags:
$word = [ / quote ];
$word = eregi_replace([[[:blank:]]*quote[[:blank:]]*], [quote],
$word); $word =
I was wondering that as well. While I was at it, I wondered why not
use __to_str(), as per the PHP coding guidelines.
While I'm at it, why is grass green, and milk white?
On Apr 12, 2005 10:27 AM, Richard Davey [EMAIL PROTECTED] wrote:
Hello Tim,
Tuesday, April 12, 2005, 10:07:44 AM, you
On 11 Apr 2005 Richard Lynch wrote:
Well, just because I'm not sure it is worth the effort. What is the
point of storing a hash code as a proxy (in the colloquial sense of the
word) for an encrypted password if knowing the hash code gets you the
same access as knowing the password?
Rory Browne wrote:
I was wondering that as well. While I was at it, I wondered why not
use __to_str(), as per the PHP coding guidelines.
because that's *against* php coding guidelines :)
You should have a look at the guidelines for METHOD-naming, which is
part of the OOP part. It states that for
I've been working on a script to contain a monthly/weekly schema. The
script is only starting from the start and stop unix timestamps for
every task.
Now I'm having the problem of displaying the tasks properly.
For the time being, all tasks on a specific day gets its own column, but
I want
Considering that we all fall into more or less into the same kind of code,
and that a good chunk of all we program is quite basic, I don't see why this
can be automated. Does it cover everything? I am sure it can't, but I know
that a good percentage of my active pages look quite alike, and
On , 2005-04-11 at 19:34 -0300, ngelo A. Camargo wrote:
If you have NONE of those, you probably are trying to violate some kind of
license. Don't do that. :-v
Do not pay, to some reverse engineering :-)
Josip Dzolonga
http://josip.dotgeek.org
--
PHP General Mailing List
On , 2005-04-11 at 20:57 -0400, Teng Wang wrote:
So I guess there is some other place to start php4 already.
Where can I find it?
PHP is probably installed as a static module. For disabling PHP support
I think you'll need to recompile Apache.
Hope this helps,
Josip Dzolonga
I need in my own web server with mysql database and php script some free
fulltext engine.
But i need search in slovak language (all data in database in slovak).
Can yopu help me where i can find some free fulltext engine ?
roman
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe,
On , 2005-04-12 at 12:15 +0200, marc serra wrote:
Hi, i want to send an email with an attached file using PEAR classes. I
succeed to do it with one recipients and more.
I use an external SMTP to send it. My problem is that when i want to
send an email with for example 4 recipients and 1
On , 2005-04-12 at 14:37 +0200, Josip Dzolonga wrote:
On , 2005-04-11 at 19:34 -0300, ngelo A. Camargo wrote:
If you have NONE of those, you probably are trying to violate some kind of
license. Don't do that. :-v
Do not pay, to some reverse engineering :-)
s/to/do , damn keyboard :)
I ran into the same problem doing it oo style like this:
call_user_func_array(array($stmt, 'bind_result'),$rr);
Still don't understand why. Any input on this is very much welcome.
I could work around using eval:
$obj=$stmt; $mthd='bind_result'; $args[0]=''; $args[1]='';
correction:
I made $args as this: $args='$rr[0],$rr[1]';
Patrick [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
I ran into the same problem doing it oo style like this:
call_user_func_array(array($stmt, 'bind_result'),$rr);
Still don't understand why. Any input on this is very
ok for this 2:
$body = preg_replace('|\[\s*quote\s*\]|', '[quote]', $body);
$body = preg_replace('|\[\s*/\s*quote\s*\]|', '[/quote]', $body);
but have these next instructions the same result?
$body = eregi_replace(\[ *quote *\], [quote], $body);
$body = eregi_replace(\[ */ *quote *\], [/quote],
Hi All,
keep getting this error with make on Fedora 3, home machine.
Successfully installed on work FC3 machine earlier today. I did make
twice, to no avail, and then redid the configure then another make, with
the same results.
collect2: ld returned 1 exit status
make: *** [sapi/cli/php]
Stefan wrote:
Hi NG!
I've a problem in updating an XML-Node value.
How can I change the value of an XML node?
Thanks in Advance
Stefan
AFAIK the sane way to do this is through the DOM API. Or if it's a
one-off replacement you could use preg_match() and / or preg_replace()
--
Teach a man
[EMAIL PROTECTED] wrote:
Hi there, I have been testing a possible solution to reduce the ammount of
interface calling scriptsto my class files. Currently each class has a
calling script. I am
For PHP5 you can try __autoload(). It provides for you a last-chance /
just in time loading of a
Is the syntax correct? (in connection with $order) :
switch ($page) {
case news:
$order = DESC
break;
case articles:
$order = ASC
break;
}
mysql_query( SELECT * FROM data ORDER BY id $order );
Sorry for my bad english,
Lab.
--
PHP General Mailing List (http://www.php.net/)
Labunski wrote:
Is the syntax correct? (in connection with $order) :
Nope. You need some semicolons (;). So, these would become:
$order = DESC;
$order = ASC;
switch ($page) {
case news:
$order = DESC
break;
case articles:
$order = ASC
break;
}
mysql_query( SELECT * FROM data ORDER
Hello Labunski,
Tuesday, April 12, 2005, 3:09:43 PM, you wrote:
L Is the syntax correct? (in connection with $order) :
Nope. You need ; after the $order = lines.
L switch ($page) {
L case news:
L $order = DESC
L break;
L case articles:
L $order = ASC
L break;
L }
I.e.: $order
Josip Dzolonga wrote:
If you have NONE of those, you probably are trying to violate some kind of
license. Don't do that. :-v
Do not pay, to some reverse engineering :-)
s/to/do , damn keyboard :)
Which is obviously illegal if the shared library has a license that
states he cannot do that. We
I used mod_rewrite to change http://www.mysite.com/page/1 to
http://www.mysite.com/page.php?id=1 to enable a search friendly url.
Everything works fine, except that when I try to get the URL variable ($id)
by using $_GET, it doesn't return anything. With
http://www.mysite.com/page.php?id=1 it gets
Hello,
mysqli_stmt_bind_result() is a special function that takes parameters by
reference after the first one.
When you code:
mysqli_stmt_bind_result ($stmt, $arr[1], $arr[2]);
Then $arr[1] and $arr[2] can be passed by reference.
But when you code:
$arr[0]=$stmt; $arr[1]=''; $arr[2]='';
Mark Sargent wrote:
Hi All,
keep getting this error with make on Fedora 3, home machine.
Successfully installed on work FC3 machine earlier today. I did make
twice, to no avail, and then redid the configure then another make,
with the same results.
collect2: ld returned 1 exit status
make: ***
Hi All,
what line number is the following on,
And in the AddModule section of httpd.conf, somewhere under the
ClearModuleList, add this:
For PHP 4:
AddModule mod_php4.c
For PHP 5:
AddModule mod_php5.c
Hell, I've scrolled up/down numerous times, and can't find
If you're using Apache 2, then you haven't got a ClearModule (or an
AddModule for that matter either). Just set the LoadModule directive.
If it's Apache 1, towards the top of httpd.conf there should be A whole
bunch of LoadModules, then a little bit farther down, a whole bunch of
AddModules,
I can't figure out what I am doing wrong,
this sql string seems to filter out the information I want but it duplicates
the all info, as 'num_rows' is total of rows in the table and not the correct
value of the filtered information?
$sql=SELECT products.productID, products.title,
* Ospinto [EMAIL PROTECTED]:
I used mod_rewrite to change http://www.mysite.com/page/1 to
http://www.mysite.com/page.php?id=1 to enable a search friendly url.
Everything works fine, except that when I try to get the URL variable ($id)
by using $_GET, it doesn't return anything. With
PartyPosters wrote:
I can't figure out what I am doing wrong,
this sql string seems to filter out the information I want but it duplicates
the all info, as 'num_rows' is total of rows in the table and not the correct
value of the filtered information?
$sql=SELECT products.productID,
snip
I can't figure out what I am doing wrong,
this sql string seems to filter out the information I want but it
duplicates the all info, as 'num_rows' is total of rows in the table and
not the correct value of the filtered information?
$sql=SELECT products.productID, products.title,
I'm not sure, but I just know that if you need to select the information
from two tables (and not just from one),
you should use JOIN syntax ( http://dev.mysql.com/doc/mysql/en/join.html )
Hope this helps,
Lab.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
I'm not sure, but I just know that if you need to select the information
from two tables (and not just from one),
you should use JOIN syntax ( http://dev.mysql.com/doc/mysql/en/join.html )
Hope this helps,
Lab.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
Hello PartyPosters,
Tuesday, April 12, 2005, 4:24:34 PM, you wrote:
P I can't figure out what I am doing wrong, this sql string seems to
P filter out the information I want but it duplicates the all info,
P as 'num_rows' is total of rows in the table and not the correct
P value of the filtered
Chris wrote:
If you're using Apache 2, then you haven't got a ClearModule (or an
AddModule for that matter either). Just set the LoadModule directive.
If it's Apache 1, towards the top of httpd.conf there should be A
whole bunch of LoadModules, then a little bit farther down, a whole
bunch of
Hello,
Curious if anyone out there has any experience using PHP with Wire
Ready??? We've taken over a site that uses the wire ready service...
which is all done in ASP and needs to be converted over to PHP??
does anyone have or know of any pre-made classes or functions for
dealing with this
That's a SQL problem, nothing to do with PHP.
You've forgotten a JOIN clause.
-
Skrol29
www.tinybutstrong.com
-
PartyPosters a écrit :
I can't figure out what I am doing wrong,
this sql string seems to filter out the information I want but it duplicates
the
Ospinto mailto:[EMAIL PROTECTED]
on Tuesday, April 12, 2005 10:32 AM said:
I used mod_rewrite to change http://www.mysite.com/page/1 to
http://www.mysite.com/page.php?id=1 to enable a search friendly url.
Ok I'm with you.
Everything works fine, except that when I try to get the URL
On Tuesday 12 April 2005 16:24, PartyPosters typed:
$sql=SELECT products.productID, products.title, products.number_per_box,
products.stock_level, products.image, users.username, users.email,
users.userID FROM users, products WHERE products.userID = $userID;
Hi,
I am using php to generate and xml output file from another xml file using xsl.
The file is getting created properly and the xml instruction element is at 1st
line.
I am using ant to get the output remotely but it is adding one extra line i.e.
carriage return. I checked everything in my
-Original Message-
From: Richard Lynch
To: Marek Kilimajer
On Sun, April 10, 2005 4:32 pm, Marek Kilimajer said:
Assuming your form is named Selection, you will have a javascript
array document.forms['Selection'].elements['distID[]'] available. You
can try:
Do you do this on the encryption or the decryption section or both?
Tom Rogers wrote:
Hi,
Saturday, April 9, 2005, 3:35:21 AM, you wrote:
MH I have an odd php issue with mcrypt.
MH I'm getting a lot of this type of error, but only sometimes:
MH mcrypt_generic_init(): Iv size incorrect; supplied
I get the following error when I try your suggestion:
Unknown error type: [8] Undefined variable: iv
Code:
$key = md5($this-_cypherkey);
$key = substr($key, 0, mcrypt_enc_get_key_size($this-td));
$iv_size = mcrypt_enc_get_iv_size($this-td);
#$iv = mcrypt_create_iv($iv_size, MCRYPT_RAND);
$iv =
Hello, I am using the following script to upload files to my server. Is there
anyway I can create a directory (on the fly) for the new image to go, as I want
people to be able to upload files with the same name.
Thanks
$uploadDir = 'uploads/';
$uploadFile = $uploadDir .
Make sure there are no extra characters (including linefeeds) after the
closing ? in your php source file.
Brandon Ryan
On 12 Apr 2005 19:42:17 -, Dipesh Khakhkhar
[EMAIL PROTECTED] wrote:
Hi,
I am using php to generate and xml output file from another xml file using
xsl.
The
On a shared server, every other PHP scripter can read your session data,
if they work at it a little bit.
If you're on a shared server I think a good option for you might be to
store the sessions in your database. At least then you know that as long
as long as your db server doesn't have any
* Amir Mohammad Saied [EMAIL PROTECTED]:
I want to use mod_rewrite patterns, but i have not access to the
httpd.conf so i think i should use .htaccess, but the patterns don't
work properly there, have my admin should set any settings in the
httpd.conf?
I use mod_rewrite from .htaccess all
Yeahh! i have made it
i can slow down a php script , as i edited the zend engine source to usleep
every 1000 low-level instructions
now, is there a way to determine to check my cpu load and adjust it by that
so if nothing (or very low cpu usage) is running on the system he'll get
extra
Hi Guys,
Sorry to post this here, but I don't know if the list has a jobs section
etc. or if there is a good place where I can post job opportunities for php
programmers?
Thanks,
Joey
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I'm struggling with the php or mysql query to find
records within my database that are within 15 minutes
from now and prior.
Example:
It's 2:30pm on 4/12/05
I need to find all records with a RecordTime of 2:45pm
and previous.
So it should find:
rec1 time: 2:45 date: 4/12/05
rec2 time: 2:00
[snip]
Hello, I am using the following script to upload files to my server. Is
there anyway I can create a directory (on the fly) for the new image to
go, as I want people to be able to upload files with the same name.
[/snip]
You know that manual thingie? It's awersome! http://us3.php.net/mkdir
On Apr 12, 2005 12:05 PM, Joe Wollard [EMAIL PROTECTED] wrote:
See http://us2.php.net/manual/en/function.session-set-save-handler.php
for more details on building a custom session handler.
http://destiney.com/pub/Destiney_db_sessions_0.1.0.tar.bz2
Provides simple database driven PHP sessions.
I want to use mod_rewrite patterns, but i have not access to the
httpd.conf so i think i should use .htaccess, but the patterns don't
work properly there, have my admin should set any settings in the
httpd.conf?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
Roman Duriancik wrote:
I need in my own web server with mysql database and php script some free
fulltext engine.
But i need search in slovak language (all data in database in slovak).
Can yopu help me where i can find some free fulltext engine ?
roman
Joey wrote:
Sorry to post this here, but I don't know if the list has a jobs section
etc. or if there is a good place where I can post job opportunities for php
programmers?
This list is fine.
Chris
--
Chris Shiflett
Brain Bulb, The PHP Consultancy
http://brainbulb.com/
--
PHP General Mailing List
* Chris W. Parker [EMAIL PROTECTED]:
Ospinto mailto:[EMAIL PROTECTED]
on Tuesday, April 12, 2005 10:32 AM said:
I used mod_rewrite to change http://www.mysite.com/page/1 to
http://www.mysite.com/page.php?id=1 to enable a search friendly url.
Ok I'm with you.
Everything works fine,
On Apr 12, 2005 2:33 PM, J J [EMAIL PROTECTED] wrote:
I'm struggling with the php or mysql query to find
records within my database that are within 15 minutes
from now and prior.
select NOW(), DATE_ADD( NOW(), INTERVAL 15 MINUTE );
Are you saying you want all records whose timestamp is less than now plus
15 minutes?
If so...
SELECT ... WHERE ts_col = CURRENT_TIMESTAMP + INTERVAL 15 MINUTES;
should do it I'd think.
see here for more (the DATE_ADD function)
http://dev.mysql.com/doc/mysql/en/date-and-time-functions.html
On
Hello,
Tuesday, April 12, 2005, 8:33:08 PM, you wrote:
JJ I'm struggling with the php or mysql query to find records within
JJ my database that are within 15 minutes from now and prior.
Assuming MySQL:
SELECT * FROM blah WHERE RecordTime DATE_SUB(now(), interval
15 min)
(something like that,
Hello friends.
I want to do an applicattion for show all folder and file to send by
ftp(the folder and file that I select) for my isp, ok?
but I don't know how can I do this?, somebody Can help me?, what function I
need if I want to show this?.dir();
best regards TOMAS
You or someone you know maybe interested in the programming position we have
available.
We have the need for a part time / possibly contract PHP programmer.
We are looking for people that can work in our Miami office (even
contractors), so please do not try and sell us your services if the
Hello,
I cannot open a new window from a popup when a user logs into their account.
How would I go about adding target=_blank after successful login.
Your help would be greatly appreciated.
Best Regards,
Martin
?php
error_reporting(E_ALL ^ E_NOTICE);
//Here we check if any
J J wrote:
I'm struggling with the php or mysql query to find
records within my database that are within 15 minutes
from now and prior.
Example:
It's 2:30pm on 4/12/05
I need to find all records with a RecordTime of 2:45pm
and previous.
So it should find:
rec1 time: 2:45 date: 4/12/05
rec2 time:
Well,
I have a framework class witch loads and stores all classes in it.
I can´t post the all code, but some I cam:
Loading a core class like a database class:
---
function loadcore($handler, $class_name = '')
{
I want to check a string for only numbers and letters but am banging
my head with regex:
$good = joh_';
// Let's check the good e-mail
if (preg_match(/[a-z0-9]/, $good)) {
echo Good;
} else {
echo Bad;
}
This returns Good, why?
Thanks!
--
PHP General Mailing List
On 4/12/05, Amir Mohammad Saied [EMAIL PROTECTED] wrote:
I want to use mod_rewrite patterns, but i have not access to the
httpd.conf so i think i should use .htaccess, but the patterns don't
work properly there, have my admin should set any settings in the
httpd.conf?
AllowOverrides must be
Hi,
Wednesday, April 13, 2005, 5:14:25 AM, you wrote:
MH Do you do this on the encryption or the decryption section or both?
I do it on both, here is a class I use that may help:
class encryptClass{
var $secret;
function encryptClass(){
$this-secret = 'put secret here';
}
Function
Matthew Weier O'Phinney mailto:[EMAIL PROTECTED]
on Tuesday, April 12, 2005 9:42 AM said:
When using mod_rewrite, if the rewrite rule does not include a
pass-through, then the query string is not passed on to the script in
question. So, if you request the page directly with:
Hi,
Wednesday, April 13, 2005, 6:04:05 AM, you wrote:
MH I get the following error when I try your suggestion:
MH Unknown error type: [8] Undefined variable: iv
MH Code:
$key = md5($this-_cypherkey);
MH $key = substr($key, 0, mcrypt_enc_get_key_size($this-td));
MH $iv_size =
Hi,
Wednesday, April 13, 2005, 8:20:46 AM, you wrote:
z Yeahh! i have made it
z i can slow down a php script , as i edited the zend engine source to usleep
z every 1000 low-level instructions
z now, is there a way to determine to check my cpu load and adjust it by that
z so if nothing (or
I just have a few questions regarding workflow when producing scripts.
First off, do people prefer to have all their code in one file? Or
multiple separate files? I know functions and classes are good to keep
in separate files, but i am talking about say for example a news
system, etc.
Next
Hi,
I don't have your problems because I use a Template Engine.
I usually have one main PHP script for the application, which doesn't deal
with HTML directly. Other PHP scripts are libraries or special objects
like the Template Engine itself.
This also enables me to work WYSIWYG with user
First off, do people prefer to have all their code in one
file? Or multiple separate files? I know functions and
classes are good to keep in separate files, but i am talking
about say for example a news system, etc.
For me, this largely depends on project size and the types of
blackwater dev wrote:
I want to check a string for only numbers and letters but am banging
my head with regex:
ctype_alnum()
Chris
--
Chris Shiflett
Brain Bulb, The PHP Consultancy
http://brainbulb.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
Richard Lynch wrote:
On Sat, April 9, 2005 11:51 am, [EMAIL PROTECTED] said:
*WHY* would you not store some kind of hash of the user ID?!
setcookie('remember_me', md5($username));
.
.
.
select username from users where md5(username) = $_SESSION['remember_me']
Is that really any harder?
It's very
Hi,
Can I use Constant in mysql query like this:
define(LANG, eng);
mysql_query(SELECT * FROM data WHERE col = 'articles' ORDER BY
subjectLANG);
Thanks a LOT,
Lab.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I think what you mean/need is:
$sql=SELECT products.productID, products.title,
products.number_per_box, products.stock_level, products.image,
users.username, users.email, users.userID FROM users, products WHERE
products.userID = users.userID AND userID = $userID;
John Nichel wrote:
I think you could use php function mkdir() to do this.
mkdir(/path/to/my/upload_dir, 0777);
But unfortunately there is big BUT aka Safe_mode.
To use this mkdir() function, you have to disable the Safe_mode on the
server :(
Note: When safe mode is enabled,
PHP checks whether the directory in
On 12 Apr 2005 blackwater dev wrote:
$good = joh_';
// Let's check the good e-mail
if (preg_match(/[a-z0-9]/, $good)) {
echo Good;
} else {
echo Bad;
}
This returns Good, why?
That regex matches any string which contains at least one (lowercase)
letter or one number
HI,
Any body give me any hinder I would be very appreciated!
I want to use a parameter of fist page in the second page, how can I realize
it.
For example, there is a segment in the first page:
tr
tdcom/tdtda
href='/cgi-bin/english/E_new_domain_list.cgi?domainType=1'? echo
$num_com;?/a/td
On 11 Apr 2005 Chris Shiflett wrote:
DO NOT STORE PASSWORDS ON USERS COMPUTER
A couple of people have stated this but I think it is incorrect.
Please refrain from such speculation, because it does nothing to improve
the state of security within our community. This idea of storing
HI,
Any body give me any hinder I would be very appreciated!
I want to use a parameter of the second page in the first page, how can I
realize it.
For example, there is a segment in the first page:
tr
tdcom/tdtda
href='/cgi-bin/english/E_new_domain_list.cgi?domainType=1'? echo
Yes --
In your example - $result_id would be accessed on page2 as
$result_id = $_GET['result_id'];
Then through out your script on page 2 you could access $result_id.
Hope that helps.
--
- $result_id 2
$result_id = $_get['result_id ' ];
2 $result_id
?php
/*
Stephen Johnson c | eh
hi,
what is the best way to display an image, that is stored in a database in
postgres, in a table form along with other fields that are in the same
table?
postgresql 8.0
e.g my_table(name varchar(15),sex character (1), picture_id oid)
in a table in php, i'd like to show all the rows in
hi,
im working with php 4 and postgresql 8 and i would like to know how to
handle certain errors generated. in postgresql, i've written a stored
function that selects a record from a table and in case no record is found i
'raise an exception'. fine, now in my php script i call that the stored
100 matches
Mail list logo