Re: [PHP-DB] Counting HTML Lines

2005-04-15 Thread Jeffrey
with br's and then use substr_count to count how many br's you have in the string. Good luck, Jeffrey Baumgartner Ng Hwee Hwee wrote: hi! thanx for your reply. i cannot count the number of \n because sometimes the inputted text is very long without any \n, but because it is inside a cell that has

[PHP-DB] Moving data from one MySQL table to another

2005-05-19 Thread Jeffrey
I'm working on a web application and one of the things I am doing is creating an archiving function that would move older data to archive tables in order to minimise the amount of data in the active tables. This so that the data that is being used more frequently can be accessed faster by the

[PHP-DB] Fulltext search against table column in MySQL

2005-06-24 Thread Jeffrey
, so if I could do it in a singel query it would be so much more elegant. Thanks! Jeffrey -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DB] Security question [was Searchable/Sortable Database Fields with MySQL/PHP]

2005-07-13 Thread Jeffrey
server, etc, would you also encrypt on the DB? Thanks, Jeffrey Micah Stevens wrote: Oh! Also, there's built in mysql functions for encryption, I forgot about that, so you can still search, like this: insert into table set name_field = AES_ENCRYPT('Some name', 'secret key'); select * from table

Re: [PHP-DB] If syntax

2005-10-02 Thread Jeffrey
); @mysql_select_db($database) or die( Unable to select database); $query=SELECT alias FROM tablename WHERE alias LIKE '$alias%' LIMIT 1; $result=(mysql_query($query)) if (mysql_num_rows($result)==1) { echo Alias already in use; } else { echo Unique alias; mysql_close(); } Good luck, Jeffrey

Re: [PHP-DB] PHP email client

2005-10-04 Thread Jeffrey
Try www.squirrelmail.org - I believe there was a typo in the original post. JeRRy wrote: sqirrelmail.org can't display page You sure that is the url? Brent Baisley [EMAIL PROTECTED] wrote: SqirrelMail is as customizable as you want, it's written in PHP and you get the source code. By

Re: [PHP-DB] Converting the Month from a word into the numerical expression

2005-10-07 Thread Jeffrey
://php.belnet.be/manual/en/function.strtotime.php Good luck, Jeffrey -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DB] µç×Ó´«µ¥,×îÁ ®¼ÛµÄÐû´«·½Ê½

2005-10-16 Thread Jeffrey
JeRRy wrote: Date:Sun, 16 Oct 2005 02:40:44 -0400From:Alain Rivest [EMAIL PROTECTED]To:php-db@lists.php.net php-db@lists.php.netSubject:Re: [PHP-DB] µç×Ó´«µ¥,×îÁ®¼ÛµÄÐû´«·½Ê½ KOKOµç×Ó´«µ¥ a ¨¦crit

Re: [PHP-DB] new guy with stupid question

2006-01-20 Thread Jeffrey
. For the last question, get the date info from your drop down menus, then in php... $date_for_db=$year.-.$month.-.$day; ...and insert $date_for_db into your table. Good luck, Jeffrey -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DB] Retricting Access to Menu Items

2006-03-06 Thread Jeffrey
- it is not enough to hide menu options. Users could simply type the URL in. I hope that's clear. Good luck, Jeffrey Jeff Broomall wrote: Good morning everyone. I'm building a very simple content management site that tracks tasks. The options available are: 1. Add Task 2. Edit Task 3. View Task 4

Re: [PHP-DB] Renaming a table once it has been created

2006-03-08 Thread Jeffrey
Ron Piggott (PHP) wrote: Is there a way to re-name a table once you have created it? Ron ALTER TABLE `old_name` RENAME `new_name` Jeffrey -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DB] short text strings with apostrophes and forms

2006-04-20 Thread Jeffrey
the managers How can I get the text field to show the entire string? Many thanks, Jeffrey -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DB] short text strings with apostrophes and forms

2006-04-20 Thread Jeffrey
... Fix the managers How can I get the text field to show the entire string? Many thanks, Jeffrey htmlentities($some_text, ENT_QUOTES) is more robust than htmlspecialchars (); David Thanks, David. That did the trick. And thanks to everyone else who quickly responded with intelligent

Re: [PHP-DB] Chinese characters

