> I'd like to use $get_question_data[xxx_name_en]
> $get_question_data[$test_name_en]
> $get_question_data[{$test}_name_en]
> ${get_question_data[$test_name_en]}
try this ... $get_question_data["{$test}_name_en"]
Hope it works...
Nadim Attari
--
PHP Database Mailing List (http://www.php.net
Hi, I'm trying to make a script but have a problem ...
How could I do this:
I'd like to use $get_question_data[xxx_name_en]
where xxx would be a variable variable according to the situation where the
script is called... how would I do this?
tried :
$get_question_data[$test_name_en]
$get_que
I get only the table headings and text before and after the table, but not
the table, when I add the "where" clause as below. Without the "where"
clause, the table does come up but (as expected) is repetitive and very
long. I'm using a template that I've used many times. I've tried
chang
Thanks for the quick reply. That doesn't seem to be the problem, though,
as I can't seem to find any additional spaces being sent in the headers.
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Calvin Lough
> Sent: March 14, 2005 3:07 PM
> To: Adept
Because the session you are using probably uses a cookie to remember
the session, it is required that you call session_start before you
output anything to the screen(aka: send any headers). So if you place
the session start at the very top of your page before you include any
files or output anythin
I am using the following script to maintain a login session on some
pages:
logging in again
or contact the
mailto:[EMAIL PROTECTED]">system
administrator');
}
?>
The sessions are stable and work fine EXCEPT when I run another PHP
script on the web pag
Then, is it safe to assume that you can run stored procedures and queries
that don't use a remote linked server? Fundamentally, I don't know why
PHP would be the problem, since the remote link is established within the
stored procedure. To make sure that it is not a problem with the mssql
extensio
You may be using the SA credentials, but will the sql server allow the
connection from the webserver. That is a different situation.
Bastien
From: Raul IONESCU <[EMAIL PROTECTED]>
Reply-To: Raul IONESCU <[EMAIL PROTECTED]>
To: php-db@lists.php.net
CC: [EMAIL PROTECTED]
Subject: Re: [PHP-DB] PHP M
On Mar 14, 2005, at 2:26 AM, Ken wrote:
On Mon, 14 Mar 2005 01:43:09 -0800 (PST), Yemi Obembe
<[EMAIL PROTECTED]> wrote:
hi folks,
who knows any function that can do this javascript trick
window.location='http://somewhere.com/'
tried header(location:ht
Yes, of course; I'm running under sa credentials so that's not the problem.
On Mon, 14 Mar 2005 09:28:15 -0500, Bastien Koert <[EMAIL PROTECTED]> wrote:
> Do you have permissions to run the query as the php/webserver user?
>
> Bastien
>
> >From: Raul IONESCU <[EMAIL PROTECTED]>
> >Reply-To: Rau
Yes, the 'a' value can also be a table alias name.
Bastien
From: JeRRy <[EMAIL PROTECTED]>
To: php-db@lists.php.net
Subject: [PHP-DB] Re: Handling database calculations with a php page
Date: Mon, 14 Mar 2005 19:46:46 +1100 (EST)
Hi,
So in other words when we are talking queries anything
before a .
Do you have permissions to run the query as the php/webserver user?
Bastien
From: Raul IONESCU <[EMAIL PROTECTED]>
Reply-To: Raul IONESCU <[EMAIL PROTECTED]>
To: php-db
Subject: [PHP-DB] PHP MSSQL bug
Date: Mon, 14 Mar 2005 09:16:40 +0200
I have created a stored procedure wich is accessing an remo
That's the convention. You HAVE TO:
- read and use the manual, the rest of us do
- dig out and follow a tutorial on working with PHP and databases
If you do not, you will have no real knowledge of what you're doing, only a
piecemeal "Someone said to do it this way."
Do this BEFORE
tony yau wrote:
hi all,
I'm trying to make my classes compat with php4 and php5 is there a way of
doing something like this:
if( version== 4)
define( "VISIBILITY", "" );
else if (version==5)
define( "VISIBILITY", "protected" );
class Flex
{
VISIBILITY function CompatFunc();
}
No, seem
tony yau wrote:
hi all,
I'm trying to make my classes compat with php4 and php5 is there a way of
doing something like this:
if( version== 4)
define( "VISIBILITY", "" );
else if (version==5)
define( "VISIBILITY", "protected" );
class Flex
{
VISIBILITY function CompatFunc();
}
this will
hi all,
I'm trying to make my classes compat with php4 and php5 is there a way of
doing something like this:
if( version== 4)
define( "VISIBILITY", "" );
else if (version==5)
define( "VISIBILITY", "protected" );
class Flex
{
VISIBILITY function CompatFunc();
}
--
Tony Yau
--
PHP
you forgot the quotation marks on header i believe
header('location: www.foobar.com');
and also make sure your browser supports header redirects, not all browsers do.
On Mon, 14 Mar 2005 01:43:09 -0800 (PST), Yemi Obembe
<[EMAIL PROTECTED]> wrote:
> hi folks,
> who knows any function that can d
hi folks,
who knows any function that can do this javascript trick
window.location='http://somewhere.com/'
tried header(location:http://somewhere.com/) but it gave me an
errorinclude() on the other hand only includes the url & doest redirect to
it...
thn
hi guys my code is as below just look at that and tell me what should i
add to have two colomns in my table;
include ('connect.php');
$query = "SELECT * FROM stockiestandbookingagents order by
city,companyname,postalcode";
$result = mysql_query($query) or die("Query failed");
for($e=0;$e";
Hi,
So in other words when we are talking queries anything
before a . for SELECT etc means table name and after
the . means column name within that table?
So...
(table_name).(Column_name) ?
Is that right?
J
Find local movie times and trailers on Yahoo! Movies.
http://au.movies.yahoo.com
--
20 matches
Mail list logo