php-groups.com | Post Question | Search | About | Groups | Contact | Register | Login



php notes (593)

php bugs (293)

php cvs (289)

php doc cvs (213)

php qa reports (199)

php doc fr (184)

php doc de (159)

php doc bg (157)

php webmaster (152)

php general (150)


php.db Post New
Items(57)
Subject Posted Replies From
FW: Help keep the Internet free -- MySQL petition to EU

-----Original Message----- From: Michael Widenius [mailto:monty@askmonty.org] Sent: Tuesday, December 29, 2009 5:00 AM To: mysql@lists.mysql.com Subject: Help keep the Internet free Hi! We have just launched a worldwide, multilingual petition at http://helpmysql.org to get signatures to show the regulators in the EU and other places that it's important that MySQL continues to be available and developed as a strong Open Source product for all database needs. If you care about the future of MySQL as an Open Source product, please go and sign the petition and tell others abou

12/29/2009 10:11:10 PM 0 dae...@daevid.com ("Daevid Vincent")
Machine learning

--00163646b9cecb717d047b63a6f6 Content-Type: text/plain; charset=ISO-8859-1 Hello, Does someone here knows how to apply machine learning in php. I want my script to automaticaly make decisions based on a dataset given by mysql. I tried to google for an algoritm, but i don't understand it very well. Could someone please help me find a solutions to maken decision trees in php. --00163646b9cecb717d047b63a6f6--

12/23/2009 11:30:37 AM 0 omarzor...@gmail.com (omar zorgui)
Displaying Password

--Apple-Mail-2--316273016 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=WINDOWS-1252; delsp=yes; format=flowed Never mind. Got it. $replaceArray =3D array('a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', =20 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', =20= 'x', 'y', 'z', '1', '2', '3', '4', '5', '6', '7', '8', '9', '0'); $replaceWith =3D array=20 ('=95','=95','=95','=95','=95','=95','=95','=95','=95','=95','=95','=95','= =95','=95','=95','=95','=95','=95'=20 ,'=95','=95','=95','=95','=95','=95','=95','=95','=95','=95'

12/22/2009 5:12:48 AM 16 k...@designdrumm.com (Karl DeSaulniers)
Displaying Password

--Apple-Mail-1--319530840 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Hello List, Hope your all ready for the Holidays, I know I am. :) I have a situation where I want to display a users password as bullets instead of the actual password characters once read from the database. I feel there is a better way than what I am doing. I am trying str_replace() with a for loop to loop throuth how many characters and replace each with a bullet when displaying. Like this: $replace_count = strlen($UserPassword); for

12/22/2009 4:18:30 AM 0 k...@designdrumm.com (Karl DeSaulniers)
Trying to make site map

I am trying to create a ui for a page management script. During this step the user chooses which existing page the new page will link under. Each record has a field called Page_Above, which references the primary key number (id) of the page above it. Currently I have 4 records in the database: (id, name, Page_Above) 1, Page1, 0 2, Page2, 1 3, Page3, 2 4, Page4, 1 Here is the pertinent snippet: include "config.php"; $conn = mysql_connect($server, $DBusername, $DBpassword); mysql_select_db($database,$conn); $sql = "SELECT * FROM $Gen WHERE Category =

12/21/2009 9:53:58 PM 2 z...@zhdesigns.com (Zach Hicken)
ANN: PHP Generators 9.12 released

Hi! SQL Maestro Group announces the release of PHP Generator 9.12, a GUI frontend that allows you to generate high-quality PHP scripts for the selected tables, views and queries for the further working with these objects through the web. There are versions for MySQL, MS SQL Server, PostgreSQL, Oracle, SQLite, Firebird, DB2, SQL Anywhere and MaxDB. http://www.sqlmaestro.com/news/company/php_generator_family_updated_to_version_9_12/ Online demo: http://demo.sqlmaestro.com/ Starting with this version PHP Generator comes in both Freeware and Professional editions. The featur

12/21/2009 11:26:56 AM 0 li...@sqlmaestro.com ("SQL Maestro Group")
object return [object XMLDocument] instead of xml data

--0016e6d58f7ff08801047b389aa0 Content-Type: text/plain; charset=ISO-8859-1 Hi All I am working on a application in which i need to pass data in API and api return me xml data when i am passing data the out put is coming *[object XMLDocument]* if i am calling it at browser its showing correct xml. Can any one please tell me what may be problem. -- Regards Yogendra Kaushik --0016e6d58f7ff08801047b389aa0--

