[PHP-DB] RE: PHP help question

2008-02-13 Thread Matthias Willerich
the communication through? This is all fairly basic, but I hope it helps. Cheers, Matthias -- Matthias Willerich http://www.contentwithstyle.co.uk -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DB] RE: Turning result into array from columns

2006-09-23 Thread Matthias Willerich
Hello, $q = sprintf(SELECT id FROM content); This has nothing to do with your problem, but why don't you just do the following? $q = 'SELECT id FROM content'; But here's your problem. Change $realones = $row['id']; into $realones[] = $row['id']; And you get your desired result. Matthias --

[PHP-DB] RE: Ye old $_SESSION variables :)

2006-03-14 Thread Matthias Willerich
Try to make a small new script that only contains a form and a session. Then try a from with the same field names as the variable names. name='test' = $_SESSION['test']. When the session data is overwritten by the second try, registerglobals is switchd on. The thing you can do then is to

RE: [PHP-DB] MySQL Connect using Dreamweaver

2005-10-13 Thread Matthias Willerich
That's a very common one. You're on windows, right? Try putting in consider upgrading MySQL client into google. The first one I found was this one: http://www.experts-exchange.com/Web/Web_Languages/PHP/PHP_Windows/Q_21252231 .html Although the guy first claims it's not the OLD_PASSWORD problem,

RE: [PHP-DB] Defined Constants

2005-10-13 Thread Matthias Willerich
2 possibilities: either you put the defined value instead of the definition down in the option value (but i'm sure you thought of this one) or you use echo constant($_POST['myType']);. Or GET, depending on how you send your form. Hey, this time I learned something, too! I found it in the php

RE: [PHP-DB] ODBC Problem

2005-10-11 Thread Matthias Willerich
this sounds a little bit like a wrong charset. I don't know which one your database or your php is running on, but, for a start, play with this: - charset of the file: If you open your file in an editor that allows storing it as different kinds of charsets, try saving it as something else. It's

[PHP-DB] RE: domxml_open_mem and cdata

2005-10-07 Thread Matthias Willerich
so far no reply, but a little update: I uploaded it to a linux server, similar setup(PHP4, apache1.3.something), same problem. Any ideas for a work-around? What do you use to edit XML on the (php-)server? I don't have enough time to redo it for MSXML Cheers, Matthias -- PHP Database Mailing

[PHP-DB] domxml_open_mem and cdata

2005-10-06 Thread Matthias Willerich
hello, I hope this isn't too off-topic for the list, if it is, please point me to a better one: I have to edit an xml file, and I was going to do that via DOMXML. The editing process itself is fine, but I now realised that all content that was in cdata brackets gets stored back without them.

[PHP-DB] RE: Upload images with minimun effort from final user

2005-09-28 Thread Matthias Willerich
A.J. Brown: snip A better solution is to rename the image to the unique ID of the news article it's associated with (assuming there is only one image allowed per article). This helps eliminate the chances of overwriting an existing image without bothering the user with error messages. When I do

[PHP-DB] RE: DATE(r)

2005-09-09 Thread Matthias Willerich
you gave yourself half of the answer: date('Y-m-d H:i:s'); http://uk.php.net/manual/en/function.date.php do you work on a pc? there's also a *.chm to download, which I find very convenient: http://uk.php.net/download-docs.php or, a firefox search extension, somewhere, to add to that top right

RE: [PHP-DB] retrieve text from pdf

2005-09-08 Thread Matthias Willerich
I can second that. I've worked with it under linux before (over a year ago, though), using pdftotext with exec() or system(), and it worked very well in the tests. I used it to index pdfs that other people were uploading and offer a little teaser on the site. Sadly it never went live, and I