2006-06-07 Thread Jeffrey
with Chinese and Japanese characters are not even posts. They are pure spam. As such, the senders should be removed from the list completely. Jeffrey -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DB] mysqldump via php

2006-06-29 Thread Jeffrey
in the archiving/delete page. That way there would be a snapshot of the pre-action db, making it easy to put things right. Can you help with my query - or by suggesting an alternative solution? Thanks, Jeffrey -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http

Re: [PHP-DB] mysqldump via php

2006-06-30 Thread Jeffrey
Thanks all for the help! exec() seems the best option. Jeffrey Miguel Guirao wrote: You could use exec() within PHP! -Original Message- From: Adrian Bruce [mailto:[EMAIL PROTECTED] Sent: Jueves, 29 de Junio de 2006 06:31 a.m. To: Jeffrey Cc: PHP DB Subject: Re: [PHP-DB] mysqldump

[PHP-DB] Interacting with server without a refresh?

2006-07-17 Thread Jeffrey
methods - presumably using something clientside - that could check the server and only do a refresh if new data/new page or somesuch is available. I hope this is clear. Thanks, Jeffrey -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DB] Can you recommend Australian LAMP web hosting service?

2006-08-10 Thread Jeffrey
security), reliability and customer service as sensitive corporate data would be saved on the application(s) hosted by them. Feel free to e-mail me off-list. Many thanks, Jeffrey -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DB] Search engine

2006-09-28 Thread Jeffrey
, Jeffrey Ron Piggott (PHP) wrote: What I haven't figured out is how to crawl my site. If I knew how to crawl my site I could write a basic search engine and develop it over time. This is the crucial issue I need help with. I have a really basic search engine I wrote last year. I told my web

Re: [PHP-DB] Generating pages with full stories

2006-11-13 Thread Jeffrey
of tutorials. Google PHP Tutorials and look around. Good luck, Jeffrey [EMAIL PROTECTED] wrote: I've got a website using PHP and MySQL. I would like to make a news preview on the webpage's frontpage with a link to the full story. Is it possible to use one (1) .PHP file to generate full

Re: [PHP-DB] simple issue

2006-11-21 Thread Jeffrey
. Good luck, Jeffrey Chris Carter wrote: my code: html body ? $username=chris; $password=carter; $database=chris_phpb1; mysql_connect(localhost,$username,$password); @mysql_select_db($database) or die( Unable to select database); $query=SELECT * FROM phpbb_banlist; $result=mysql_query($query

Re: [PHP-DB] random 'card number' generator

2006-11-24 Thread Jeffrey
and, if not, generate a new random number. Good luck, Jeffrey Desmond Coughlan wrote: X-No-Archive: true Hello, I'm learning PhP and trying to write a library catalogue system, that uses a PostgreSQL back-end. My db looks like this ... http://www.chez.com/desmondcoughlan/unix/bibliotheque.sql

Re: [PHP-DB] Invoking database php file with hyperlink

2006-12-12 Thread Jeffrey
specific data from a table, then use the format... a href=somepage.php?variable_1=xvariable_2=yvariable_3=zLink/a Good luck, Jeffrey -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DB] SQL query error

2006-12-16 Thread Jeffrey
you expect them to have? Jeffrey -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DB] One big query vs. lots of small queries

2006-12-18 Thread Jeffrey
Here's a question of efficiency. I have an application in PHP using MySQL. Users select items on a form and each selected item represents a change in a table row. It is possible that 100s of changes might be chosen from a single form. Which is likely to be faster/more efficient? multiple

[PHP-DB] Migrate MySQL to Ingres

2007-05-13 Thread Jeffrey
We have a moderately complex PHP web app collecting data from a MySQL database. We've been offered a rather attractive proposition to build an Ingres version (ie. same app, but collects data from an Ingres database). Questions for experts like you: 1) Is this a reasonably straightforward

[PHP-DB] Localisation of web app

2007-06-20 Thread Jeffrey
solution I haven't seen. Many thanks! Jeffrey -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP-DB] Can you recommend a development tool?

2001-02-10 Thread Jeffrey A. Stuart
That's been going on for a VERY long time. And instead of waiting, DUMP Ultradev and take a look at Code Charge (www.codecharge.com). It fills the niche in PHP (and a bunch of other languages as well!) that Ultradev tries to fill in ASP. -- Jeff (FurBall) WebOverdrive Newbie Tech Board