12/21/2009 8:09:14 AM 0 yogendra.kaus...@gmail.com (Yogendra Kaushik)
auto creation of email IDs

--0016e64aedc8b852cb047ad797f4 Content-Type: text/plain; charset=ISO-8859-1 Hey Guys, I've been at this for couple of days now, and have no clue where to start, and was almost thinking about scrapping the project, It would be great help if anyone can give me some advice, or guide me in the right direction. I have a portal, where users would come in and register and create an account, as soon as an account is created, I want to be able to auto create an email ID for them, the server would be Linux, any ideas on how this can be done. And also an option of creating a temporary e

12/16/2009 12:24:48 PM 7 viny...@gmail.com (Vinay Kannan)
Redirect upon successful form submission

--0016e64ee34c39a97a047ac7fef5 Content-Type: text/plain; charset=ISO-8859-1 Hi, I have 2 pages on php, the first page has a small form to accept a membership number from the user, which checks for membership number in the DB, if the membership no does not exist, gives an error saying 'you are not a member click here to become a member now', this bit works fine. The problem is the following bit 'if the user is a member, i want the user to be directed to another page. this is what i did to get the result since header("Location:....") wont work, as already the form has been prin

12/15/2009 5:48:09 PM 5 viny...@gmail.com (Vinay Kannan)
Random pick

Hi everyone, I've been lurking in the shadows on the list for quite some time and now I'm in need of a little info or advise. I'm looking for a way to grab a record out of a database on a certain day each month and I'm wondering if this can be accomplished with just a mysql query or would I need to use PHP also? My hunch is mixing the two, but I'm not very prolific with mysql at this point so I thought It would be better to ask before I go and get myself all mixed up. Any suggestions? -- Blessings David M. I have been driven to my knees many times by the overwhelmi

12/15/2009 1:39:14 AM 8 da...@dmcentral.net (David McGlone)
EZPDO Replacement

One of our programmers had done a fair amount of coding using the EZPDO ORM library and it is no longer supported, Does anyone have any experience migrating from EZPDO to another ORM library. Any recommendations?, Thanks in advance for your help.

12/14/2009 7:14:40 PM 0 zacw...@mac.com (Steve Weintraut)
Hello

Hi I am new to this list. I am in need of some help or direction. I am new to php and databases, so forgive me if my request seems too simple. I am making a database if users and have had much success in getting it to work however, not all my data is getting shown once I try to display results. I am running an INSERT query that inputs data into the database from a form. But here is the hiccup. I am asigning the form data to a $variable. Eg: $Username = $_POST['Username']; I then run $Username through some checks to make sure it's not an injection. After all that I

12/14/2009 3:04:19 AM 9 k...@designdrumm.com (Karl DeSaulniers)
Mysql query

The query from my previous post was only part of a larger query. This is the entire query: SELECT GREATEST( IF( CURDATE( ) >= DATE_SUB( DATE( FROM_UNIXTIME( 1239508800 ) ) , INTERVAL LEAST( 14, ( SELECT COUNT( * ) FROM `verse_of_the_day_Bible_verses` WHERE seasonal_use =1 ) ) DAY ) AND CURDATE( ) <= DATE( FROM_UNIXTIME( 1239508800 ) ) , 1, 0 ) , IF( CURDATE( ) >= DATE_SUB( DATE( 2009 -12 -25 ) , INTERVAL LEAST( 14, ( SELECT COUNT( * ) FROM `verse_of_the_day_Bible_verses` WHERE seasonal_use =2 ) ) DAY ) AND CURDATE( ) <= DATE( 2009 -12 -25 ) , 2, 0 ) ) AS verse_applicatio

12/14/2009 12:06:19 AM 2 ron.pigg...@actsministries.org
Mysql query

Does anyone see anything wrong with this query? Do I have one of the >, = or < mixed up? The purpose is to figure out if it is within 14 days of Christmas AND if there is content for Christmas available. 2 is symbolic in the database being Christmas. Ron IF( CURDATE( ) >= DATE_SUB( DATE(2009-12-25) , INTERVAL LEAST( 14, ( SELECT COUNT( * ) FROM `verse_of_the_day_Bible_verses` WHERE seasonal_use =2 ) ) DAY ) AND CURDATE( ) <= DATE(2009-12-25) , 2, 0 )

12/13/2009 11:00:53 PM 0 ron.pigg...@actsministries.org
Multiple MySQL schemas

