[PHP] date problem

2002-02-18 Thread eoghan

hello

i am running into some trouble with a very basic problem.
i want to insert the current date/time into my db. i have 
the field set up as a datetime field. when i submit info,
i just get a blank date, i mean it all zeros, like
-00-00 00.00:00:00. how do i insert the current datetime
into my db? i tried using a hidden field with a foramtted
gmt date value, but its not working... any help

thanks - eoghan

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] format text

2002-02-26 Thread eoghan

hello
i am looking for a way of formatting my text
when i select it from mysql, looking for a function
like cold fusion paragraphformat() that will preserve
line breaks etc when i select my data from the database.

thanks

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] just wanna know

2002-02-28 Thread eoghan

hi

whats the difference between
print and echo ?

thanks

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] dbase

2002-05-21 Thread eoghan

anyone ther eused dbase with php.
was looking for best pratices on 
searching... any code snippets appreciated.

thanks...



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Project Management

2007-05-24 Thread eoghan

On 24 May 2007, at 10:26, Christian Haensel wrote:


Morning guys,

this is not exactly a PHP question, but as I am sure that I am  
talking to more or less professional developers, I thought I might  
ask you.


As I am working on some... well, for my standards... huge project,  
I thought that some kind of project management software would /  
could be helpful to keep track of my ideas, tasks and so on. Right  
now I am using a huge chunk of papers to keep track (as good as I  
can).


Has any of you any experience with good project management  
software? Best would be OpenSource, of course :o) My boss doesn't  
want to spend a lot of money ;o)


Cheers guys,

Chris from sunny germany


Hi Chris
You could try basecamp... one project is free I believe.
http://basecamphq.com/

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Accessible HTML - OT

2005-05-09 Thread eoghan
hi
perhaps have a look here:
http://www.webstandards.org/about/
Mikey wrote:
Hiya!
 
I have just come back from the client visit and one of the issues that arose
was over the use of accessible markup, more specifically the use of tables
versus the use of layers.
 
Now, my long held belief was that div/layers were added to the spec so that
designers could separate presentation markup from content - that is, use
positioned layers for laying out content, use tables for tables of data as
they were originally intended.  However, my client seemed adamant that it
was the other way around and that the use of tables was preferred owing to
browser compatibility issues.
 
Now, I have just had a look around w3 and have found some inferences that
support my view but nothing that states clearly in either direction.  Does
anyone on this list have a definitive answer for this one?
 
TIA,

Mikey
--
The revolution will not be sent as an e-mail attachment.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] mysql with php

2005-05-20 Thread eoghan
$sql = select User_name, User_pass from user where User_name = 
'$_POST[user_id]' and User_pass = '$_POST[user_pass]';

assuming user_id isnt an int
Rittwick Banerjee wrote:
Hi friends,
I am Rittwick Banerjee
and i have made a mysql based  user name and password program but I 
found that
what ever I entered in the user name and password feild the php file 
dose not working.

I set this code for user name and password
$sql =  SELECT `User_name` AND `User_pass` FROM `user` WHERE 
`User_name`= '$_POST[user_id]' AND `User_pass` = '$_POST[user_pass]' 

But this code dose not working properly.
This code dosen't checking if the user name and password is correct or 
incorrect

Please help me with some source code.
Thank you.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] PHP 5 Question about OO

2005-06-01 Thread eoghan

maybe have a look at extends

class Class1 extends Class2 {...

janbro wrote:

Hi List,

I'm using the oo orientation of PHP5 for a while now. All Classes I've
got have a require on top them, if I try to reference to other classes.
something like

require (Class2.php);
class Class1{
private function ... {
$refClass2 = new Class2;
}
}

Now my question, is it possible to skip that require/ include part? In
Java you don't need that, as class and file names are identical.

thx
janbro



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] change letter to all caps

2005-07-18 Thread eoghan

Hi

On 18 Jul 2005, at 18:59, George B wrote:

Lets say I have a form. And when user types in the form and clicks  
go, it shows output.

but.
lets say the person type in
monday
But I want the php code to change it too
MONDAY
how do I do that?
Thanks!


have a look here:
http://ie2.php.net/manual/en/function.strtoupper.php

eoghan

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] problems with self referential sticky forms

2005-07-19 Thread eoghan

On 20 Jul 2005, at 02:01, Linda H wrote:

But when execute the code above I get an error: Notice: Undefined  
index: fahrenheit in C:\Program Files\Apache Group\Apache2\htdocs 
\.



Where is fahrenheit? change the input name...
Eoghan

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] problems with self referential sticky forms

2005-07-19 Thread eoghan

On 20 Jul 2005, at 02:22, Linda H wrote:


fahreheit is here:

?
$fahr = $_GET['fahrenheit'];
if (is_null($fahr)){ echo 'fahr is null';}
$

The error was on the line: $fahr = $_GET['fahrenheit'];