Re: [PHP-DB] Problems with MySQL

2001-04-03 Thread Jeffrey A Schoolcraft
path points to the newer version of mysql then, and not an old outdated one. Make sure you've removed all binary (for that matter all source) files for Mysql-3.22 if you've upgraded to 3.23. If in doubt, type which mysql and see if that's where you think it lives. Jeffrey -- PHP Database Mailing

Re: [PHP-DB] SELECT statement

2001-04-05 Thread Jeffrey A Schoolcraft
* Julio Cuz, Jr. ([EMAIL PROTECTED]) wrote: Ron, Thanks for your help, but my problem still there even when I made the following changes: $sql = "SELECT * FROM \"Remodel\" WHERE Email=\"".$find."\""; You don't have to quote the table name either. You can probably get away with

Re: [PHP-DB] diferent user passwords

2001-04-13 Thread Jeffrey A Schoolcraft
* Romeo Manzur ([EMAIL PROTECTED]) wrote: how could I configure diferent user password to each database on my server??? You can probably achieve this with grant statements. Grant SELECT on test.* to myuser@localhost identified by 'pass1'; Grant SELECT on other.* to myuser@localhost

[PHP-DB] SSL - PAGE CANNOT BE DISPLAYED

2002-02-07 Thread Jeffrey Cleary
anyone enlighten me or have any ideas? Thanks in Advance, Jeffrey Cleary -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DB] Looking for Experienced PHP Programmers

2002-03-25 Thread Jeffrey Cleary
and Linux Administration, along with prior PHP application success. Only replies with their resume and hourly rate will be considered. Please post to another list if this is the wrong one. Thanks, Jeffrey Cleary JeffreyCo, Inc. -- PHP Database Mailing List (http://www.php.net/) To unsubscribe

[PHP-DB] PHP Newbee Question

2002-07-02 Thread Jeffrey Norsworthy
']}nbspnbspnbsp{$row['position']}/b br; } ? Jeffrey Norsworthy MCP, CCNA Network Administrator Community Health Services [EMAIL PROTECTED]

Re: [PHP-DB] PHP Newbee Question

2002-07-02 Thread Jeffrey Norsworthy
Thanks for the tip. Unfortunately it didn't fix the issue. I am sorry about the way the address message is displayed. There unfortunately isn't anything I can do about it. Jeffrey Norsworthy MCP, CCNA Network Administrator Community Health Services [EMAIL PROTECTED] Bogdan Stancescu [EMAIL

[PHP-DB] Newbie q: problem with mysql_connect() on hosted service

2002-12-27 Thread Baumgartner Jeffrey
). They must be willing to host adult content (soft-core erotica and adult humour). Any recommendations (on or off-list will be much appreciated). A million thanks, Jeffrey Baumgartner -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DB] Mail() and replies

2003-01-15 Thread Baumgartner Jeffrey
and add the sender's e-mail address to the database (MySQL). Doable? Thanks, Jeffrey Baumgartner eBusiness Consultant - ITP Europe http://www.itp-europe.com [EMAIL PROTECTED] +32 2 721 51 00 -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DB] Efficiency

2003-01-21 Thread Baumgartner Jeffrey
function in PHP to get a row count (which is dead easy). It SEEMS to me the former would be more efficient. Am I correct? Many thanks! Jeffrey Baumgartner eBusiness Consultant - ITP Europe http://www.itp-europe.com [EMAIL PROTECTED] +32 2 721 51 00 -- PHP Database Mailing List (http://www.php.net

RE: [PHP-DB] Members area

2003-01-23 Thread Baumgartner Jeffrey
pages with links to content pages. All links will be visible, but links for paid members will be clearly indicated. The purpose of this is to show freeloaders what they are missing! I hope this is clear. More experienced members of this list may well find flaws with my method. Good luck, Jeffrey

[PHP-DB] Data won't insert