Hi all. We are wanting to create an app that contains multiple clients. Each = clients has anywhere from 1 user to more than a hundred. We had the idea = of separating each client into its own database schema. This reduces the = single point of failure - if 1 client db dies, it doesn't kill the = others. This keeps the individual schemas smaller, which will allow us = to asynchronously (for lack of a better word) transfer our backups to = our network w/o causing bottlenecks. It also guarantees the separation = of data (even though the application takes care of this, it's *that = ext

12/8/2009 5:54:25 PM 1 philthath...@gmail.com (Philip Thompson)
unlink problems

--------------020209080402010305090305 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, I use the following to delete a file on a webserver if( unlink( "./$filename" ) ) { echo $filename." deleted "; $action=''; echo "&lt;script >document.location.href='$PHP_SELF?action=$action&code=$code'&lt;/script>"; } But I get the following error Warning: unlink(./6 November 2009.pdf): No such file or directory in /srv/www/htdocs/bee_partners/admin/tenders.php on line 82 6 November 2009.pdf not deleted

11/25/2009 10:22:22 AM 4 n...@webcoza.co.za (Neil Jackson)
mySQL query syntax error

I am getting the following error message: #1054 - Unknown column 'customers.email' in 'order clause' from the query below --- I don't understand why. Would someone help me please? Ron SELECT 'first_name', 'last_name', 'email' FROM ( ( SELECT `firstname` , `lastname` , `buyer_email` FROM `paypal_payment_info` WHERE `datecreation` = '$two_weeks_ago' GROUP BY `buyer_email` ) UNION ALL ( SELECT `mail_order_address`.`first_name` , `mail_order_address`.`last_name` , `mail_order_address`.`email` FROM `mail_order_address` INNER JOIN `mail_order_payment` ON `mail_

11/14/2009 8:23:47 AM 0 ron.pigg...@actsministries.org (Ron Piggott)
Join Multiply

Check out my Multiply site I set up a Multiply site with my pictures, videos and blog and I want to add you as my friend so you can see it. First, you need to join Multiply! Once you join, you can also create your own site and share anything you want, with anyone you want. Here's the link: http://multiply.com/si/Q+8gUs9BkFj71dvZx2+5vA Gampang Kerja Cepat Dapet Duit, Flexter Bisnis Online Dahsyat!!!Cepat Dapat Jutaan Pengen cepet dapet duit?? ayo gabung FLEXTER! Dapet PULSA MURAH, Dapet DUIT CEPET! Setiap member FLEXTER akan mendapat pulsa harga murah, bisa isi ulang ke

11/13/2009 11:34:06 AM 0 multi...@multiply.com (" iwan sutadi (via Multiply) ")
Multiple instances of mysql_connect() in single PHP document.

Hello, Is it wrong to have mysql_connect() called twice within a single PHP document, such as this? I have been running into some fairly annoying query failures that commute when I change the order of these two blocks of code. I am currently working around this by repeatedly using mysql_select_db() to change the databases as I am needing to change to a different database. To be more specific, I can use the $db_material handle in doing a query, but it will always try to search in the Labor_Log table and thus fail because the tables have different and names. Swapping these bloc

11/10/2009 9:14:57 PM 0 php_l...@timothylegg.com ("Timothy Legg")
Doc to PDF with mssql

--00c09f95562a6cd76204777649a0 Content-Type: text/plain; charset=ISO-8859-1 Hi someone knows how to convert a word .doc to a PDF using PHP? and how to store and retrieve a .doc file in a mssql database? --00c09f95562a6cd76204777649a0--

11/3/2009 12:03:48 PM 0 rcph...@gmail.com (Rafael Costa Pimenta)
PHP Update query

--=-nC6baOS/wqkoA6Q4gGZA Content-Type: text/plain Content-Transfer-Encoding: 7bit How do I test if an UPDATE query worked $query = "UPDATE `clients` SET `company` = '$company', `contact` = '$contact', `phone` = '$phone', `city` = '$city' WHERE `clients`.`reference` =$client LIMIT 1"; $client_result=mysql_query($query); ??? Ron --=-nC6baOS/wqkoA6Q4gGZA--

11/3/2009 5:59:34 AM 0 ron....@actsministries.org (Ron Piggott)
Does PHP5 support querying an MS Access MDE file?

Hello, I have PHP Version 5.2.6-1+lenny3 I have been having difficulty using odbc_connect with an MS Access MDE database. I do have php5-mysql and php5-odbc installed on this server. Due to the rather poor search results regarding the topic of querying MDE files with PHP, I am becoming increasingly concerned that this file type is not supported. Is it possible to query an MDE file via PHP5 or should I try different approach to querying the database from our linux server? I am interested in your thoughts. Thanks for your help. Tim Legg

