You should easily use
mysql_insert_id();
otherwise you could use something like:
SELECT max(id) FROM ...
But I think the first command is what you're looking for.
Stefan
-Ursprüngliche Nachricht-
Von: Aaron Todd [mailto:[EMAIL PROTECTED]
Gesendet: Mittwoch, 1. Dezember 2004 17
The actual problem was the leading number in some of your arguments
(4_h_1, 4_h_2, etc)
Stefan
-Ursprüngliche Nachricht-
Von: Aaron Todd [mailto:[EMAIL PROTECTED]
Gesendet: Mittwoch, 1. Dezember 2004 18:33
An: [EMAIL PROTECTED]
Betreff: Re: [PHP-DB] getting data back when
Something like this should get you started
?php
// NOT TESTED !!!
class SimpleMapper
{
private $metadata = array();
private $stmt;
public function __construct(PDOStatement $stmt, array $metadata)
{
$this-stmt = $stmt;
$this-metadata = $metadata;
}
about this combination...
thx
Stefan Siefert
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
Hi Pierre...
I think the problem is, that you have configured php as cgi-apliction, and
not as an ISAPI module. I'm not sure how to configure PHP this way (cause we
run only linux - server, and no IIS..) but this should be the problem.
Greetings,
Stefan Siefert
Hallo listmembers,
i have
are able to
select over the filetyp criteria!!
Stefan Siefert
-Ursprngliche Nachricht-
Von: Jordan Elver [mailto:[EMAIL PROTECTED]]
Gesendet: Dienstag, 27. Mrz 2001 14:38
An: PHP Database Mailing List
Betreff: [PHP-DB] Structure Question
Hi,
I want to keep filenames of different kinds
,
Stefan Siefert
-Ursprngliche Nachricht-
Von: Anyangwe, Tanwani [mailto:[EMAIL PROTECTED]]
Gesendet: Dienstag, 27. Mrz 2001 17:49
An: '[EMAIL PROTECTED]'
Betreff: [PHP-DB] Connecting and Viewing a Database
Does anyone know how to connect and display table rows from an ODBC source
MS Access
Do you have the sybasect - libraries installed??? You need to have them
installed in order to compile PHP succesfully!
Also, if you have sybase-ct installed, specify the path
with: --with-sybase-ct=/path/to/sybasectlibs
Hope this helps,
Stefan Siefert
-Ursprungliche Nachricht-
Von
ok let's see take those:
ftp://ftp.metalab.unc.edu/pub/Linux/ALPHA/freetds/freetds-0.51.tgz
and compile them...
in your configure script of php, you
enter --with-sybase-ct=/your/freetds/installpath
Greetings,
Stefan Siefert
-Ursprungliche Nachricht-
Von: Lester June Cabrera
). The support is very usefull!!
Greetings,
Stefan Siefert
-Ursprüngliche Nachricht-
Von: Nicolas Machado [mailto:[EMAIL PROTECTED]]
Gesendet: Montag, 7. Mai 2001 21:36
An: [EMAIL PROTECTED]
Betreff: [PHP-DB] Connection to AS/400.
OK, I have Linux, Apache and PHP, somebody knows
You need to uncomment the mssql.dll (or something called like this) in your
php.ini (In the section Windows DLL's).
Greetings,
Stefan
-Ursprüngliche Nachricht-
Von: lwneo [mailto:[EMAIL PROTECTED]]
Gesendet: Mittwoch, 20. Juni 2001 06:21
An: [EMAIL PROTECTED]
Betreff: [PHP-DB
Try it with mysql_select_db($database,$connect) instead of
msql_select_db($database,$connect) :-)
msql is a different Database System (in general, it is a lot older than
mysql I think)
Stefan
-Ursprüngliche Nachricht-
Von: Paul Lockyer [mailto:[EMAIL PROTECTED]]
Gesendet: Mittwoch, 20
Hm, since we are using PHP 4.0.6 we do get sometimes no
returnvalue...(function mysql_query) I think, this is always then, when we
are executing update oder delete syntax hm, does anyone know anything
about it?
Stefan Siefert
--
PHP Database Mailing List (http://www.php.net
from your php - scripts) (www.imagemagick.org). I think, I have seen several
Tutorials to do so (PHP/ImageMagick) but on the fly.. I don't find them in
my bookmarks now...
Hope this helps,
Stefan Siefert
-Ursprungliche Nachricht-
Von: Adv. Systems Design [mailto:[EMAIL PROTECTED]]
Gesendet
Hi,
I'm not sure about the probeme you have, but if the probleme is based on
ODBC, why do use ODBC? You could also use the Sybase-Ct libs.. should work
also with MSSQL...
Greetings,
Stefan
-Ursprüngliche Nachricht-
Von: Michael Yevdokimov [mailto:[EMAIL PROTECTED]]
Gesendet: Dienstag
.
The problem that I encounter is that I lose all the variables from the
search when I refresh the document. Is it possible to resend all variables
without inserting them in the A-tag ?
(like A href=find.php?var1=$var1..)
Hopefully someone has a smart solution.. =)
regards
- Stefan
) VALUES ('x', 'x', 'x', 'x', 'x', 'm', 'stefan', 'kisker',
'...', 'D', '1', 'stadt', 'n')
best regards,
stefan
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators
gt;
if ($type == Picture){
print IMG SRC=''\n;
} else {
print LI$data/LI\n;
}
}
print /UL/body/html\n;
ORA_CLOSE($csr);
ORA_LOGOFF($handle);
?
//Stefan
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
i use in the php skript is exactly
the same as the one i use for connecting from 'outside'.
another strange thing is that the php skript can connect to other mysql-dbs
on other servers...
is it a config-problem ? i've no idea anymore...
Stefan
--
PHP Database Mailing List (http://www.php.net
And how does it work?
--
Matt [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Nevermind everyone... I found out.
Thanks
Matt [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Does anyone know how to pass a variable to a
Hi!
I want to let the user to be able to open or save a textdocument with
text that I create on the fly with some select-statements.
You know when you click on a button or a link and you get a question
if you what to Open the file or or Save it.
In ASP I can use Response.BinaryWrite, how can I
Has anybody tried to read/write a Lotus Notes Database via ODBC
(NotesSQL)? I don't even get a valid connection with odbc_connect. With
other tools (QTODBC) NotesSQL/ODBC is no problem at all. Anything wrong
with the php ODBC driver in php 4.2.3 under Win2k? Are ther more
reliable ODBC
Stefan Haas [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Has anybody tried to read/write a Lotus Notes Database via ODBC
(NotesSQL)? I don't even get a valid connection with odbc_connect. With
other tools (QTODBC) NotesSQL/ODBC is no problem at all. Anythi
this it will not save any more items.
It seems to get full..?
NE1 had experience with this?
Or if you have a different and better way to store many
items on the server for a user they are most welcome!
Thanx!
//Stefan
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net
hello
i'm trying to make a pattern for an economic document using xml
ex
document id='unique' name='document_1'
fixpart
field id= 'id' visible='true' name='id' type='numeric' htmltype='textbox'
/field
filed id='name' visible='true' name='name' type='select' htmltype='select'
i have winnt 4.0 servicepack 6 + apache 2.0.47 + php 430 + informix clientfor nt
ilogin demo works fine
sql editor works fine
but when i try to connect to informix via php i'get an error like
Warning: ifx_connect(): E [SQLSTATE=S1 001 SQLCODE=-406]
i have informix server 2000 installed
hello,
did you load the mysql module in your php.ini configuration file?
i.e. is the following line there:
extension=mysql.so
regards
On Thu, 13 May 2004 11:47:41 -0400
Jianping Zhu [EMAIL PROTECTED] wrote:
have redhat 9.0 and Server version: Apache/2.0.40.
i have installed rpms
version.
If anyone has a clue, please contact me or just answer.
Thanks in advance
Stefan
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
statement in INSERTs, so
INSERT INTO table SET attr=val
would not work.
Thx
Stefan
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
of RDBMS (e.g. PostgreSQL and Oracle,
furthermore ODBC) and is very nice. I worked with it the last four
months to write a flexible information system.
Some comparisons can be found at:
http://php.weblogs.com/Compare_PEAR_DB_ADOdb
http://phplens.com/lens/adodb/
Stefan
M Saleh Eg wrote:
Anyone
is connecting to an OLEDB Provider for VFP:
http://fox.wikis.com/wc.dll?Wiki~VFP_OleDB_Provider
That should get you going.
Good luck,
Stefan Reimers
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
, I reported it to my successors on the
project.
Stefan Reimers
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
It appears as if the php_mysql.dll module has problems loading the
libmysql.dll file.
Setting the PHP dir to the system path var did NOT work for me.
However, these options did:
a) copy the bundled libmysql.dll to the windows system32 folder.
b) OR, copy the bundled libmysql.dll to apache's BIN
It appears as if the php_mysql.dll module has problems loading the
libmysql.dll file.
Setting the PHP dir to the system %path% var did NOT work for me.
However, these options did:
a) copy the bundled libmysql.dll to the windows system32 folder.
b) OR, copy the bundled libmysql.dll to apache's
To end up with this discussion:
It is a piece of truth that the whole world is curious on what will
happen during ( ;-) )and after the voting in the US but as the main part
of the world has no effect on the election by using php this posting was
obviously misplaced. Worst of all, this posting
=php_mysql and delete the ; in front of it, if present.
Stop and start webserver and try again.
Alternatively you should install XAMPP or similar which installs Apache,
PHP and MySQL at once. This makes life easier for beginners.
Stefan
Mike Rondeau wrote:
Hello,
I have just begun study
It would make things easier if you could determine the error, so try to
use mysql_error after all your mysql_queries, not just after the first one.
Stefan
[EMAIL PROTECTED] wrote:
I'm having trouble with having trouble with doing an update after doing an
insert on and a select on a table
Try FPDF on http://www.fpdf.org/
Stefan
Santoso Berkah wrote:
Dear Friends,
Is there anything non commercial pdf library (stable
release) to create PDF file from PHP except PHPlib.com
?
I've browsed this site and it costed Euro 450.
Can you help me please ?
Best regards,
[EMAIL PROTECTED
Hi list,
can anyone tell me, when PHP originally started the MySQL support? I
downloaded the php 3.0.17 version from php.net and it already supports
MySQL.
Thx in advance
Stefan
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
The changelog reaches back to the first beta of PHP4
Forest Liu wrote:
I think you can check the changelog on www.php.net
On Sat, 19 Mar 2005 14:13:44 +0100, Stefan Reimers
[EMAIL PROTECTED] wrote:
Hi list,
can anyone tell me, when PHP originally started the MySQL support? I
downloaded the php
Indeed, the book writing is no bad guess, but with slightly different
focus than PHP ancestry. But wondering how long mysql is supported is
more or less personal interest.
Thx to both of you for answering and greetings from Germany to China and
California, USA
Stefan Reimers
___
Forest Liu
) unless I wrap
the properties of these instances of stdClass to a custom class, right?
Is there any way to fetch MYSQL data to a suitable class other than
stdClass - suitable in the sense of: the custom class has all properties
which are fetched from db.
thx
Stefan
--
PHP Database Mailing List
Hi Jim
I've had some success with querying using pdo and prepared statements as
well. One thing that I'm curious about is
How does one handle the need to get the number of rows returned by a
Select? The documentation is very clear that PDO doesn't return that
value for a Select statement
43 matches
Mail list logo