2003-01-23 Thread Baumgartner Jeffrey
of the permissions the site 2 web host has granted me? And if so, why can I do things with phpmyadmin but not via my own scripts? Many thanks, Jeffrey Baumgartner ?php $dbcnx = mysql_connect(localhost, USER, PASSWORD); $db = mysql_select_db(TABLENAME, $dbcnx) or die(Couldn't get DB); If (isset

[PHP-DB] collaborating on a document

2003-02-11 Thread Baumgartner Jeffrey
seconds. But perhaps you have a more elegant solution? Thanks, Jeffrey Baumgartner eBusiness Consultant - ITP Europe http://www.itp-europe.com [EMAIL PROTECTED] +32 2 721 51 00 -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP-DB] collaborating on a document

2003-02-12 Thread Baumgartner Jeffrey
1-Since he's posting to a PHP-DB list, I think we can assume he plans to implement it in PHP using a database to capture and store the comments/ideas. Correct, thank you. Jeff - Do you have a plan in place for your DB schema or the backend processing that might take place? No,

[PHP-DB] Session variables when global variables switched off

2003-02-18 Thread Baumgartner Jeffrey
I am making a section on a web site which requires that visitors log-in. Log-in, password, etc are in an MySQL table. I am using (via a web host) PHP 4.2.2 with global variables turned off. Until now, I have worked with a different host in which global variables were switched on. The way it works

[PHP-DB] Session variables when global variables switched off [Sorry, first message accidentally fired off to quickly ]

2003-02-18 Thread Baumgartner Jeffrey
and session_register($_SESSION['okbabe']); on index.php. Your enlightenment will be highly appreciated. Jeffrey Baumgartner -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DB] mysql_fetch_array and extract() with LEFT SELECT

2003-02-19 Thread Baumgartner Jeffrey
wrong). I expect the solution must be dead easy, but I can't find it or figure it out. Many thanks, Jeffrey -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DB] Re: Free php editor!!

2003-08-03 Thread Jeffrey Dickman
There is eClipse, it can be found at http://sourceforge.net. It is a modular IDE, and there is a plugin for php. It is Java based, so it works on any platform. phpEdit is also free: http://www.phpedit.com Those are the best two editors I've found. -- PHP Database Mailing List

Re: Re[2]: [PHP-DB] Optimising LIMITs