11/2/2009 10:54:17 PM 0 php_l...@timothylegg.com ("Timothy Legg")
Re: [PHP-DB] How to: Include identifier with a query

I looked into this years ago for something I was doing, but don't remember looking for a solution in MySQL. Just wanted to share that.. um.. I think it was with MS SQL Server.. there was a way to put a tag in your DSN connection string that would show up on the process list. I don't know if that helps, but just to add to the list of "how *some* people do it". Good luck! -TG ----- Original Message ----- From: listread <listread@cze.com> To: php-db@lists.php.net Date: Mon, 02 Nov 2009 07:16:23 -0600 Subject: [PHP-DB] How to: Include identifier with a query > Greetings

11/2/2009 1:22:44 PM 0 tg-...@gryffyndevelopment.com ("TG")
How to: Include identifier with a query

--------------070500050800080305040904 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Greetings! We are searching for names that might or might not exist in a 4 million row db and have to do a lot of fuzzy searches that often don't return results. I would like the use to have the option of killing a query process. Since we are apt to have several queries running KILL QUERY doesn't seem to work. I would like to use KILL (process id) instead. We can use SHOW FULL PROCESSLIST to get a complete list of the processes, but we nee

11/2/2009 1:16:23 PM 0 listr...@cze.com (listread)
Search function query

--=-QBTrAoXxEgBscmmv8ocu Content-Type: text/plain Content-Transfer-Encoding: 7bit I am writing a search function. Is there a way to enhance this query so it will display the best matches first down to the least matches? As well I don't know how to handle if the user types in more than 1 word to search. SELECT * FROM `store_product_profile` WHERE `product_name` LIKE '% $search_string%' AND `product_description` LIKE '%$search_string%' AND `keywords` LIKE '%$search_string%' Ron --=-QBTrAoXxEgBscmmv8ocu--

11/1/2009 1:38:05 PM 0 ron....@actsministries.org (Ron Piggott)
Rv: Showing search results with links ... sorry forgot to post php code

--0-571200420-1256855540=:96583 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi there i`got this php script that shows results when the user type letter= s in a searchbox, stretching the results every time the user enters a new l= etter. But i would like every result shown, to have a link to a specific ht= ml page, how can i do that. I mean i am using a small guestbook example tha= t i found there, that uses mysql php ajax to do the job of polling the resu= lts out of the mysql database, but i have to implement this with a very lar= ge database

10/29/2009 10:32:20 PM 0 juanstil...@yahoo.com.ar (Juan Stiller)
Showing search results with links

--0-1338178994-1256855364=:52036 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi there i`got this php script that shows results when the user type letter= s in a searchbox, stretching the results every time the user enters a new l= etter. But i would like every result shown, to have a link to a specific ht= ml page, how can i do that. I mean i am using a small guestbook example tha= t i found there, that uses mysql php ajax to do the job of polling the resu= lts out of the mysql database, but i have to implement this with a very lar= ge databas

10/29/2009 10:29:24 PM 0 juanstil...@yahoo.com.ar (Juan Stiller)
Very old question: Mysql and old authentication

------=_NextPart_000_00B3_01CA5898.6F0C49B0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Recently we update our Local Server to this: Apache Version : 2.2.11 =20 PHP Version : 5.3.0 =20 MySQL Version : 5.1.36 =20 All works fine locally, but when we want to connect to a Remote Mysql = Server 5.0.45 just can't, we got the "mysqlnd cannot connect to MySQL = 4.1+ using old authentication" msg The solution as i see is to use the OLD_PASSWORD trick, but in this case = we can't do that because the Server is a Shared server and yada

10/29/2009 8:05:05 PM 0 sunco...@hotmail.com ("SuNcO")
DB interface problem

I started having trouble with a DBI interface to my PostgreSQL database after I built a new Ubuntu machine. The Postgres version is 8.3 and the DBI was written several years ago (by someone else). I'm using PHP version 5.2.6-3ubuntu4.2 with apache2. The problem is that I get the error: Warning: pg_num_rows(): supplied argument is not a valid PostgreSQL result resource in /var/www/lib/dbi_pgsql.php on line 202 I don't know what to check next to figure out why this is happening. Here is what I have done so far: - Updated the old PHP commands in the dbi file to reflect new ones

10/27/2009 12:48:53 PM 0 gham...@sv-phoenix.com (Giff Hammar)
PHP stored within mySQL table