try:
input name=fahrenheit type=text  value=?php echo $fahr; ? /

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] how to post a question?

2005-07-22 Thread eoghan

Shaw, Chris - Accenture wrote:

Posting a question on how to post a question.

:)


you gotta start somewhere

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] PHP Spider/Crawler for Emails possible?

2005-07-29 Thread eoghan

On 29 Jul 2005, at 19:16, Jay Blanchard wrote:


I also noticed that the thread started as a RE:, was this thread
hijacked?



yeah... was PHP noobie

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] php mac folder

2005-11-05 Thread eoghan


On 5 Nov 2005, at 19:37, Ross wrote:


Hello,

I have a setup question for php for mac.

I have shared my windows folder 'wwwroot' across the network but  
when I
preview my .php file it connot find it because the specified php  
folder on

the mac is http://127.0.0.1/~myname/Sites

I suppose I have to change the php.ini to include the networked  
folder as a

php location but i cannot  find it.

I am not so sure of the file system with mac (just got it) and  
cannot find
this folder/usr/local/php5. I can find 'User' and 'myname'  
folders.Does Mac

have a show hidden system folders function like windows??

Any help with how I can run php files on  the networked folder  or  
about the

mac folder system will be a great help.

Thanks,

Ross


Hello...
about the mac:
you can user terminal to get there:
whereis php # maybe try this first
cd /usr/local/php5
or open finder and apple key + shift + g and type it in there.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Preventing data from being reposted?

2005-03-03 Thread eoghan
you can use header()
http://ie.php.net/header
rory walsh wrote:
Is there anyway I can prevent data from being reposted when I hit the 
back button on my browser? When I hit back I get a message from my 
browser asking do I want to repost the data, can I prevent this window 
from appearing?

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] Preventing data from being reposted?

2005-03-03 Thread eoghan
i think ive missed a few mails there...?
rory walsh wrote:
Cheers, I'll take a look, I had tried a search but thunderbird didn't 
find anything, even with the exact thread title I had to google it? 
Anyway I'll take a look.

Jochem Maas wrote:
rory walsh wrote:
Thanks Eoghan, I have tried the following but it still reposts the 
data from the form and goes back a page?

header(Cache-control: private);
header(Cache-Control: no-store, no-cache, must-revalidate);
header(Cache-Control: post-check=0, pre-check=0, false);
header(Pragma: no-cache);
Am I write in assuming that the above headers should prevent the 
user from going back in the first place as no cache has been taken?

no - just that if they do then the page will have to be reloaded (under
std conditions the user then gets the 'Are you sure you want to 
repost?' kind
of message)

before asking anything more on this topic, look up a thread on this
lists archive entitled
'Clear POST variables on page refresh'
this should give you headsup on the issues + a good suggestion by 
Richard
Lynch on how to handle this (his idea uses md5 hashes to 'auth' 
specific POST
actions, when the POST occurs the given hash is invalidated... read 
original thread
for full info)


Eoghan wrote:
you can use header()
http://ie.php.net/header
rory walsh wrote:
Is there anyway I can prevent data from being reposted when I hit 
the back button on my browser? When I hit back I get a message 
from my browser asking do I want to repost the data, can I prevent 
this window from appearing?



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] multiple OR's

2005-03-17 Thread eoghan
can do:
if ($name==andrea || $name==john)
On 17 Mar 2005, at 11:59, AndreaD wrote:
if ($name==andrea) OR ($name==john)
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] sort by date

2005-05-06 Thread eoghan
William Stokes wrote:
OK. I found that out from MySQL manual. I just don't know how to insert the 
date formatting function to the query:

I quessI need to put STR_TO_DATE() in to the following SQL query:
SELECT event_id,name,date,time,place,type,info FROM test_table
WHERE (group = '$group') AND (type = 'Game' OR type = 'training')
ORDER BY date ASC
I dont know how?
something like; select my_date as STR_TO_DATE(date)...
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] xslt_process

2004-05-15 Thread eoghan
hi,
im using the xslt_process() function, but want to use a php file with 
generated xml content as the xml file i feed the
function but it seems to complain that its a php file
*Warning*: Sablotron error on line 22: XML parser error 4: not 
well-formed (invalid token)
when i use a test xml doc is works fine... i have the header set as 
text/xml... anyone any ideas how i can use a php
file with this function?
thanks eoghan

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] class_xslt

2004-05-17 Thread eoghan
hello,
im kinda new to php and new to xslt. im looking at these classes 
http://phpxmlclasses.sourceforge.net/
and wanted to use the class_xslt. The example shown, works fine for me, 
but i want to use it getting the xml as a string.
in order that i can generate the xml from my db... i have used the xml 
to vreate a string but i get this error...
*Warning*: Sablotron error on line 16: XML parser error 7: mismatched tag
has anyone any experience using this class with a string? my sample is 
posted below...
thanks eoghan

