Michael Jonsson [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
No, it's not set to NULL it just emty...
Empty means:
$_SESSION['user_status'] = '';
or
$_SESSION['user_status'] = 0;
Not setting it does NOT mean it's empty.
Torsten
.M
Torsten Roehr wrote:
Michael Jonsson
it hard to back
track errors.
Always develop with error reporting set to E_ALL. You may set a lower level
for your production environment and disable the display of errors:
ini_set('display_errors', 0);
Regards, Torsten Roehr
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit
arraypush but can only get it to work with a standard
array...how can I do this?
$array = array();
while ($sql-nextRecord()){
// figure out how to get $title and $page from your record set (do
didn't say which DB layer you are using)
$array[$title] = $page;
}
Regards, Torsten Roehr
wants to use
that
?
Can anyone help me out with this one ?
This was discussed earlier today in another thread. Go to the list archive
and look out for Multiple URL Redirection:
http://marc.theaimsgroup.com/?l=php-generalr=1b=200406w=2
Regards,
Torsten Roehr
--
PHP General Mailing List (http
Of course it will take some time to get into it but will save you a lot of
time in future projects.
Hope this helps!
Regards, Torsten Roehr
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi,
google for 'php pear hbci'. You'll find some useful sites.
Regards, Torsten Roehr
Arndt Touby [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Hi,
does anybody have an idea how to implement HBCI-functionality to a
PHP-Site?
greetings
Arndt Touby
--
PHP General Mailing
how I might do it?
Many thanks...
--
Nick W
Hi Nick,
try this:
echo script language=\JavaScript\
!--
this.print();
//--
/script;
You have to put it into a valid HTML page.
Regards, Torsten Roehr
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net
variables are set and
get to use HTTP_Sessions static methods instead. But this shouldn't be much
of a problem. It could even work without these changes by directly accessing
$_SESSION.
Bets regards, Torsten Roehr
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http
Dustin Krysak [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Ok - here is the relevant Quicktime code:
!-- START QUICKTIME CONTENT --
object classid=clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B
width=320 height=256
codebase=http://www.apple.com/qtactivex/qtplugin.cab;
param
Ryan A [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Hey,
been looking at a lot of calenders most of them are either too big for my
use (whole page), not free, in javascript or too complicated.
I require a calender that is simple, loads fast,small and not javascript,
the
Travis Low [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
I have to say I like everything about the PEAR coding standards except for
the
KR bracing style. I much prefer:
if( foo )
{
blah;
}
to
if( foo ) {
blah;
}
The latter form (KR) conserves
to open the opening one...
d
On 31-May-04, at 2:39 AM, [EMAIL PROTECTED] wrote:
From: Torsten Roehr [EMAIL PROTECTED]
Date: May 30, 2004 5:14:28 PM PDT
To: [EMAIL PROTECTED]
Subject: Re: drop down menu populated from a directory
Dustin Krysak [EMAIL PROTECTED] wrote in message
Dustin Krysak [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
ok, I added brackets and made my code to:
?php
if ($handle = opendir('../../../mov')) {
while (false !== ($file = readdir($handle))) {
if ($file != '.' $file != '..') {
$fileName =
select tag goes here
Haven't tested it. Hope it works and helps ;)
Regards,
Torsten Roehr
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Ashwin Purohit [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Hi everybody,
I have this script in a file that allows users to upload files, and I want
to know who submitted what so I write $userfile_name and $credit1(their
name) to CREDIT.txt in the same directory like so :
examples
in
the PHP manual.
What you want is this:
$temp = 'composer' . $countything;
Then use ${$temp} - it will efectively be $composer1.
Take a look here:
http://de2.php.net/manual/en/language.variables.variable.php
Regards, Torsten Roehr
--
PHP General Mailing List (http://www.php.net
Maybe you could use a ready-made package such as PEAR's Mail_Mime:
http://pear.php.net/package/Mail_Mime
Regards,
Torsten Roehr
Matt Macleod [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
I've been having a little trouble configuring a script to send a
multipart email using PHP
I.A. Gray [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Thanks, Torsten. That clears things up quite a bit. I do find the PHP
manual a little heavy going sometimes. Does this mean then that I have to
do this:
$tempcomposer = 'composer' . $countything;
$tempsubheading =
!
Please set your error reporting to E_ALL while developing:
ini_set('error_reporting', E_ALL);
Regards, Torsten Roehr
$mysql_rslt1 = mysql_query($sql, $mysql_bconn)
or die (Could not get data);
while ($rec1 = mysql_fetch_array ($mysql_rslt1)) {
echo some stuff here;
}
Now the problem
['loc_city'];
echo option value=\$v\ ;
// if current loc_id is previously selected loc_id set selected
echo ($_POST['sellocation'] == $v) ? 'selected' : '';
echo $option[$i]$n/option;
}
Regards,
Torsten Roehr
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe
($val) {
$timestamp = strtotime($val);
return date('M d, Y g:i A', $timestamp);
}
Regards, Torsten Roehr
// open database connection
$connection = mysql_connect($host, $user, $pass) or die (Unable to
connect!);
// select database
mysql_select_db($db) or die (Unable to select
Hardik Doshi [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Hi group,
I have discovered a strange behaviour while using
session. I have a page from which i am opening other
pages using target = _blank element. Now when i open
the child page, it doesn't get $_SESSION values. I
'] . 'p';
echo 'File size: ' . $_FILES['spec']['size'] . ' bytesp';
}
if(copy($file, $path/$filename)){
This should be:
if (copy($_FILES['file']['tmp_name'], $path/$filename)) {
Regards,
Torsten Roehr
print(Your File was uploaded successfully);
} else{
print(ERROR, your file
this:
a.php:
echo 'hello';
header('location: b.php'); exit;
Regards,
Torsten Roehr
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
for your session data? You could easily set up a test script
with PEAR's DB and HTTP_Session. I'm using this configuration and my
provider just upgraded to 4.3.6 - no problems at all.
http://pear.php.net/package/DB
http://pear.php.net/package/HTTP_Session
Regards,
Torsten Roehr
--
PHP General
container:
http://pear.php.net/package/HTTP_Session
Regards,
Torsten Roehr
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
it works for you.
Regards,
Torsten Roehr
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
['a']['b']['c']['d'] = 4;
What I need is to be able to somehow print out the values a,b,c and d
based on the search result for 4.
Could you describe a bit more in detail what you mean with based on search
result for 4?
Thanks and best regards,
Torsten Roehr
--
PHP General Mailing List (http
Richard Davey [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Hello Torsten,
Sunday, May 23, 2004, 6:44:08 PM, you wrote:
$array = array();
$array['a'] = 1;
$array['a']['b'] = 2;
$array['a']['b']['c'] = 3;
$array['a']['b']['c']['d'] = 4;
TR Could you describe a bit more
using cookies or passing the
session id via GET?
Regards,
Torsten Roehr
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Ian Barnes [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Hi,
[code]
$file=file(/ian/testing.file); file://Load the file into array
unset($file[0]); file://Remove the first #gc line
foreach($file as $line){ // Run through each array line
$array[]=explode(,,
Electroteque [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Hi there, I was wondering if there is a standard pear class like the
XML_Tree to build RSS/RDF documents from the database ? Let me know
You just had to go to pear.php.net and type rss into the search form - not
too much
Ian Barnes [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Hi,
[code]
$file=file(/ian/testing.file); file://Load the file into array
unset($file[0]); file://Remove the first #gc line
foreach($file as $line){ // Run through each array line
$array[]=explode(,,
Electroteque [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
You just had to go to pear.php.net and type rss into the search form -
not
too much effort, right?
http://pear.php.net/package/XML_RSS
Regards, Torsten
Hi there, if you read my email properly build RSS/RDF, not
Bill Freeburg [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
how do I add newline commands in the middle of a text string?
I'm sending an email with the function
mail($sendto,$subject,$message,$headers)
The message is
$message = My name is . $myname . My favorite color is .
Michael R. Wayne [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
I've posted several times mentioning that I am completely unable
to cause sessions to persist. Over the intervening time, I have
replicated this problem to a different machine, with the same
results. Here's a recap
Michael R. Wayne [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
On Fri, May 21, 2004 at 08:04:00PM +0200, Torsten Roehr wrote:
As far as I remember session.use_trans_sid does NOT work with forms
(action
attribute). Have you tried appending it manually to the action?:
Well
than speed. Finally, is this the right place to ask questions about
MDB2,
or is there a more specific group for discussing Pear projects?
Please send your question to the PEAR mailing list php.pear.general
Regards, Torsten Roehr
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe
,
hr;
Does PHP have something similar or do I have to write the raw HTML?
Go to http://pear.php.net and search for 'HTML'. There are several classes
for outputting HTML.
Regards,
Torsten Roehr
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Michael R. Wayne [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
On Fri, May 21, 2004 at 08:35:37PM +0200, Torsten Roehr wrote:
Sorry, I'm an idiot! The ? was missing:
form method=post action=xxx.php??= SID; ?
Well, I spoke too soon. It does work, but only the SECOND time
Gabe [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Torsten Roehr wrote:
Gabe [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Torsten Roehr wrote:
Gabe [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Torsten Roehr wrote:
Gabe [EMAIL
Blake Schroeder [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
What is wrong with whis syntax:
$array = array($_POST['input_1'],$_POST['input_2']);
You don't need the double quotes:
$array = array($_POST['input_1'], $_POST['input_2']);
Regards,
Torsten
--
PHP General Mailing
Gabe [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Environment:
PHP 4.3.6
Access DB
W2K IIS 5
I'm trying to store a date in a date/time field using the short date
format ( m/d/ ). For some reason it won't let me post an empty
value to that field in the DB. I've tried
Gabe [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Torsten Roehr wrote:
Gabe [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Torsten Roehr wrote:
Gabe [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Environment:
PHP 4.3.6
Access DB
W2K IIS 5
Gabe [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Torsten Roehr wrote:
Gabe [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Environment:
PHP 4.3.6
Access DB
W2K IIS 5
I'm trying to store a date in a date/time field using the short date
format ( m/d/
Vans Hallden [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Here is one way:
(probably not the best)
I was able to get almost everything working with your help. Thanks!!! :)
average ages for male/female respondents (database column 'age')
SELECT AVG(age) FROM tablename WHERE
Jay Blanchard [EMAIL PROTECTED] wrote in message
ews:[EMAIL PROTECTED]
[snip]
I have a table whereby I use the php date() and time() function.
I retrieve the data etc, no problem.
but I now need to perform a query of between dates.
Is there a function or method to perform this.
[/snip]
Use
David [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Hi all
I have been using mysql as the database for my PHP application.
Now my manager ordered me to use Microsoft SQL Server as the database.
I have been using the mysql interface to access the database, so I have
to change my
appreciated. Thanks in advance!
Regards, Torsten Roehr
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Ronald The Newbie Allen [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
How would I carry a variable from one page to another
Here is what I mean
I have a send.php page and this is sent to
insert_into_database.php where the values of the previous page are
inserted
into the
with '?=' (short form for echo):
META HTTP-EQUIV=refresh content=10; URL=./check.php?Event_Type=?=
$_POST['Event_Type']; ?
This should work.
Regards, Torsten
/head
check.php
?
$event = $_GET['Event_Type'];
echo $event;
?
This is still not working for me
Torsten Roehr [EMAIL PROTECTED] wrote
Ronald The Newbie Allen [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Here is my problem:
When I get the value of $date and I echo it it shows up just fine
$date = date(Y-m-d H:i);
echo $date;
2004-05-15 16:20
but when I go to insert the value into a form like this
Torsten Roehr [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Ronald The Newbie Allen [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Here is my problem:
When I get the value of $date and I echo it it shows up just fine
$date = date(Y-m-d H:i);
echo $date;
2004
Curlybraces Technologies Ltd [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
hi ,
i want to export data in mysql to excel .. but problem is mysql runs in the
linux machine ,
How can i get that data from mysql-Linux machine to windows-Excel machine ,
plz help asap
thanx in advance
Alessandro Vitale [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Hi all,
I am currently running a web application which has an increasing number of
users. The application uses PHP sessions. As administrator, I would like
to
know which users are currently logged in. Any brief
Gowthaman Ramasamy [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
hello list,
can we split a string into substrings of particular size.
for example ..
i have as sting of 1000 characters. can i split it into stings of 150
and feed them into an array.
This should be EXACTLY what
Chuck Barnett [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Anyone have any code snippits that would allow me to do a Last 3 Items
Viewed like on ebay?
Thanks,
Chuck
Why not mark your records with a timestamp at every view and then do a
limited select sorted by the timestamp?
Ryan Munevar [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Hey Guys,
Question 1: Does anyone have a really good php form validation script
for Zip-codes?
Question 2: Does anyone know of a great depository of form validation
scripts for all kinds of form inputs?
Take a look at
Lee 03 [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
i am a beginner for php programming, my OS is win98 while my webserver is
PWS, all is in the same machine,when i try to run my internet explorer( type
in http://localhost/phpinfo.php), phpinfo.php cannot be display.
i try to
Jianping Zhu [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
I have mysql table call com. One colum of table com will store
user's comments. Because user-provided comment might be too big to fit in
char(255), i
use blob. but when i try to see it by use phpmysqladmin, i can only see
a
closer look later and report the problem if I find it. Thanks again,
Daniel
Using the absolute path works as well - but you have to use the full LOCAL
file path, e.g. /htdocs/www/your-domain etc.
You can get this value from $_SERVER['DOCUMENT_ROOT'].
Regards, Torsten
Torsten Roehr [EMAIL
David David [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Hello,
Does anyone know of an open source user/group based
permission system built with php/MySQL?
That is, the effective rights for any user on a
specific secured object are computed from various
permit/deny permissions
Oliver Hankeln [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Hi!
I get memory exceded errors and want to find out why. So I am looking
for a way to determine how much memory is currently beeing used by my
script. Is this possible?
getPID + reading from /proc dosent work because
Edward Peloke [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
I am currently working on a site for a vacation rental company. They
want
the ability to show users the availability of certain properties. The
availability will be held in a mysql db so I assume I will have to
Daniel Barbar [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Hi,
I'm almost ashamed to ask this question as surely enough the
problem is something very basic but, nonetheless, I can't put my finger on
it. I'm trying to implement the concept of a library (library.php)
Try including it as a local file:
require_once library.php'; // if it is in the same directory as the file
you
Forgot a quote here, sorry:
require_once 'library.php';
Torsten
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
John [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
is there any code or function out there that gives you a thumbnail of an
image in the size and compression means you specify?? ive been looking,
but
found nothing, youd think thered be a function
--
Amanda Hemmerich [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Also, the cheaper, the better, and free is best!
Older versions are available for free but may not be used commercially:
http://www.aditus.nu/jpgraph/jpdownload.php
Regards, Torsten
Thanks again.
On Mon, 10 May
Edward Peloke [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
won't the gd library do this?
http://www.php.net/manual/en/function.exif-thumbnail.php
if there is a better function..I am interested in it also as I have to do
this something this week for a project.
Thanks,
Eddie
Mike Mapsnac [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
I search on php.net and couldn't find the function. I need a function that
will remove characters in the string until it reached the pattern and
remove characters in the string after another pattern.
The program reads
20004
Is the character you want to remove ('t') always the same?
Torsten
From: Torsten Roehr [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: [PHP] Re: Remove cahracters in string
Date: Mon, 10 May 2004 22:37:36 +0200
Mike Mapsnac [EMAIL PROTECTED] wrote in message
news:[EMAIL
Matthias H. Risse [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Hi again!
Question:
Does anyone know of a possibility to exclude files which
have been included _before_ my script starts on the
fly (e.g. at the first lines after the entrypoint) ?
Reasons:
This ISP of my
Dave Carrera [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Hi List,
I think this a complicated sql query but I am sure one of you gurus will
show me how easy this is.
I am doing a search script an have it finding multiple words and
highlighting those words.
Now my issue is how do I
Jay Blanchard [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
[snip]
This is more of a HTML than a PHP question, but anyway:
It doesn't matter where you put the buttons as long as they are INSIDE
the
form-tag and have different names.
[/snip]
Actually you can name them all the same
Verdon Vaillancourt [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Hi :)
I'm trying to put a stop in a foreach statement following the user
suggestion here, php.net/manual/en/control-structures.foreach.php
Not really knowing what I am doing, I am running into some synatx
problems.
This is my attempt to count items and put a stop in the foreach so it
only
returns 5 items.
foreach ($this-_content as $n = $item) {
if ($n==5)
break;
} else
if ($this-_content[$n] = $item['type'] == 'item'){
$elements['ITEM_LINK'] =
Curt Zirzow [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
* Thus wrote Torsten Roehr ([EMAIL PROTECTED]):
Sorry, I mixed up the for and the foreach syntaxes. Here my (hopefully
correct) loop proposal:
for ($i; $i 5; $i++) {
for($i=0; ...)
I wouldn't suggest this method
Paul Higgins [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Hi all,
I'm on a shared server, and I do not believe that I have access to the
/tmp
directory where the session files are stored (I believe that is how it
works
:). I want to keep track of which sessions are active.
. The session
table has a timestamp column named expiry which will make it easy to count
the active sessions. By the way, doing the DB session count should also be
faster than counting the files in your /tmp dir ;)
Regards, Torsten
Thanks
From: Torsten Roehr [EMAIL PROTECTED]
To: [EMAIL PROTECTED
Aaron Wolski [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Hi all,
Was wondering if someone had any idea's on this logic and if it'd work,
before I tried to implement it:
Within the form/form tags I have my buttons - Publish, Unpublish,
New, Edit and Delete.
Next I have a
Adam Voigt [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
On Fri, 2004-05-07 at 13:47, Torsten Roehr wrote:
This is more of a HTML than a PHP question, but anyway:
It doesn't matter where you put the buttons as long as they are INSIDE
the
form-tag and have different names
Tim Traver [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Can any admin remove this user from the list ?
Advance Credit Suisse Bank [EMAIL PROTECTED]
Every time I post, I get an autoresponse from that address...
Anyone else get that ?
Unfortunately, yes.
Torsten
Thanks,
Kim Steinhaug [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Well,
I would include another hidden field and name it something like ACTION.
I would also include a checkbox on every item you want to do something
with
like this :
input type=checkbox name=item[] value=?=$databaseID?
.
--
www.steinhaug.com - www.easywebshop.no - www.webkitpro.com
--
Torsten Roehr [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Kim Steinhaug [EMAIL PROTECTED] wrote in message
news:[EMAIL
Richard Harb [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
More often than not it's a good thing to assign 'default' values to
class variables like that.
In this case though I've observed that common practice is to get the
user/pass values from a config file and pass them along as
Told [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
I can't make session work if I set session.use_trans_sid = 0, or I must
append SID to the URI to get session work.
And, the cookie works OK.
Here is my test code:
?php
session_start();
if (!isset($_SESSION['test'])) {
Anthony [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
I've run into a bit of a problem, that I know has been dealt with before,
but I don't know how to deal with it. Very simple, I have an application
that needs to do calendar math and do it specifically on business days. I
need
Msa [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
'SELECT * FROM table WHERE YEAR(date) = ' . date('Y') . ' AND
MONTH(date)
=
' . date('m') . ' ORDER BY SORT DESC'
What column type is your date column of? I know that the above statement
works with the MySQL date (-MM-DD)
Marek Kilimajer [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
msa wrote:
My date format is as aboveI am getting the following error message:
You have an error in your SQL syntax. Check the manual that corresponds
to
your MySQL server version for the right syntax to use
Msa [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Marek Kilimajer [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
date('m') was not parsed by php as it was in the string. Syntax
highlighting would help you see it. Try:
SELECT * FROM NewsArchive WHERE YEAR(date) = '
Daniel Clark [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Are you looping through the record set?
SELECT * FROM NewsArchive WHERE YEAR(date) = ' . date('Y') . ' AND
MONTH(date) =' . date('m') . ' ORDER BY sort DESC;
Well, still not working...but maybe closer? Not getting
Msa [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Daniel Clark [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Are you looping through the record set?
i thought I was, but it isn't working!!
here is the code with all of the latest suggestions.
start code at top
Draw-A-Line [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Hallo,
ich hoffe mir kann jemand bei folgendem Problem helfen. Habe ein Formular
erstellt und darin ist ein file field eingebettet zum Hochladen von
Dateien (z.B. Word-Dokumente). Habe den Zusatz
enctype=multipart/form-data
Brandon Goodin [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
I noticed this notation in one of the PEAR packages @session_start()? What
is the purpose of the '@' sign?
It suppresses/ignores any error output for this function.
Regards, Torsten
Thanks
Brandon
--
PHP
Kim Steinhaug [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Often I end up using a dumb IF statement which to me seems that
it could have been done some other way.
Example :
if(
($_GET[id]==1) or
($_GET[mode]==home) or
((!isset($_GET[item])) ($_GET[mode]==news))
So the problem is not the delete statement but that you cannot even open a
connection, right? Have you tried PHP's ODBC functions to connect to the
Access DB?:
http://de.php.net/manual/en/function.odbc-connect.php
There are some user comments regarding Access - maybe this helps.
Regards,
William Stokes [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Hello
I need to open a popup window from my php page . The information displayed
on this popup depends on a variable value on the first page. How do I
paste/move the variable value to the popup window. The popup is
Frederic Noyer [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Hello there !
I am trying to fill and then compare two arrays: one filled by a
foreach construct, and the second by a while construct.
I check both with a print_r to be sure that both are correctly filled
(which seems to
Frederic Noyer [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
On 30 avr. 04, at 11:00, Torsten Roehr wrote:
I think this is correct because the 3 key/value pairs from the first
array
are NOT in the second one. I think the combination of key and value are
relevant
Frederic Noyer [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
On 30 avr. 04, at 11:31, Torsten Roehr wrote:
Frederic Noyer [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
On 30 avr. 04, at 11:00, Torsten Roehr wrote:
I think this is correct because the 3 key
201 - 300 of 330 matches
Mail list logo