--=-vKT9x5avTHlC6r+LtbJb Content-Type: text/plain Content-Transfer-Encoding: 7bit I am working on a shopping cart ... specifically writing about the delivery time lines. I thought I would include the information pages (like store policies, contact us, about us) for my shopping cart within a mysql table. But I ran into a challenge when I got to the "Delivery time line details". I would like to use PHP to calculate when the expected arrival date will be. This means storing the information pages in PHP code and using the "eval" command. $one_week = strtotime("+7 days");

10/23/2009 11:56:19 AM 0 ron.pigg...@actsministries.org (Ron Piggott)
UPDATE lot of registers

------=_NextPart_000_001A_01CA50B5.E07A6220 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hello everyone=85 =20 I dont know how to update a lot of registers on one table. =20 I have two tables: Students and Signatures =20 STUDENTS has got: id / name / signature SIGNATURES has got: id / name / classroom =20 I want to use words and not numbers to write the signature on the = STUDENTS table. I=92ve got a long list with signatures, and I must to change one = signature... How do I do update SIGNATURE AND STUDENTS

10/19/2009 3:15:39 PM 0 emiliano.borag...@gmail.com ("Emiliano Boragina")
to Vinay Kannan

--0015176f1cf80f0dc70476039bef Content-Type: text/plain; charset=ISO-8859-1 pear supports lots of strong classes for you . for example , pear mdb2 class can connect to and work with several different types of databases easily, as same as pecl pdo extension. but i prefer writing class myself (some simple classes), it is very interesting ! BitPart > > > > I've been programming on PHP for almost a year now, many examples that I've > gone through or some of the reference books that I've read and many > websites > which show examples of PHP pgramming seem to be using PEA

10/16/2009 1:49:25 AM 0 ad...@ebenwanli.com (=?GB2312?B?RbG+zfLA+w==?=)
Search

Hello I=92m using this code to a search: $sql =3D "SELECT empresas.id, empresas.nombre, rubros.id, rubros.nombre, cupones.empresa, cupones.rubro, cupones.titulo, cupones.descripcion FROM cupones INNER JOIN empresas INNER JOIN rubros ON (empresas.id =3D cupones.empresa OR rubros.id =3D cupones.rubro) WHERE (empresas.nombre = LIKE '%$_GET[busqueda]%' OR rubros.nombre LIKE '%$_GET[busqueda]%' OR cupones.titulo LIKE '%$_GET[busqueda]%' OR cupones.descripcion LIKE '%$_GET[busqueda]%')"; I have a input text with name =93clave=94. I have three tables: empresas, rubros anda cupones. Th

10/16/2009 12:58:15 AM 0 emiliano.borag...@gmail.com ("Emiliano Boragina")
PHP on Pear

--0016367b6b3659cd9f0475fce532 Content-Type: text/plain; charset=ISO-8859-1 Hello, I've been programming on PHP for almost a year now, many examples that I've gone through or some of the reference books that I've read and many websites which show examples of PHP pgramming seem to be using PEAR package, and I've never used PEAR or any other Package, I was wondering whats the advantage of using PEAR instead of the using PHP directly in the code or maybe even creating our own functions in PHP. I am really confused about this now, earlier I used to neglect these things, but now I c

10/15/2009 5:49:06 PM 0 viny...@gmail.com (Vinay Kannan)
DATETIME

------_=_NextPart_1150_00027350.00012052 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi All, I have a DB that is storing the date/time an event happens in DATETIME form= at, i.e. 1254252889, which translates to Tue, 29 Sep 2009 19:34:49 UTC I am trying to write a query in PHP that will look for any row that falls w= ithin a range of dates, i.e. between Sep 1 and Oct 1, but there doesn't see= m to be a way to search, since you would never be able to specify a match b= etween what date range you put in, and the time stamps??

10/8/2009 3:51:16 PM 0 eb...@healthydirections.com ("Edward Brookhouse")
mysqli mysqli_stmt::bind_param using bigint

Hi all, we used the bind_param function to insert a lot of integers into our database. As I just found out now quite a few of them were bigints, and did not end up correctly in the database, because the integer parameter supports only integers up to 2^32. Now my question: Anybody know how I can calculate the ID that I have in my database out of the original ID that was supposed to go there? Two examples: original ID: 100000358490906 result in DB: 634938138 original ID: 100000005353484 result in DB: 281800716 I suppose I cannot get the original ID from what i have in t

