RE: [PHP] update two frames at once?
I mean straight html. And people still using just plain html. I was just clearing up my answer. -Tanya On Mon, 12 Mar 2001, Angerer, Chad wrote: > By saying straight/plain html frames if you mean strictly HTML and no > outside scripting language then you are right you cannot. But I don't think > anyone is strictly limited to just HTML. > > Chad > > -Original Message----- > From: Tanya Brethour [mailto:[EMAIL PROTECTED]] > Sent: Monday, March 12, 2001 3:21 PM > To: Angerer, Chad > Cc: 'Michael George'; [EMAIL PROTECTED] > Subject: RE: [PHP] update two frames at once? > > > > Well in straight/plain html frames.. I dont believe you can. > > -Tanya > > On Mon, 12 Mar 2001, Angerer, Chad wrote: > > > Yes you can.. use Javascript > > > > Look here.. http://www.virtualgeoff.com/junkyard/frames/multiple/ > > > > Chad > > > > -Original Message- > > From: Michael George [mailto:[EMAIL PROTECTED]] > > Sent: Monday, March 12, 2001 3:06 PM > > To: [EMAIL PROTECTED] > > Subject: [PHP] update two frames at once? > > > > > > Hello al! > > > > Is it possible to have two frames updated when cliking on one link? I > have > > a > > page that is broken into 4 parts: > > master title > > section title > > d section screen > > i > > r > > . > > > > what I want is that when a link is clicked on in the directory (the left > > column), I'd like to update the section title *and* the section screen... > > > > It seemed a cool layout at the time, but I'm thinking this isn't easily > > possible and I might just have to incorporate a section title on the > section > > screen... But before I rewrite it, I thought I'd ask here. > > > > Thanks! > > > > -Michael > > > > P.S. I'd like to commend the regular posters to this list on being SOOO > > informative and patient! Every small question to this list always > > gets several useful answers, even when I've seen questions asked over > > and again. > > > > -- > > No, my friend, the way to have good and safe government, is not to trust > it > > all to one, but to divide it among the many, distributing to every one > > exactly > > the functions he is competent to. It is by dividing and subdividing these > > republics from the national one down through all its subordinations, until > > it > > ends in the administration of every man's farm by himself; by placing > under > > every one what his own eye may superintend, that all will be done for the > > best. > > -- Thomas Jefferson, to Joseph Cabell, 1816 > > > > -- > > PHP General 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] > > > > -- > > PHP General 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] > > > > > -- > PHP General 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] > -- PHP General 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]
Re: [PHP] array
Not that I am a php expert.. but it doesnt look like you ever assign products to anything. Shouldnt you be doing something like $products["$prod_id"] = $row["prod_id"] Also.. if you have more than one rows.. it would overwrite the array. Do you want a 2-d array? -Tanya On Mon, 12 Mar 2001, [iso-8859-1] Marco Aurélio wrote: > Hello!!! > > Please, assume I have the following mysql query: > > function get_products() { > > $result = mysql_query("select * from products"); > while ($row = mysql_fetch_array($result)) { > $prod_id = $row["prod_id"]; > $prod_name = $row["prod_name"']; > $prod_price = $row["prod_price"]; > } > return $products; > } > > The question: > > Ok, my $products variable will be an array with all products ??? > > > Regards, > > marcoBR > > > -- > PHP General 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] > -- PHP General 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]
RE: [PHP] update two frames at once?
Well in straight/plain html frames.. I dont believe you can. -Tanya On Mon, 12 Mar 2001, Angerer, Chad wrote: > Yes you can.. use Javascript > > Look here.. http://www.virtualgeoff.com/junkyard/frames/multiple/ > > Chad > > -Original Message- > From: Michael George [mailto:[EMAIL PROTECTED]] > Sent: Monday, March 12, 2001 3:06 PM > To: [EMAIL PROTECTED] > Subject: [PHP] update two frames at once? > > > Hello al! > > Is it possible to have two frames updated when cliking on one link? I have > a > page that is broken into 4 parts: > master title > section title > d section screen > i > r > . > > what I want is that when a link is clicked on in the directory (the left > column), I'd like to update the section title *and* the section screen... > > It seemed a cool layout at the time, but I'm thinking this isn't easily > possible and I might just have to incorporate a section title on the section > screen... But before I rewrite it, I thought I'd ask here. > > Thanks! > > -Michael > > P.S. I'd like to commend the regular posters to this list on being SOOO > informative and patient! Every small question to this list always > gets several useful answers, even when I've seen questions asked over > and again. > > -- > No, my friend, the way to have good and safe government, is not to trust it > all to one, but to divide it among the many, distributing to every one > exactly > the functions he is competent to. It is by dividing and subdividing these > republics from the national one down through all its subordinations, until > it > ends in the administration of every man's farm by himself; by placing under > every one what his own eye may superintend, that all will be done for the > best. > -- Thomas Jefferson, to Joseph Cabell, 1816 > > -- > PHP General 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] > > -- > PHP General 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] > -- PHP General 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]
Re: [PHP] update two frames at once?
I dont believe so. -Tanya On Mon, 12 Mar 2001, Michael George wrote: > Hello al! > > Is it possible to have two frames updated when cliking on one link? I have a > page that is broken into 4 parts: > master title > section title > d section screen > i > r > . > > what I want is that when a link is clicked on in the directory (the left > column), I'd like to update the section title *and* the section screen... > > It seemed a cool layout at the time, but I'm thinking this isn't easily > possible and I might just have to incorporate a section title on the section > screen... But before I rewrite it, I thought I'd ask here. > > Thanks! > > -Michael > > P.S. I'd like to commend the regular posters to this list on being SOOO > informative and patient! Every small question to this list always > gets several useful answers, even when I've seen questions asked over > and again. > > -- > No, my friend, the way to have good and safe government, is not to trust it > all to one, but to divide it among the many, distributing to every one exactly > the functions he is competent to. It is by dividing and subdividing these > republics from the national one down through all its subordinations, until it > ends in the administration of every man's farm by himself; by placing under > every one what his own eye may superintend, that all will be done for the > best. > -- Thomas Jefferson, to Joseph Cabell, 1816 > > -- > PHP General 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] > -- PHP General 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]
Re: [PHP] getting client info
I am not sure if there is a way to do this. The only thing you could do is determine level of encryption by browser version. This might work in some cases.. but obviously if they have an old browser version (whose encryption level is low by default) and they install like an encryption_pack (IE example).. it will increase the encryption and you wouldnt have a way to tell. Sorry.. just some thoughts. -Tanya On Mon, 12 Mar 2001, Mitchell Hagerty wrote: > I am using http://www.asphyxia.com/PHP_BD/PHPClientSniffer.phps to get info about >the browsers connecting to > me but I would also like to get the level of encryption they are capable of. > > Any thoughts on how to do this? > > tks > mitch > > > > -- > PHP General 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] > -- PHP General 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]
Re: [PHP] what are the steps to recompile PHP?
I would assume that you need to 1) make sure you install it in the same place :) 2) if you already compiled a Apache binary you need to copy the new binary over.. or do another make install. I would just follow the steps you did when you first installed it.. and it should overwrite everything you did before.. assuming your --prefix is right and what not. -Tanya On Mon, 12 Mar 2001, colin olkowski wrote: > if one wants to recompile php (to add support for something that was missed > during the first compile) is there a step I need to complete that will > remove the earlier version of php, or do i just recompile over the old php > and not worry about it? > > thanks > > colin olkowski - [EMAIL PROTECTED] > cell 917.549.8395 > land 212.414.4481 > > > > -- > PHP General 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] > -- PHP General 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]
Re: [PHP] Get next record
Umm if you are talking about records in the sense of a table.. you could do something like "SELECT record_id,record_date FROM table" and then go through the array and compare the dates. You only do one query from the database and then you know which records match by hanging onto their record_id. Is this what you wanted? -Tanya On Mon, 12 Mar 2001, WreckRman2 wrote: > How can one get the next record to compare two fields... I want to check if > the date of the first record matches the date of the next record with the > least amount of code... > > David Smith > Indy Web Design > http://www.indywebdesign.com > > > -- > PHP General 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] > -- PHP General 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]
Re: [PHP] Trouble setting up
err not the library.. but php.ini -Tanya On Mon, 12 Mar 2001, Luis wrote: > Hello all I new to the php . I was wondering > if anyone could help me out with a little problem > that I'm having. I download the new version of > php. I installed mysql , apache (new version) and > php. > > What i'm having trouble is setting it up. > > I found a link how to set up php, mysql and > apache. I everthing on the page, but when it comes > > down to editing the httpd.conf file I get lost. > I added the two things it tells me to do. > > 17. Edit your httpd.conf or srm.conf file and add: > > > > For PHP 3: > AddType application/x-httpd-php3 .php3 > For PHP 4: > AddType application/x-httpd-php .php > > > I then stop the apache server and restart it. I > have a folder that has php file . when i try to > bring this up i get > this error message. > "The page cannot be displayed. " > I checked the folder and the permissions . > everything looks fine. so can someone tell me what > > i'm doing wrong. > > Thank you . > > > Luis > > > -- > PHP General 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] > -- PHP General 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]
[PHP] Re: Trouble setting up
Did you copy the php library over? And second.. are you actually going directly to the php script OR.. is it named index.php and you are only going to the directory? -Tanya On Mon, 12 Mar 2001, Luis wrote: > Hello all I new to the php . I was wondering > if anyone could help me out with a little problem > that I'm having. I download the new version of > php. I installed mysql , apache (new version) and > php. > > What i'm having trouble is setting it up. > > I found a link how to set up php, mysql and > apache. I everthing on the page, but when it comes > > down to editing the httpd.conf file I get lost. > I added the two things it tells me to do. > > 17. Edit your httpd.conf or srm.conf file and add: > > > > For PHP 3: > AddType application/x-httpd-php3 .php3 > For PHP 4: > AddType application/x-httpd-php .php > > > I then stop the apache server and restart it. I > have a folder that has php file . when i try to > bring this up i get > this error message. > "The page cannot be displayed. " > I checked the folder and the permissions . > everything looks fine. so can someone tell me what > > i'm doing wrong. > > Thank you . > > > Luis > -- PHP General 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]
[PHP] Escape slashes?
Hi! I am trying to do some fileuploading.. but I am running into a problem with escaping spaces. Basically, I have this directory that includes spaces and I need to be able to change the spaces to "\ " so for example.. my directory is: Fun Documents I need to change it to: Fun\ Documents That way when I copy.. I wont get errors! Plus, there is always the potential that the filename might have a space in it. So how do I escape these spaces? I have tried this.. and it doesnt work: $copyto = strtr($copyto, " ", "\ "); That basically just replaces the spaces with a backslash. I tried this as well: $copyto = strtr($copyto, " ", "\\ "); Didnt work. I am sorta clueless.. any ideas? Thanks in advance, Tanya -- PHP General 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]
[PHP] Re: [PHP-DB] Passing vars
Yes.. the problem with the hidden method.. is the following. Let says I use the string "Testing the \"waters\" " Now.. if I do a the qoutes in my string do not escape correctly. So when you look at the source in netscape.. it ends the string at \ ... just before the first qoute. So.. is there any other way besides those two methods? Can I pass a object through the URL? -Tanya On Wed, 14 Feb 2001, Maureen wrote: > I may be totally wrong or missing something, (if so, someone please let > me know) but ... > > 1. One way would be to use the variables and urlencode them before > passing them. > $var1=urlencode($var1) > then you have test.php?cheese="" > > OR > > 2. Another way would be to use a form: > > > and then add the 6 variables as > > > > > > > > > and then have a submit button to take you to the next page. > > Tanya Brethour wrote: > > > Quick question.. > > > > If I have like 6 variables to pass to another PHP script... and some of > > the vars are actually multiple lines of text (lets say over 30 lines). > > What is the best way of doing this? > > > > I would like to avoid doing something like test.php?cheese=(30 lines of > > stuff) > > > > Thanks in advance! > > -Tanya > -- PHP General 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]
[PHP] Passing vars
Quick question.. If I have like 6 variables to pass to another PHP script... and some of the vars are actually multiple lines of text (lets say over 30 lines). What is the best way of doing this? I would like to avoid doing something like test.php?cheese=(30 lines of stuff) Thanks in advance! -Tanya -- PHP General 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]
Re: [PHP] Qoute problem
Let says I strip the slashes.. so it goes back to just normal qoutes.. and then do the str_replace("\"","|", $describe); $describe = stripslashes($describe); str_replace("\"","|",$describe); It doesnt replace the qoutes.. -Tanya On Wed, 14 Feb 2001, Web master wrote: > My approach towards this problem was to parse the data before inserting > and before displaying. > Before inserting the data entered by user, do something like > str_replace($comments, "'","~") and do the same thing for " do a > different character like | and then insert it into database. > Do the reverse before displaying the data, it should fix your problem.. > > Tanya Brethour wrote: > > > Hi! I was hoping that someone could help me out. I am not positive if I > > understand whats going on.. so let me try to explain. > > > > This is a process to modify news articles in a MySQL database. > > > > (From the point after picking the article to modify) > > PHP Script #1: > > I grab everything from the database and stick it into the HTML form > > (textarea, text, etc). I allow the user to modify whatever they want. > > > > PHP Script #2: > > This script takes the new information and displays it to the user.. it is > > a preview of what it will look like with the changes. > > > > PHP Script #3: > > Updates the news article in the database. > > > > Now the problem I am having.. is that the description and content fields > > have qoutes in them. For example: > > Description: I like to run and walk. I love "smelly cheese." > > > > So.. when it tries to update the database. It will only store this as the > > description: > > I like to run and walk. I love\\ > > > > I know that its because the qoutes are not being escaped correctly.. and > > it seems as though it is escaping the escape. > > > > So my question is.. how can I keep my qoutes? > > > > Just FYI.. I am making the user enter in the description and content in > > html. So i cant just change the qoutes to HTMLTags because it would change > > my and etc. > > > > Below is an example of the code (shortened for an example): > > > > PHP Script #1: Editing description > > > > print' > > > > Description:'; > > echo $info["description"]; > > print' > > '; > > > > PHP Script #2: (preview changes) > > > > > > Description: > > > > > > PHP Script #3: (update database) > > $sql = "UPDATE news SET release_date='$date', title='$title', > > description='$describe', contact='$contact', content='$test', type='$type' > > WHERE news_id=$id"; > > $result = mysql_query($sql) > > > > > > Thanks in advance. > > > > -Tanya > > > > > > > > > > > > > > > -- PHP General 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]
[PHP] Qoute problem
Hi! I was hoping that someone could help me out. I am not positive if I understand whats going on.. so let me try to explain. This is a process to modify news articles in a MySQL database. (From the point after picking the article to modify) PHP Script #1: I grab everything from the database and stick it into the HTML form (textarea, text, etc). I allow the user to modify whatever they want. PHP Script #2: This script takes the new information and displays it to the user.. it is a preview of what it will look like with the changes. PHP Script #3: Updates the news article in the database. Now the problem I am having.. is that the description and content fields have qoutes in them. For example: Description: I like to run and walk. I love "smelly cheese." So.. when it tries to update the database. It will only store this as the description: I like to run and walk. I love\\ I know that its because the qoutes are not being escaped correctly.. and it seems as though it is escaping the escape. So my question is.. how can I keep my qoutes? Just FYI.. I am making the user enter in the description and content in html. So i cant just change the qoutes to HTMLTags because it would change my and etc. Below is an example of the code (shortened for an example): PHP Script #1: Editing description print' Description:'; echo $info["description"]; print' '; PHP Script #2: (preview changes) Description: PHP Script #3: (update database) $sql = "UPDATE news SET release_date='$date', title='$title', description='$describe', contact='$contact', content='$test', type='$type' WHERE news_id=$id"; $result = mysql_query($sql) Thanks in advance. -Tanya -- PHP General 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]