Hi,
Saturday, March 27, 2004, 4:50:27 AM, you wrote:
CM I have this query to select the date from my table...
CM SELECT DATE_FORMAT(date1, '%W %M %Y') FROM table
CM How do I know what name mysql_fetch_array assigned to the date_format ?
SELECT DATE_FORMAT(date1, '%W %M %Y') AS date_formatted
Hi,
Saturday, March 27, 2004, 4:45:38 AM, you wrote:
CWP hi.
CWP ok, so i've always been under the impression that count()ing during the
CWP expression of a loop was much inefficient when compared to count()ing
CWP just before the loop expression.
CWP GOOD:
CWP ?php
CWP $the_array_cnt =
Hi,
Saturday, March 27, 2004, 1:31:33 AM, you wrote:
CT Hey,
CT Im trying to use sprintf to format a number and left pad it with spaces, but
CT it doesnt want to add the spaces
CT I can pad it with anyother char using sprintf(%'_8.2f, $val) which will
CT left-pad the number with underscores
Hi,
Friday, March 26, 2004, 11:19:51 AM, you wrote:
dz Hello,
dz I'm creating registration service with this great form script for
dz creating forms within Smarty.
dz Question is how can I validate 'username' against allready registered
dz users in MySQL so that someone cannot register him
Hi,
Friday, March 26, 2004, 2:36:18 PM, you wrote:
pen On 25 Mar 2004 at 14:10, Tom Rogers wrote:
Any whitespace in any file before the ?php will cause data to be sent
to the browser forcing the headers to be sent. So make sure the first
line of your page has ?php and it is a good idea
Hi,
Thursday, March 25, 2004, 8:12:41 AM, you wrote:
G Hello, it wanted to know how as profit to supplant the function
G mysql_list_tables() for SQL server server or like the tables of one
G db of SQL server in php...
G thank you very much
This may be it:
USE dbname
SELECT Name FROM sysobjects
Hi,
Thursday, March 25, 2004, 9:17:31 AM, you wrote:
PM Hello to all - just joined this list to see if I can enhance
PM my pretty slim knowledge of PHP.
PM I have a little script I cobbled together than I modified to use as a guestbook
for a
PM client's site. I am trying to get the script to
Hi,
TR Any whitespace in any file before the ?php will cause data to be sent
TR to the browser forcing the headers to be sent. So make sure the first
TR line of your page has ?php and it is a good idea to drop the ? from
TR included pages as there may be blank lines following which are just as
TR
Hi,
Tuesday, March 23, 2004, 8:03:05 PM, you wrote:
BP Hi all
BP I am having problems printing members of an array that has two
BP dimensions and am wondering if someone can help me with the syntax
BP required to do this.
BP If i have the follwing code:
BP ?php
BP
Hi,
Friday, March 19, 2004, 12:44:40 AM, you wrote:
F I would be very interested in a solution to this problem because I have a similar
one.
F I stored tables on a page.
F examp:
F $table_1 = tabletrtd.$name./td/tr/table;
F $table_2 = tabletrtd.$message./td/tr/table;
F etc...
F and included
Hi,
Friday, March 19, 2004, 1:11:52 AM, you wrote:
F Doesn't $name = blah blah; define it enough?
Not if it comes after $table_1 = tabletrtd.$name./td/tr/table;
at this point $name does not exist. Try turning on E_ALL error
reporting and it will tell you things like this.
--
regards,
Hi,
Friday, March 19, 2004, 2:26:06 AM, you wrote:
F Tom Rogers [EMAIL PROTECTED] wrote in message
F news:[EMAIL PROTECTED]
F Cool, it works!
F include (the file where the tables are stored) after the the
F variables are defined, and it works.
F I took 3 semesters of C and C++ programming. I
Hi,
Friday, March 19, 2004, 6:01:00 AM, you wrote:
JV I want to be able to submit the page to another page vs PHP_SELF. On
JV that page I want to be able to validate the form, and if it fails,
JV return the user to the previous page. Now that's easy, but the catch is
JV that I want to
Hi,
Friday, March 19, 2004, 2:57:57 PM, you wrote:
JM No prob. I'm still working on a fix for my problem. I know I don't have a
JM javascript error, if I copy and paste to another file it works fine. Just
JM not in the php file. I'll mess with including it with the script tags, but
JM it's not
Hi,
Thursday, March 18, 2004, 1:08:27 PM, you wrote:
JM Hi everyone,
JM How can I get around my problem? I have a couple pages that I
JM would like to have buttons where the button and background changes
JM when the javascript mouseover event happens. My code works fine if
JM the page is .html,
Hi,
Wednesday, March 17, 2004, 9:43:51 AM, you wrote:
NR I am running Apache/2.0.48 (Gentoo/Linux) mod_ssl/2.0.48 OpenSSL/0.9.6k PHP/4.3.4
NR I have a drupal site set up, http://rout.dyndns.org/cagc
NR Since some time on Sunday i have had the following error appear at the
NR bottom of the page:
Hi,
Wednesday, March 17, 2004, 11:28:04 AM, you wrote:
tcc On 16 Mar 2004 [EMAIL PROTECTED] wrote:
tcc I have had questions about this for a while. What is it about closing
tcc and reopening the browser that PHP notices and that invalidates the
tcc old session?
tcc Also a comment ... I think
Hi,
Wednesday, March 17, 2004, 11:36:02 AM, you wrote:
P Hi Folks,
P I am trying to use outbuffering techniques
P ob_start(myCallBack)
P .
P ob_end_flush()
P function myCallBack($inBuffer)
P {
P //process
P ob_start();
P include aPHPFile.php;
P $includeFileContents =
Hi,
Wednesday, March 17, 2004, 12:24:27 PM, you wrote:
NR Thanks, it is set right, but I see some other things are not.
NR these other bits are set in a .htaccess file in the root of this
NR applications htdocs tree. When I execute a test.php file in the same
NR directory as the .htaccess file I
Hi,
Tuesday, March 16, 2004, 9:51:46 AM, you wrote:
LM hey guys, i have a question on dbg extension, i want to get debug details
LM using the functions from php, ie. dbg_get_profiler_results, but they return
LM nothing... i am developing on windows using apache and php 4.3, any
LM suggestions?
Hi,
Monday, March 8, 2004, 3:42:30 PM, you wrote:
T Hi List,
T I have a class with a constructor that sets the variables and I currently
T use functions to return each one. When using alot of variables in the
T constructor i tend to have many return functions. Is there a way to access
T the
Hi,
Thursday, March 11, 2004, 11:05:08 AM, you wrote:
M Hi there,
M can anybody recommend tools to messure page loading time of php pages.
M I am working on a new site and it apears to me that the old one loads
M much faster. Are there any tools around to break this down to hard numbers?
M
Hi,
Thursday, March 11, 2004, 3:23:20 AM, you wrote:
J My ISP has the following settings in their php.ini file:
J magic_quotes_gpc = ON
J magic_quotes_sybase = OFF
J I am using a Windows Server and a SQL Server database.
J I need to set magic_quotes_sybase to ON so that quotes will be escaped
Hi,
Thursday, March 11, 2004, 5:20:04 PM, you wrote:
J Hi.
J I have a script that creates a folder and a bunch of jpegs... however
J instead of creating them into the user/group I'm in (let's call it
J myGroup) it creates them into Nobody. The problem becomes that when I
J ftp in to delete the
Hi,
Thursday, March 11, 2004, 5:52:08 PM, you wrote:
Use the php ftp functions to create directories and move uploaded
files would be one way.
--
regards,
Tom
J Move the uploaded files? You mean create the directory in the wrong spot and
J then move it to the right spot? and the same with
Hi,
Wednesday, March 10, 2004, 12:22:08 AM, you wrote:
t why is var_dump( 0 == 'hello world') TRUE and not FALSE?
because 0 is integer and the integer value of 'hello world' is 0 so
they are equal.
--
regards,
Tom
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
Hi,
Wednesday, March 10, 2004, 1:49:14 AM, you wrote:
PS Hello alll,
PS I am using three frames on my site. The left and the main frame have
PS all the dynamic content in it. My login module is embedded in the
PS leftFrame. To check out the site please look here
PS
Hi,
Tuesday, March 9, 2004, 12:05:22 AM, you wrote:
W Please help me with this. Can someone give me an example of their
W php.ini on the settings of the mail function.
W ~WILL~
A wild guess but try it with \r\n as line endings, I don't run the
server under windows so can't help with the ini
; // as you can see, it is important to
L put whole output of the function to this variable ($content).
L The browser debugs:
L Warning: Missing argument 1 for output() in C:\www\RKV\start.php on line
L 64
L Sorry for my bad english,
L Roman
L - Original Message -
L From: Tom Rogers
Hi,
Saturday, March 6, 2004, 11:50:04 PM, you wrote:
L // or example I have some link:
L a href='index.php?action=people'About people/a
L // so this function will output the content of people.txt file:
L if ($action==people){
L function output() {
L $file = file(data/people.txt);
L
Hi,
Saturday, March 6, 2004, 10:39:13 AM, you wrote:
S Hi,
S How can PHP recognise dates that are UK Bank Holidays?
S Thanks for your help
Well first question is:
What are the rules for a bank holiday in the UK
is it the first monday of a month, after christmas day , new year
etc..
If there
Hi,
Saturday, March 6, 2004, 12:03:15 PM, you wrote:
TR Hi,
TR Saturday, March 6, 2004, 10:39:13 AM, you wrote:
S Hi,
S How can PHP recognise dates that are UK Bank Holidays?
S Thanks for your help
TR Well first question is:
TR What are the rules for a bank holiday in the UK
TR is it the
echo 'Welcome '.$_POST['username'].'br';
mo }else{
mo //first pass and $error is still empty
mo include('login.php');
mo }
mo - Original Message -
mo From: Tom Rogers [EMAIL PROTECTED]
mo To: matthew oatham [EMAIL PROTECTED]
mo Cc: [EMAIL PROTECTED]
mo Sent: Thursday, March 04, 2004
Hi,
Thursday, March 4, 2004, 9:08:19 AM, you wrote:
mo Hi,
mo I have created a small login system for my website. However
mo if a user logs in incorrectly I want to display a error message
mo currently I use the code
mo echo You could not be logged in! Either the username and
mo password
: Tom Rogers [EMAIL PROTECTED]
mo To: matthew oatham [EMAIL PROTECTED]
mo Cc: [EMAIL PROTECTED]
mo Sent: Thursday, March 04, 2004 12:24 AM
mo Subject: Re: [PHP] setting request variables
Hi,
Thursday, March 4, 2004, 9:08:19 AM, you wrote:
mo Hi,
mo I have created a small login system for my
Hi,
Monday, March 1, 2004, 3:04:13 AM, you wrote:
PH Hello everyone,
PH I'm beginning to experiment with PHP sessions. I was wondering if it is
PH possible to place objects into the session?
PH Thanks,
PH Paul
PH _
PH Take off
Hi,
Friday, February 27, 2004, 4:48:20 AM, you wrote:
SG Hi,
SG I don't know if it's a bug in php but if I do
SG $fp=fopen(some_file,r);
SG while (!feof($fp))
SG {
SG fscanf($fp, %d %d,$var1,$var2);
SG // some treatment
SG }
SG fclose($fp);
SG and the file is big enough, php eat up
Hi,
Friday, February 27, 2004, 8:31:32 AM, you wrote:
S Hi,
S Using the following function I can present any query in a table. However
S some of the results are very large and I would like to limit all results to
S 1000 rows. So I am trying to paginate the results. However the page that
S calls
Hi,
Wednesday, February 25, 2004, 2:19:26 AM, you wrote:
D Hello all,
D I am having a problem with getting multiple socket reads working in a
D simple socket server!
D The writes appear to be working but the reads seam to only allow one read?
D I know i am missing something. Could even be my
Hi,
Tuesday, February 24, 2004, 3:21:11 AM, you wrote:
N Is there a PHP alternative to an IFRAME? Here's what I mean.
N Is there a way to include a file in my php document that will be positioned
N where I want it, like an IFRAME? I want to have it aligned right with text
N wrapping around it
Hi,
Saturday, February 21, 2004, 8:00:43 AM, you wrote:
SM My apologies if this post is somewhat OT. I am having some trouble
SM figuring something out, and I am hoping you can help.
SM I have a PHP web form on which a user can enter a number of different
SM things
SM into both text and
Hi,
Friday, February 20, 2004, 6:32:27 AM, you wrote:
JB [snip]
JB hi there
JB how do i make php give me yesterday's date?
JB i tried
JB date(Y-m-d)-1
JB but if today would be the 1st of july (2004-07-01), yesterday would be
JB 00.
JB july (2004-07-00) according to that calculator.
JB is
Hi,
Monday, February 16, 2004, 2:27:21 PM, you wrote:
a hi!
a i have a login page that after validating the login and passwords does something
a like
a // initiate a session
a session_start();
a // register some session variables
a
Hi,
Tuesday, February 10, 2004, 9:50:20 PM, you wrote:
J Hi,
J I am new to manipulating JPGs using PHP. But i managed to create an
J application that displays an JPG image in the browser (see below).
J I have boiled the code down to the most nesesary.
J My problem is that when i load the file
Hi,
Monday, February 9, 2004, 10:42:24 PM, you wrote:
AZ is there a date picker object or control that i can use on an HTML page,
AZ instead of making lots of dropdown lists for the various date fields?
AZ thanx in advance
AZ angelo
AZ
Hi,
Thursday, February 5, 2004, 11:35:34 PM, you wrote:
KS I have been messing around now for some hours and Im going mad!
KS Im pulling some heavy data from mySQL with count and grouping,
KS after this I have to calculate som values and then sort the outcome.
KS Therefore Im not able to let
Hi,
Friday, February 6, 2004, 7:44:15 AM, you wrote:
EG For some great information on how to internationalize a PHP
EG application, I would suggest checking out:
EGhttp://us3.php.net/manual/en/ref.gettext.php
My template class (yes another one) has the ability to use gettext for
Hi,
Saturday, January 31, 2004, 9:22:41 AM, you wrote:
CWP Stuart mailto:[EMAIL PROTECTED]
CWP on Friday, January 30, 2004 2:56 PM said:
print 'pre'; print_r($somearray); print '/pre';
CWP not to steal your glory stuart but you can make it easier on yourself by
CWP doing the following:
Hi,
Friday, January 30, 2004, 11:42:14 AM, you wrote:
RM I'm trying to execute /usr/bin/convert passing the image size and the
RM file name, the problem is that the file name contains lots of spaces, so
RM I try to pass filename with lots of spaces, and nothing works.
RM I've read something
Hi,
Saturday, January 24, 2004, 1:00:10 AM, you wrote:
JJM [newbie, please help]
JJM I'm trying to extract all URLs mentionning sound files from blocks of texts.
JJM I first tried with ereg and the following code works fine :
JJM $texte='TEST FINDbr\net voici un fichier son
JJM
Hi,
Tuesday, January 27, 2004, 4:18:03 PM, you wrote:
P Thanks for any advice.
P Can anyone tell me why I do not get any errors with ( no ; after _id'] )
P ?php echo $row_otherlawyer['lawyer_id']?
P ?php echo NO ERROR;?
From the manual (which is given away free:)
The closing tag for the
Hi,
Tuesday, January 27, 2004, 4:32:46 PM, you wrote:
cho The message contains Unicode characters and has been sent as a binary attachment.
Be careful this crap is a virus
--
regards,
Tom
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi,
Monday, January 26, 2004, 10:21:59 AM, you wrote:
LM [Mon Jan 26 07:42:56 2004] [error] PHP Warning: Failed to write session
LM data (files). Please verify that the current setting of session.save_path is
LM correct (/tmp) in Unknown on line 0
LM [Mon Jan 26 07:43:25 2004] [error] PHP
Hi,
Saturday, January 24, 2004, 11:02:23 PM, you wrote:
W Hello, I am hoping that some body might be able to point outwhat is going wrong.
W
W Basically I am running apache2 etc (sokkit) on a local MS
W XPmachine. I downloaded libmcrypt.dll from
W http://ftp.emini.dk/pub/php/win32/mcrypt/as
Hi,
Friday, January 23, 2004, 12:24:24 AM, you wrote:
CSA Hi
CSA This is my first experience with php... and I'm already having trouble...
CSA I´m working on an html form for a website which uses php to create an
CSA e-mail. My 'Submit' button has a php document as action. It works great on
CSA
Hi,
Friday, January 23, 2004, 2:17:07 PM, you wrote:
KW In a recent discussion about the MS terra server it was mentioned
KW this could not be done with PHP because the terraserver
KW has special front-end code that allows images to be passed by reference,
KW so the image data goes directly
Hi,
Friday, January 23, 2004, 3:18:06 PM, you wrote:
KW This one time, at band camp, Tom Rogers [EMAIL PROTECTED] wrote:
php can output the stream without having to save it to a file first if
that is what is worrying you.
KW That was sorta my concern, but not so much as a file, does it copy
Hi,
Wednesday, January 21, 2004, 9:09:40 PM, you wrote:
VD Hi,
VD I want to use the mcrypt module and I followed the
VD instructions to install the dll for Win32 users :
VD I copied the libmcrypt.dll file under c:\winnt\system32
VD I uncommented the extension=php_mcrypt.dll in the php.ini
VD I
Hi,
Thursday, January 22, 2004, 2:16:22 AM, you wrote:
scb Hi Tom, Vincent, list,
scb Tom, your response caused some confusion here. I have mcrypt running on win32
scb (Win98, Apache 1.3.29 2.0.48, PHP 4.3.4 PHP 5beta3) and am in fact using
scb mcrypt_generic_deinit() succesfully to
Hi,
Wednesday, January 21, 2004, 8:55:01 AM, you wrote:
JP I am so frustrated at the moment with coding. I had an odd error with
JP some PHP coding. And in the process I came across this error.
JP Please try this out!! Because for me on my machine it does the first
JP part of the if statement.
Hi,
Thursday, January 15, 2004, 7:33:29 PM, you wrote:
SH HI, i want to check if the user filled the all inputs in the form. So, I
SH checked NULL and with this function in the post receiving script.
SH ---
SH function is_filled_out()
SH {
SH // test that each
Hi,
Tuesday, January 20, 2004, 1:24:46 PM, you wrote:
TT Hi,
TT Ok, I know I've already spoken blasphemy ... but hear me out. I have a
TT client who wants to move her real estate site from a local ISP to a
TT somewhat decent service. Currently her site is all in Access/ASP - since I
TT know not
Hi,
Thursday, January 15, 2004, 3:07:02 AM, you wrote:
RS Hello,
RS This question may border on OT...
RS I have a web form where visitors must enter large amounts of text at one
RS time (text area). Once submitted, the large amount of text is stored as
RS a CLOB in an Oracle database.
RS Some
Hi,
Thursday, January 15, 2004, 10:41:57 AM, you wrote:
TR Hi,
TR Thursday, January 15, 2004, 3:07:02 AM, you wrote:
RS Hello,
RS This question may border on OT...
RS I have a web form where visitors must enter large amounts of text at one
RS time (text area). Once submitted, the large amount
Hi,
Tuesday, January 13, 2004, 11:07:05 PM, you wrote:
n Greetings;
n I need a help here ... I want to make function that return the dates of
n Tuesdays in a given year
n Example::
n Calc_Tuesdays (2004);
n //and it should return or echo
n 2004-01-06
n 2004-01-13
n 2004-01-20
n 2004-01-27
n
Hi,
Wednesday, January 14, 2004, 1:10:53 AM, you wrote:
SO Hi,
SO I´m trying to give an empty reference as a parameter of a function. Or
SO rather, make a parameter that is a reference optional.
SO I have a function that should react differently if it is given an object
SO or not. It works, but
Hi,
Wednesday, January 14, 2004, 10:59:50 AM, you wrote:
MH Howdy,
MH I'm trying to specify font face=Monotype Corsiva in my php document... but
MH can't b/c it's two words... if it was html I could just put , but since I
MH can't do that in php, does anyone know what to do?
MH prob. a stupid
Hi,
Wednesday, January 14, 2004, 11:37:40 AM, you wrote:
RD Hi all,
RD I've been playing around installing PHP5 (b3) tonight. I managed to
RD get it running on my Windows XP Pro box as a Module, bar one thing.
RD I have Zend Studio 3 installed which uses the Debugger and Profiler
RD which adds
Hi,
Thursday, January 8, 2004, 6:33:45 PM, you wrote:
AH Hello,
AH I have a requirement to run two different sites that are in different time
AH zones on the same machine. Does anyone know if this is possible to do by
AH running two instances of php and making a change in the php.ini? Or do you
Hi,
Wednesday, January 7, 2004, 8:54:16 AM, you wrote:
GCN Tom,
GCN I appreciate the suggestion, but even after setting the iv to zero
GCN within the php code and including the --noiv option within the command
GCN line; it still does not produce the same base64 encoded string under
GCN both
Hi,
Tuesday, January 6, 2004, 8:48:17 PM, you wrote:
GCN I am trying to figure out how to encrypt data using the web-based php
GCN mcrypt function and then decrypt it using the command line (cli) mcrypt
GCN binary, and vica-versa.
GCN I cannot seem to get the same encrypted output for the same
Hi,
Tuesday, January 6, 2004, 2:05:47 PM, you wrote:
TL Hi,
TL http://www.php.net/manual/en/faq.html.php#faq.html.select-multiple
TL I read that. Doesn't work in php since the whole register_globals
TL thing. Now, when I get the results from a form, they're all in a
TL $_POST[] array.
Hi,
Saturday, January 3, 2004, 4:50:44 PM, you wrote:
C You forgot to double slash the windows slash like: '\\'
C I would write that same functionality as follows:
C $sep = (PHP_OS == 'Windows')? '\\':'/';
C if(substr($template_path,-1) == $sep)) $template_path .= $sep;
Not in single quotes I
Hi,
Saturday, January 3, 2004, 1:12:49 AM, you wrote:
DC Hi List,
DC How can I sort a while loop or do something before it to achieve the
DC following?
DC I have a MySql result fetching something like this:
DC Id Name Number
DC 1 Bob 34567
DC 2 Ben 234
DC 3 Jeff 4567
DC 4 Dave 2345
DC
Hi,
Saturday, January 3, 2004, 11:23:00 AM, you wrote:
RA Hi,
RA Thanks for replying.
RA Basically after that path I am adding a file ryanFile.php so I need that
RA ending slash to always be in the path
RA My question was exactly that...how do I grab the last character?
RA Thanks,
RA -Ryan
I
Hi,
Friday, January 2, 2004, 3:56:35 AM, you wrote:
RK Ok I changed it to look this way but it still is not working
RK $filenum=test;
RK $fpHt = fopen($filenum, r);
RK while(feof($fpHt)) {
RK $fpLine = fgets($fpHt,512);
RK $fpLine = trim($fpLine);
RK $fpData = explode(:, $fpLine);
RK $fpData[0]
Hi,
Tuesday, December 30, 2003, 3:02:24 AM, you wrote:
CW Let me give a quick background. I am a very experienced programmer but
CW I haven't done much php and only a little web development in perl. I am
CW now creating a web site with Apache, php and MySQL.
CW I am having the user fill out a
Hi,
Wednesday, December 31, 2003, 11:45:37 AM, you wrote:
TB Hello,
TB I'm *very* new to PHP. I am working through the 'Professional PHP
TB Programming' book by Worx.
TB In their forms they use the name attribute (ie. name=example) instead of
TB XHTML's id attribute (ie. id=example).
TB If I
Hi,
Tuesday, December 30, 2003, 2:50:17 AM, you wrote:
DM Hi, I am trying to make a log rotator and found a great perl script to do it
DM but, would really like it in PHP (one less langauge to maintain).
DM I know the system has things in place to do this but, I don't have access
DM to the
Hi,
Monday, December 29, 2003, 9:30:11 AM, you wrote:
MW Hello!
MW I'm trying to use mcrypt to encrypt some values (login and password) I have
MW to pass from one website to another.
You will need to pass the $iv which kinda defeats the object of it, or
use a null one. Here is a class I use
Hi,
Wednesday, December 24, 2003, 3:02:33 AM, you wrote:
RV Hi,
RV I am having a problem using the mail() command inside a chrooted
RV apache/php installation on linux with qmail.
RV Nothing apears in the logs, nothing in apache error logs , neither in
RV php error logs..
RV And.. no mail gets
Hi,
Saturday, December 20, 2003, 2:36:40 AM, you wrote:
M Hi, I need to add /usr/local/bin to the PATH used by my PHP web
M application. How?
M Br,
M Morten
with getenv() and putenv() on a page by page basis
$newpath ='/usr/local/bin';
$current_path = getenv('PATH');
$newpath =
Hi,
Tuesday, December 16, 2003, 6:30:22 PM, you wrote:
RK I need to know how I can do a where clause in a select statement for mysql
RK where
RK one of the fields can have two solutions. In the example below
RK field3 needs to equal all with a and also all with b. Can this be done and
RK if so
Hi,
Wednesday, December 17, 2003, 12:15:24 PM, you wrote:
ML I posted this on the PHP-DB list and then realized it was a more general
ML question about PHP than DB so I am posting it here also hoping someone can
ML help.
ML I have a fairly common problem that I have not been able to find the
ML
Hi,
Wednesday, December 17, 2003, 12:32:25 PM, you wrote:
ML Thanks for the info, Tom. That explains it. I can't really run the query
ML again because of time and the size of the database. There is currently over
ML 200,000,000 records in some of the tables. The subsets I get are generally
ML
Hi,
Tuesday, December 9, 2003, 4:58:30 PM, you wrote:
ijc Hi all,
ijc I am trying to do a simple INSERT data into the database using the following
ijc php script but the problem here is that whenever I click submit, the script
ijc only insert a NULL value into the columns into the datadase
Hi,
Wednesday, December 10, 2003, 11:53:27 AM, you wrote:
c G'day all
c I was wandering I have php installed with GD with freetype fonts compiled in
c I ran this php script
c ?php
c header(Content-type: image/gif);
c $im = imagecreate(400,30);
c $white = imagecolorallocate($im,
Hi,
Sunday, December 7, 2003, 6:38:13 PM, you wrote:
G I'm using a MySQL database to store images as BLOBs. I know how to
G handle all the MySQL stuff, it's easy, and really makes keeping track
G of files nice an clean. No permissions, no risk of getting things out
G of sync, finding stuff is
Hi,
Tuesday, December 2, 2003, 9:54:33 PM, you wrote:
B Hi i am very new to PHP so need some help !
B i have a form which allows the user to put in 2 team names and then displays
B them, at the moment it displays them side by side but i need to insert V
B (versus) in the middle--how can i do
Hi,
Tuesday, December 2, 2003, 7:17:58 AM, you wrote:
r Hi all,
r I have this in a template:
r $redirect = viewclient.php?id={$_REQUEST['id']}foo=bar;
r header(Location: $redirect);
r Only, nothing happens when this code is executed. Nothing. It gets
r completely ignored.
r I even tried:
r
Hi,
Friday, November 28, 2003, 12:12:57 PM, you wrote:
son Working on a Macintosh G3 PowerBook running OS 10.2 and PHP 4.3.0 with GD2
son ...
son I'm having trouble telling GD2 where the font I'm using in a PHP exercise
son (Chapter 19 of the 2nd edition of the Welling/Thomson book), arial.ttf,
Hi,
Tuesday, November 25, 2003, 2:25:33 AM, you wrote:
M Hi there,
M I am trying to get I18n support working on my site. To do this I have
M isntalled gettext.
M Somehow the translation does not work. I did everything the examples
M explained, but I do stillg get en text.
M Here is what I
Hi,
Friday, November 21, 2003, 7:56:34 PM, you wrote:
SD I could use a little help. click on the link to see my php code for a
SD project that creates an array with a list or items and their cost and
SD calculates tax by using a function called getTax() and also creates a
SD balance by adding
Hi,
Saturday, November 22, 2003, 4:55:05 AM, you wrote:
WvV David T-G wrote:
WvV Guys, Jay asked a serious question (I think). Anyways, let's take this one
WvV step further to something that I've really been wondering about.
WvV (.. long bunch of HTML ..)
WvV Jay asked ?=$Question?, then Tom
Hi,
Saturday, November 22, 2003, 1:23:36 AM, you wrote:
JH Tom Rogers [EMAIL PROTECTED] wrote in message
JH news:[EMAIL PROTECTED]
JH No, I've tried that along with all other obvious path stuff.
JH /Jesper
Then there must be some kind of restriction on the server, Is it running in
chrooot
Hi,
Friday, November 21, 2003, 12:37:50 AM, you wrote:
JF when should i use echo ' '; vs. print ' ';
JF
JF Jay Fitzgerald, Design Director
JF - Certified Professional Webmaster (CPW-A)
JF - Certified Professional Web Designer (CPWDS-A)
JF -
Hi,
Friday, November 21, 2003, 10:53:08 AM, you wrote:
JH I'm trying to run a super simple command through passthru.
JH Here's my test.php file:
JH htmlbody
JH ? passthru('ls -l'); ?
JH /body/html
JH It works if run directly with php test.php.
JH When this is run from the browser, there is no
Hi,
Thursday, November 20, 2003, 11:03:22 AM, you wrote:
DP I'm reading a list of stores from a database and ordering them
DP alphabetically. How would I place a line break in between each letter
DP grouping? For example,
DP Applebee's
DP Aaron's Place
DP Aardvark Store
DP Bumblebee's
DP
Hi,
Thursday, November 20, 2003, 11:12:55 AM, you wrote:
TR Hi,
TR Keep track of the first letter and if it changes echo a br
TR $key = ''
TR //loop through results
TR while($result = mysql..){
TR $char = strtoupper(substr($row['name'],0,1));
TR if(empty($key){
TR $key =
Hi,
Sunday, November 9, 2003, 12:48:17 AM, you wrote:
ST Sorry for the long post--and the cross-posting to a MySQL list, for
ST those of you seeing this a second time--but I'm using with difficulty
ST the 2nd edition of Welling/Thomson's PHP and MySQL Web Development as a
ST textbook for
201 - 300 of 879 matches
Mail list logo