10/8/2009 3:09:23 PM 0 philipp.moe...@wooga.net (Philipp Moeser)
How exactly do I get UTF-8 data into SQL Server on Windows via ODBC SQL Native Client 10.0?

Hi. I'm trying to get data into an MS SQL Server 2005 database. The data is coming to me as UTF-8 encoded data. The data is primarily European languages (so I've got a few accented characters), but I know I've got Korean, Vietnamese and some Japanese coming later. I'm using PHP 5.3.2-dev. The SQL Server is 2005 and the ODBC driver I'm using is SQL Native Client 10.0 I've cut'n'pasted my table and SP below... I'm calling the SP (all the phone numbers have been edited) ... EXEC PhoneBilling.dbo.usp_HandleDirectory @s_PhoneNumber =3D 'nnnnnnnnn', @s_Recipient =3D N'Ve

10/7/2009 8:36:46 AM 0 rquadl...@googlemail.com (Richard Quadling)
PDO PgSQL: _pdo_pgsql_notice

Hi ! I'm reading the source of PDO PostgreSQL driver and i see that there's an empty function, _pdo_pgsql_notice, which is very interesting ! I think that it is used when PostgreSQL throw Notices. But, nothing is done... I want to know if somebody know why the content of the function is commented: static void _pdo_pgsql_notice(pdo_dbh_t *dbh, const char *message) /* {{{ */ { /* pdo_pgsql_db_handle *H = (pdo_pgsql_db_handle *)dbh->driver_data; */ } (line 98 of /etc/pdo_pgsql/pgsql_driver.c - PHP 5.2 - r272374) How can I store the content of "message" into a field of the

10/5/2009 6:58:05 PM 0 samuel.r...@aliceadsl.fr (Samuel ROZE)
Sorting MYSQL results Paging and column heads

Hi All, I am working on a PHP page to display results from a MySQL db and I am havi= ng a problem getting my results to page properly. When the page loads, it looks fine, but hitting next/previous does not chan= ge the data? Any thoughts appreciated - Edward Ebrooathealthydirectionsdotcom <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.= w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns=3D"http://www.w3.org/1999/xhtml"> <head> <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Du= tf-8" /> <titl

10/5/2009 6:57:42 PM 0 eb...@healthydirections.com ("Edward Brookhouse")
Need help in triggers

--0016364ed73af84c6804752c6ef3 Content-Type: text/plain; charset=ISO-8859-1 Hi all's i am working on an application in which we are using PostgreSql as an database, i need to write trigger for my application. Can any one help me how can i write it. i have try to write it, but did not get success. -- Regard's Yogendra kaushik --0016364ed73af84c6804752c6ef3--

10/5/2009 9:06:47 AM 0 yogendra.kaus...@gmail.com (Yogendra Kaushik)
PDO and PostgreSQL - RAISE NOTICE

Hi ! I'm new on this mailling list, so i don't realy know if you know the response and if it is realy here that I have to ask my question :-) I'm working with PostgreSQL (8.3 form sources) and PDO (PHP 5.2.10 from sources). In a Postgres function, I have a "RAISE NOTICE" command. My function works like that in console: => SELECT * FROM public.test_info(); NOTICE: An information... test_info ------------ ok (1 line) There's a NOTICE, like I want ! :-) But, when i'm using PDO, I don't know how I can get this NOTICE, which will provide me some informations about the usag

10/4/2009 3:06:40 PM 0 samuel.r...@aliceadsl.fr (Samuel ROZE)
Need help with the code

