php-general Digest 13 Mar 2010 23:04:59 -0000 Issue 6637

2010-03-13 Thread php-general-digest-help
php-general Digest 13 Mar 2010 23:04:59 - Issue 6637 Topics (messages 302771 through 302787): Re: PHP Sessions 302771 by: Andre Polykanine 302772 by: Ashley Sheridan 302773 by: Andre Polykanine 302774 by: Ashley Sheridan Migration Scheme - from one mysql DB

Re: [PHP] Re: PHP Sessions

2010-03-13 Thread Ashley Sheridan
On Fri, 2010-03-12 at 21:33 -0500, Martine Osias wrote: The sessions variables are OK. They don't print when I put them on the HTML page with this code. tr td align=left?=laquo;.$_SESSION['scripture_text'].raquo;?/td /tr tr td style=font-size: smaller;

Re: [PHP] Re: PHP Sessions

2010-03-13 Thread Andre Polykanine
Hello Martine, As you have been already told, the ?=...? is not always supported. However I'd suggest you to do the following (since I love this form of tag): td align=leftlaquo;?=$_SESSION['scripture_text']?raquo;/td Note: I put within the tag only the variable. -- With best regards from

Re: [PHP] Re: PHP Sessions

2010-03-13 Thread Ashley Sheridan
On Sat, 2010-03-13 at 12:22 +0200, Andre Polykanine wrote: Hello Martine, As you have been already told, the ?=...? is not always supported. However I'd suggest you to do the following (since I love this form of tag): td align=leftlaquo;?=$_SESSION['scripture_text']?raquo;/td Note: I

Re[2]: [PHP] Re: PHP Sessions

2010-03-13 Thread Andre Polykanine
Hello Ashley, And if the site is full of that code?)) I think it's worth to learn what's really the reason of the fact that it doesn't work. Besides that, it's more readable for me. And the right thing that was said here is the following: check the php.ini settings and change them if possible.

Re: Re[2]: [PHP] Re: PHP Sessions

2010-03-13 Thread Ashley Sheridan
On Sat, 2010-03-13 at 12:49 +0200, Andre Polykanine wrote: Hello Ashley, And if the site is full of that code?)) I think it's worth to learn what's really the reason of the fact that it doesn't work. Besides that, it's more readable for me. And the right thing that was said here is the

[PHP] Migration Scheme - from one mysql DB to another mysql DB

2010-03-13 Thread MEM
Hello all, If possible, I would like to ask and have your help about the methods and procedures that should exist to accomplish the following task: I need to grab some data from one mySQL database with some specific table and field names, to another mySQL database with specific table and field

Re: [PHP] Re: PHP in HTML code

2010-03-13 Thread Jorge Gomes
First of all, i recommend the use of normal php tags (?php ... ?) because the short tags are atm marked as* **DEPRECATED*. You should also echo your values to the page, instead using the shortcut ?= (stop being a lazy ass! :P): tr td align=left?php echo $_SESSION['scripture_text']; ?/td /tr

Re: [PHP] Migration Scheme - from one mysql DB to another mysql DB

2010-03-13 Thread Per Jessen
MEM wrote: Hello all, If possible, I would like to ask and have your help about the methods and procedures that should exist to accomplish the following task: I need to grab some data from one mySQL database with some specific table and field names, to another mySQL database with specific

Re: [PHP] Migration Scheme - from one mysql DB to another mysql DB

2010-03-13 Thread Teus Benschop
On Sat, 2010-03-13 at 17:09 +0100, Per Jessen wrote: If possible, I would like to ask and have your help about the methods and procedures that should exist to accomplish the following task: I need to grab some data from one mySQL database with some specific table and field names, to

Re: [PHP] Migration Scheme - from one mysql DB to another mysql DB

2010-03-13 Thread Robert Cummings
MEM wrote: Hello all, If possible, I would like to ask and have your help about the methods and procedures that should exist to accomplish the following task: I need to grab some data from one mySQL database with some specific table and field names, to another mySQL database with specific table

[PHP] I need a fresh look at storing variables in MySQL