2004-03-01 Thread Jeffrey Moss
JM Primary keys aren't any faster than normal keys. They're simply for JM identification. (correct me if I'm wrong, that is my understanding) JM If you don't already have an index on created, I'd do that. I do - here's a question though, what is the best way to have an index? To combine

[PHP-DB] sybase support in PHP5

2004-03-01 Thread Jeffrey Moss
Is Sybase support in PHP5 working? I get: /bin/sh /usr/portage/tmp/php-5.0.0b3/libtool --silent --preserve-dup-deps --mode=compile gcc -Iext/sybase/ -I/usr/portage/tmp/php-5.0.0b3/ext/sybase/ -DPHP_ATOM_INC -I/usr/portage/tmp/php-5.0.0b3/include -I/usr/portage/tmp/php-5.0.0b3/main

Re: [PHP-DB] password input type

2004-04-05 Thread Jeffrey Moss
It is possible to md5 encrypt a password before you send it off to the server using javascript onSubmit function. Check this code out: http://pajhome.org.uk/crypt/md5/ -Jeff Moss - Original Message - From: matthew perry [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, April 05,

Re: [PHP-DB] pdf editor

2004-04-07 Thread Jeffrey Moss
I think someone else asked about a problem where they had text running off the side of the page, heres everything I've ever learned about PS/PDF. GNU ghostscript is all you really need for editing pdf's. Usually the text appears as plain text once you convert the PDF to a PS with pdf2ps, and you

Re: [PHP-DB] mysql went away

2004-05-13 Thread Jeffrey Moss
I would start by seeing if the files are there after you create/load the table. It should by default create a file for each table you create. Sounds to me like a problem reading the disk. If you don't find any answers on your own, post your system specs to the MySQL lists. You could also try

Re: [PHP-DB] search engines

2004-04-29 Thread Jeffrey Moss
Read up on MySQL full text search. http://dev.mysql.com/doc/mysql/en/Fulltext_Search.html -Jeff - Original Message - From: redhat [EMAIL PROTECTED] To: phplist [EMAIL PROTECTED] Sent: Thursday, April 29, 2004 10:12 AM Subject: [PHP-DB] search engines Anyone out there know of a good

Re: [PHP-DB] Read a PDF file via PHP

2004-06-25 Thread Jeffrey Moss
Steve, You must turn the file to postscript before you can read anything out of it, and even then, a lot of the time words are broken up into different show statements. use pdf2ps (part of GNU GhostScript) to convert to PS and then search for patterns like this: (text) show that is the most

Re: [PHP-DB] FULLTEXT and LIKE

2004-07-22 Thread Jeffrey Moss
Well, like will do a full table scan if it starts with a wildcard, so you dont want to do it that way. I'd do full text search. http://dev.mysql.com/doc/mysql/en/MySQL_indexes.html -Jeff - Original Message - From: Monty [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, July 22,

Re: [PHP-DB] Checkbox Array Question - Iteration

2004-08-17 Thread Jeffrey Moss
Well, you should come up with a definitions table. Create an array out of the definitions table (I'd recommend keeping everything in one array, for recursive efficiency). Then go over THIS array, and check for the existence of variables in the form array. That way you can output all the

Re: [PHP-DB] help with mySQL- Fatal error: Call to undefined function mysql_connect()...

2004-08-17 Thread Jeffrey Moss
Gotta recompile php with the --with-mysql option (or something like that). Try running configure --help You can see what options you compiled with by grepping for CONFIGURE in your Makefile. Here's what I got: [EMAIL PROTECTED] php-5.0.0b4 # grep CONFIGURE Makefile CONFIGURE_COMMAND =

Re: [PHP-DB] help with mySQL- Fatal error: Call to undefined function mysql_connect()...

2004-08-17 Thread Jeffrey Moss
://www.macromedia.com/devnet/mx/dreamweaver/articles/php_iis.html) -Jeff - Original Message - From: Jeffrey Moss [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, August 17, 2004 12:08 PM Subject: Re: [PHP-DB] help with mySQL- Fatal error: Call to undefined function mysql_connect()... Gotta

Re: [PHP-DB] how many databases should I create

2004-10-18 Thread Jeffrey Moss
Matter of preference really. Do you put all your files in one directory? I do for the most part, but when it comes to security you can divy out access to different databases rather than each table and it makes things simpler, so I use different databases for different projects. Also, I think

Re: [PHP-DB] Trigering PHP Code

2004-12-29 Thread Jeffrey Moss
Or, you could use XmlHttpRequest, which is what google suggest uses. http://www.google.com/webhp?complete=1 You can use this to dynamically populate a section of the page. I wouldn't delve into it unless you have some xml/javascript experience also though. Try this page for more info:

[PHP-DB] Problem with mysql_fetch_array after first loop...

2005-03-03 Thread Jeffrey Baumgartner
resource. This really puzzles me because it works one time around, but not after that. $ic, incidentally, is a string originally generated from the timestamp (ie. getdate[0]) - could this be causing a problem? Many thanks! Jeffrey -- PHP Database Mailing List (http://www.php.net/) To unsubscribe

[PHP-DB] solved [Re: [PHP-DB] Re: Problem with mysql_fetch_array after first loop...]

2005-03-03 Thread Jeffrey Baumgartner
That was indeed the problem and of course I should have seen it myself! Thanks very much, Jochem. Jeffrey Jochem Maas wrote: Steve McGill wrote: Jeffrey Baumgartner [EMAIL PROTECTED] schreef in bericht news:[EMAIL PROTECTED] I've made a little programme that deletes expired records from database

[PHP-DB] MySQL connects to localhost via socket reguardless

2005-04-10 Thread Jeffrey D. Means
I am trying to connect to a DB on a difrent server but mysql keeps connecting to the local server via the socket. What is going on? -- code snippet-- $connection = mysql_connect(mysql.meanspc.com:3306, Removed, Removed); -- Jeffrey D. Means [EMAIL PROTECTED] Owner / CIO for MeansPC http

RE: [PHP-DB] MySql and PHP question

2005-04-10 Thread Jeffrey D. Means
) and zg_longitude = ('result here'+2) order by zg_city asc Can anyone help me with this or point me in a better direction? Thanks -Rich -- Jeffrey D. Means [EMAIL PROTECTED] Owner / CIO for MeansPC http://www.meanspc.com/ Custom Web Development For Your Needs. (970)308-1298 My Public PGP Key ID