--001517447dc605e4cb0474f7a1db Content-Type: text/plain; charset=ISO-8859-1 Hi All, I need some help with the below code. I have this login code with me and its working fine with my *localhost 'WAMP' *server. But when I tried to run the same script on my web host server its not working. Every time its giving me the same message "*please enter a username and a password*" which is a condition within the script. <?php session_start(); $username = $_POST['username']; $password = $_POST['password']; if ($username&&$password) { $connect = mysql_connect("localhost", "tut

10/2/2009 6:06:33 PM 0 nagendra802...@gmail.com (nagendra prasad)
Potential changes for the OCI8 extension for Oracle 11.2

Now that Oracle Database 11.2 has been released (http://blogs.oracle.com/opal/2009/09/oracle_database_11gr2_enhancem.html), we'd like to make some enhancements to PHP OCI8 for PHP 5.3.2 & PHP 6: 1. Allow the oci_set_prefetch() count to be 0, i.e. just fetch/buffer one row at a time and don't prefetch any extra rows. Passing REF CURSORS back and forth between PL/SQL and PHP is one case where you might not want any extra rows prefetched. 2. Add a few oci_set_* functions to set database "attributes" including the new EDITION (useful for application upgrading, h

9/30/2009 10:36:49 PM 0 christopher.jo...@oracle.com (Christopher Jones)
one input, much mails, insert each mail in one register

------=_NextPart_000_0056_01CA3D7D.260C5830 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi=85 Thanks to Vinay for your help=85 works very good... But I can=92t validate if one or more of the emails insert in the = textarea exist in the table of the DB to not insert it, but yes insert the others mails that not exist in the db. This the cod: =20 <html> <head> <title>Explode trial</title></head> <body> <?php if($_GET['emailreader']) { $username=3D"root"; $password=3D"root";

9/25/2009 4:11:39 AM 0 emiliano.borag...@gmail.com ("Emiliano Boragina")
Parse error

The following code gives me this error message: Parse error: syntax error, unexpected ':' in /home/thev4173/public_html/test.php on line 8 It is referencing the : that follows EasterDate (and will eventually get mad at ChristmasDate) mysql_connect('localhost',$username,$password); @mysql_select_db($database) or die( "Unable to select database"); IF(CURDATE() >= DATE_SUB(CONCAT(@EasterDate := DATE(FROM_UNIXTIME(easter_date(date('Y'))), INTERVAL LEAST(14, (SELECT COUNT(*) FROM `verse_of_the_day_Bible_verses` WHERE seasonal_use = 1)) DAYS) AND CURDATE() <= @EasterDate, 1, 0)

9/24/2009 2:58:09 AM 0 ron.pigg...@actsministries.org (Ron Piggott)
one input, much mails, insert in db

------=_NextPart_000_000A_01CA3CA5.467E4070 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hello again=85 I could explode and/or replace the =93, =94 for =93=94. But how do I get each mail if the client type on the textarea a lot of mails, and insert in the data base? I dont understand how use for or for each to do this... Thanks a lot + = _ // Emiliano Boragina _ // Dise=F1o & Comunicaci=F3n ////////////////// +

9/24/2009 2:26:25 AM 0 emiliano.borag...@gmail.com ("Emiliano Boragina")
more than one mail separate with comma or space insert one register for each mail

------=_NextPart_000_0031_01CA3C4C.8A63D560 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hello=85 =20 I must do a form with only one input text. In this the client want to write more than one mail, separte with comma = or white space. But each mail must be a register in the table in the data base. How do I do this? =20 + = _ // Emiliano Boragina _ // Dise=F1o & Comunicaci=F3n ////////////////// +

9/23/2009 3:51:13 PM 0 emiliano.borag...@gmail.com ("Emiliano Boragina")
scheduler

--0016e649c24ed8d7b604743c6d76 Content-Type: text/plain; charset=ISO-8859-1 Hi, I am developing a web application in PHP, the db is mysql. I want to develop something like a batch file, which would run everyday, query mysql and throw the output to another table which would then perform some additional functions. Is something like this possible?? i am working on windows thats why said a batch,but not rigid about the batch, it cud even be Java. Thanks, Vinay --0016e649c24ed8d7b604743c6d76--

9/23/2009 10:46:36 AM 0 viny...@gmail.com (Vinay Kannan)
Local version of php/mysql site

--000e0cd25d2292250604741da42c Content-Type: text/plain; charset=ISO-8859-1 Hi all, I've developed a web site where users complete a web form which pushes their data into a MySQL database. At the back end they can run reports of their input from this database. At the high end, users enter input into the form a few hundred times a day. Our site has about 99% uptime, but users have been asking for the development of a local version for them to use during the 1% downtime. Basically, I need to recreate the form so that upon submission is writes the data to a file on the users machine,

9/21/2009 10:02:50 PM 0 zliet...@gmail.com (Zeth Lietzau)
losing MySQL resource

I'm maintaining a session. I successfully connect to a database ($DBConnect = mysql_connect()). I save the connection resource in a session variable ($_SESSION['connection'] = $DBConnect) ... to use in subsequent queries. It remains valid while the user is on the current page. print_r($_SESSION['connection']) yields 'Resource id #3', for instance. User browses to a new page ... in the same session. $_SESSION['$DBConnect'] no longer references a valid mysql resource. print_r($_SESSION['connection']) yields '0'. Other "ordinary" values saved in $_SESSION variables remain valid.

9/19/2009 10:11:06 AM 1 stanleytbe...@gmail.com ("Stan")
for laptop

--0-1601832619-1253347138=:83041 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Hi/AOA i hope all of you are fine. i have lost my laptop and now i want to buy laptop new or second hand. i li= ve in belgium. anyone can suggest me good but cheapest laptop either buy vi= a internet or in belgium via shop waiting for swift response Asim Jamil =A0 =A0 PRAY FOR WHOLE MUSLIM UMMAH AND ASK HELP FROM ALLAH A= ND HAZRAT MUHAMMAD (SAW) =A0 ALLAH HAFIZ=0A=0A=0A --0-1601832619-1253347138=:83041--

9/19/2009 7:58:58 AM 0 j.a...@yahoo.com (Sheikh Asim)
Need help in PHP file Management System

--0015174413385038460473c906b8 Content-Type: text/plain; charset=ISO-8859-1 Hi All, I need help in PHP file management system. So, I am working on my project in which user will upload a file on the server. I know how to upload a file on server using PHP. But the problem is how to differentiate the different uploaded files with different users. Please help me with this. Best, -- Guru Prasad Ubuntu Voice GTK+ Forum --0015174413385038460473c906b8--

9/17/2009 5:05:18 PM 0 nagendra802...@gmail.com (nagendra prasad)
Need PHP developers in Hyderabad

--000e0ce0ee1c6424d10473a1c57e Content-Type: text/plain; charset=ISO-8859-1 Hi All, I need some PHP-mysql developer who lives or can work in Hyderabad. Please contact me ASAP. You can mail me back or you can call me on my cell:9949817253. Best, -- Guru Prasad Ubuntu Voice GTK+ Forum --000e0ce0ee1c6424d10473a1c57e--

9/15/2009 6:15:25 PM 0 nagendra802...@gmail.com (nagendra prasad)
Re: [PHP-DB] recover values independently of GET or POST used

Some weird stuff happens when you try to chain ternary operations. Not awake enough to explain it better right now. What it sounds lik eyou're looking for is $_REQUEST. This will give you the correpsonding GET or POST value (as well as cookie, environment, etc.. google it). It's probably good to try to structure things so you have a predictable and controllable way so you know whether you're going to be getting GET or POST data. Some cases required 'either' but in general, one or the other should be good enough if your code is structured properly. -TG ----- Original

9/15/2009 3:01:01 AM 0 tg-...@gryffyndevelopment.com ("TG")
recover values independently of GET or POST used

I am using some expressions to load the value of a parameter when called, independently if used GET or POST method, using something like: <?php $mydata = (isset($_GET["mydata"])) ? $_GET["mydata"] : (isset($_POST["mydata"])) ? $_POST["mydata"] : 0; echo $mydata; ?> The problem occurs with above code if I call it like: thispage.php?mydata=something , the answer is null (not even '0'). But If I change it to: $mydata = (isset($_POST["mydata"])) ? $_POST["mydata"] : (isset($_GET["mydata"])) ? $_GET["mydata"] : 0; It works, but only with GET method, not post.

9/15/2009 2:41:24 AM 0 bu...@alejandro.ceballos.info
mysql_query returning empty result after DELETE

I did a "DELETE FROM picture" where "picture" is a table in my database. Afterward, this piece of code does not generate an error ---------------------------------------------- try { $query = "SELECT * FROM picture p " . "WHERE p.pictureFile='" . $pictureFile . "'"; $thisRow = mysql_query($query, $pictures_connection); } catch(Exception $e) { echo 'caught exception: ', $e->getMessage()."\n"; $result = False; } ----------------------------------------------

9/13/2009 9:30:58 PM 0 stanleytbe...@gmail.com ("Stan")
PgSql PDO

I am not able to get this working... 1. pdo_pgsql.so exists in the extensions directory and is referenced in the ini file. 2. phpinfo() shows that support for both pgsql and pdo_pgsql is enabled. 3. PDO::getAvailableDrivers() lists pgsql as avilable driver. 4. I am able to connect via pgsql_connect() pdo_pgsql::_construct() is throwing an PDO_Exception "could not find driver" am I missing something here ? pls help

9/12/2009 4:11:11 AM 0 kranthi...@gmail.com (kranthi)

Pages:









Newest Articles

#50656 [NEW]: Assign constant to var causes syntax error
1/4/2010 3:07:07 PM

#50655 [NEW]: fgets(): French translation error
1/4/2010 2:40:48 PM

note 95459 added to domnode.haschildnodes
1/4/2010 1:53:44 PM

note 95458 added to function.readdir
1/4/2010 1:36:41 PM

Hola
1/4/2010 1:29:49 PM