2010-03-13 Thread tedd
Hi gang: I just completed writing a survey that has approximately 180 questions in it and I need a fresh look at how to store the results so I can use them later. The survey requires the responder to identify themselves via an authorization script. After which, the responder is permitted to

Re: [PHP] I need a fresh look at storing variables in MySQL

2010-03-13 Thread paragasu
On Sun, Mar 14, 2010 at 2:10 AM, tedd tedd.sperl...@gmail.com wrote: Hi gang: I just completed writing a survey that has approximately 180 questions in it and I need a fresh look at how to store the results so I can use them later. The survey requires the responder to identify themselves

Re: [PHP] I need a fresh look at storing variables in MySQL

2010-03-13 Thread Rene Veerman
+1, but it also kinda depends on what you want to do with it later, and how much. if you want to re-use filled-in reports on the javascript end, you may want to use json_encode() instead of serialize(). if you plan to have many (say 5000) reports filled in and want users to be able to search

Re: [PHP] Migration Scheme - from one mysql DB to another mysql DB

2010-03-13 Thread Phpster
Rob's approach is what I use as well, if faced with this issue. It's quick and simple to do. Bastien Sent from my iPod On Mar 13, 2010, at 12:47 PM, Robert Cummings rob...@interjinn.com wrote: MEM wrote: Hello all, If possible, I would like to ask and have your help about the methods

Re: [PHP] I need a fresh look at storing variables in MySQL

2010-03-13 Thread Phpster
I'd go with a mysql data modelled approach as it will allow mysql to do lots of the heavy lifting during analysis as you've mentioned. If there are a lot of entries, it's gonna get complex and expensive memory-wise to manage XML or session based datasets. Plus having each question as it's

Re: [PHP] I need a fresh look at storing variables in MySQL

2010-03-13 Thread Rene Veerman
the OP may not need such fanciness.. it depends on the amount of reports he wants to store, the types of searches (if any) done by browsers, and the amount of searches to expect. and the OP may not have good db design skills yet. for a noob, it's one timeconsuming thing to build a datamodel, but

Re: [PHP] Migration Scheme - from one mysql DB to another mysql DB

2010-03-13 Thread Rene Veerman
I'd like to know - what type of hosting and OS the 2 databases are running. - if they're (staying) on the same machine, and if not: whats the available bandwith (updown, lowpeak) between the machines? any cost to that bandwith? - if you have admin rights on both databases. - how often you need to

[PHP] natural text / human text analysis

2010-03-13 Thread Rene Veerman
Hi.. I'm building a newsscraper - portal. Fetching, parsing and storing many links to news items per hour was not much of a problem. Translations between languages can be done via google, so that wont be much of a problem either i suspect. I dont want to reveal too much of my business idea, but

RE: [PHP] Migration Scheme - from one mysql DB to another mysql DB

2010-03-13 Thread MEM
I'd like to know - what type of hosting and OS the 2 databases are running. - if they're (staying) on the same machine, and if not: whats the available bandwith (updown, lowpeak) between the machines? any cost to that bandwith? - if you have admin rights on both databases. - how often

Re: [PHP] I need a fresh look at storing variables in MySQL

2010-03-13 Thread Paul M Foster
On Sat, Mar 13, 2010 at 02:45:37PM -0500, Phpster wrote: I'd go with a mysql data modelled approach as it will allow mysql to do lots of the heavy lifting during analysis as you've mentioned. If there are a lot of entries, it's gonna get complex and expensive memory-wise to manage XML or

Re: [PHP] I need a fresh look at storing variables in MySQL

2010-03-13 Thread Paul M Foster
On Sat, Mar 13, 2010 at 09:04:46PM +0100, Rene Veerman wrote: snip and the OP may not have good db design skills yet. for a noob, it's one timeconsuming thing to build a datamodel, but it's harder to get it efficient yet simple. snip OP: if you need a mysql datamodel for reports, i'm

Re: [PHP] I need a fresh look at storing variables in MySQL

2010-03-13 Thread Jochem Maas
Hi Tedd, just a few thoughts that might help ... Op 3/13/10 6:10 PM, tedd schreef: Hi gang: I just completed writing a survey that has approximately 180 questions in it and I need a fresh look at how to store the results so I can use them later. first off - wasn't there a cut'n'dried