===
?
include_once(class_xslt.php);
$xml = ?xml version=\1.0\ encoding=\UTF-8\ ?\r\n;
$xml .= \tapps\r\n;
$xml .= \t\tapplication id=\1\\r\n;
$xml .= \t\t\tnameEditor/name\r\n;
$xml .= \t\t\tauthorJohn/author\r\n;
$xml .= \t\t\tbugs\r\n;
$xml .= \t\t\t\tbug\r\n;
$xml .= \t\t\t\t\tdescFoo/desc\r\n;
$xml .= \t\t\t\t\t\tsev2/sev\r\n;
$xml .= \t\t\t\t/bug\r\n;
$xml .= \t\t\t\tbug\r\n;
$xml .= \t\t\t\t\tdescBar/desc\r\n;
$xml .= \t\t\t\t\t\tsev3/sev\r\n;
$xml .= \t\t\t\t/bug\r\n;
$xml .= \t\t\t/bugs\r\n;
$xml .= \t/apps\r\n;
//echo $xml;
$xslt=new Xslt();
$xslt-setXmlString($xml);
$xslt-setXsl(tr1.xsl);
if($xslt-transform()) {
  $ret=$xslt-getOutput();
  echo $ret;
} else {
  print(Error:.$xslt-getError());
}
?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] post data

2004-06-15 Thread eoghan
hi,
im posting a form to itself... and im wondering if there is any
way to clear the post data from the page after if have dealt with it?
to stop page refreshes posting the data again?
thanks
eoghan
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] php editor

2005-01-14 Thread eoghan

Since I do Java, Python etc. on OSX/windows/Linux, I'm using Eclipse 
with the PHPEclipse (PHPEclipse.de), I'm just starting PHP, but I'm 
pretty happy with it so far. One thing I am wondering about is the 
situation which Debugging in PHP4 / PHP5. Is there a Debugger for PHP?

http://dd.cron.ru/dbg/downloads.php
eoghan
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] XML describing a form

2004-06-30 Thread eoghan
 My harder part is how handle a combo box ?(xml part and php parsing part)
 Thanks for all
 Pierre
this may be of help to you
http://www.topxml.com/xsltStylesheets/xslt_html.asp
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] XML describing a form

2004-06-30 Thread eoghan
Yes I think so.thanks a lot 
And Please all,can you say here the most appreciated and usefull links of
php you have, cause I'm French and don't know English website about php I've
found some with google but there's more I guess so about php xml and mysql
thanks a lot.
try this:
http://www.tribal-dolphin.net/index.php?op=edito
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] xslt_create

2004-06-30 Thread eoghan
on windows? linux?

Pierre wrote:
Ok so I must recompile php with this option but I can't is there any php
class easy to use that can do this ?
Pierre 

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] xslt_create

2004-06-30 Thread eoghan
thats really difficult to say without seeing the xsl and xml. theres a 
very good xsl list over at mulberrytech.com too if you need specific xsl 
help
http://www.mulberrytech.com/xsl/xsl-list/index.html

Pierre wrote:
Yes it's ok thanks to all :)
But now I have a little problem : my page is all white 
This is my code : 
$xml='frm2004.xml';
$xsl='style1.xsl';
$xslt=xslt_create();
$resultat=xslt_process($xslt,$xml,$xsl);
xslt_free($xslt);
echo $resultat;

what's wrong ? please 

Pierre 

-Message d'origine-
De : Ray Hunter [mailto:[EMAIL PROTECTED] 
Envoyé : mercredi 30 juin 2004 21:45
À : Pierre
Cc : php-general
Objet : RE: [PHP] xslt_create

On Wed, 2004-06-30 at 14:36, Pierre wrote:
Ok so I must recompile php with this option but I can't is there any php
class easy to use that can do this ?

If you are on a linux box and have php installed via rpm you might be
able to get a php-xslt rpm that you can use. If on windows you can
download the zip file from php.net that contains all the dlls and in
there you will find the php xslt (sablotron) dll and you will have to
uncomment that dll in your php.ini file.
--
BigDog
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] Parsing error when XML version is mentioned

2004-07-25 Thread eoghan
instead of that line use this
?
echo ?xml version=\1.0\ encoding=\UTF-8\?\n
?

Can you pls. help me understand why parsing error occurs and how to avoid
it.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] Checking for form submission

2004-08-04 Thread eoghan
I am trying to create some code to check whether a form has been submitted.
The following code seems to print evertime, whether a form has been
submitted or not:
if (isset($_POST)) {
  echo '(isset($_POST))';
 }
why not just
if( $_POST) {
echo $_POST;
}
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] Weblog -Blog software wrtten in PHP and My SQL

2004-08-31 Thread eoghan
wordpress
[EMAIL PROTECTED] wrote:
Does anyone know of Blog sw available in the marketplace written in PHP and 
maybe MySQL?

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php