Search found 21 matches

by tommytx123
Fri Dec 18, 2020 1:32 pm
Forum: mySQL & php coding
Topic: Does anyone know how to extend the mysql Db innoDB wider.
Replies: 0
Views: 487

Does anyone know how to extend the mysql Db innoDB wider.

My rows were getting so long that i exceeded the max when using innoDB rule of 6,126 characters in a row.. total of all tables cannot exceed a width of 8,126. At the time i was on Xampp localhost using Xampp. I extended it in the ini.php file.. and all is well but when i looked for the same file on ...
by tommytx123
Wed Sep 27, 2017 11:58 am
Forum: PHP coding => General
Topic: How to change one element of a php array on the fly..
Replies: 1
Views: 929

How to change one element of a php array on the fly..

I have the following code... Array ( [fields] => City|Price [values] => Las Vegas|$600,000 [template] => similar_listings.php [orderby] => Price [orderdir] => DESC [sort_type] => LOCAL [count] => 3 [masterdb] => 1 [get] => Array ( [sorteddir] => DESC ) ) I want to change auto remove the $ sign on th...
by tommytx123
Fri Aug 11, 2017 9:42 pm
Forum: PHP coding => General
Topic: Can I print to file while php is running?
Replies: 2
Views: 969

Can I print to file while php is running?

As we know when php is running we cannot print to the screen, but it i put a php file write command in the php script can it write to that file and tell me what is going on or must i wait for the script to finish before i can view the file print also.. I want to be able to clikc on the text file tha...
by tommytx123
Sun Jul 16, 2017 9:29 pm
Forum: PHP coding => General
Topic: What have i missed with setting up this simple class?
Replies: 2
Views: 1330

What have i missed with setting up this simple class?

Can anyone see what i have wrong? It should change the word before to after but does nothing.. The second php is a copy of the class that i am using. <?php include("parse.inc.php"); $bob = new parseClass(); $tag = "{Before}"; $replacement = "After"; $content = "My animal runs around all over the pla...
by tommytx123
Wed Apr 05, 2017 7:38 pm
Forum: PHP coding => General
Topic: How to make a choice in php (no html please)
Replies: 15
Views: 5009

Re: How to make a choice in php (no html please)

Here you go Hyper can't get it to work for me....can you run what i did to see if it will work for you.. as php just does not like to wait around for a decision.. file name = input.php &&&&&&&&&&&&&&& <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>Simple php input and decision...
by tommytx123
Wed Apr 05, 2017 9:24 am
Forum: mySQL & php coding
Topic: Man input to mysql works but not variable.
Replies: 2
Views: 1875

Re: Man input to mysql works but not variable.

Wow Mr. Mysql wizard.. works perfect.. guess i just kept overlooing that simple little thing... Very grateful... I douse you Mr. Mysql Wizard for the Month.. haha. Hey you are so good if you have a minute pls look over my other question at https://www.php-forum.com/phpforum/viewtopic.php?f=2&t=27905...
by tommytx123
Wed Apr 05, 2017 6:49 am
Forum: mySQL & php coding
Topic: Man input to mysql works but not variable.
Replies: 2
Views: 1875

Man input to mysql works but not variable.

Anyone have any ideas why this will not work.. Bottom line is that when i run the date entry by entering the date/time physically into the program all is fine.. but any attempt to enter the date via varialbe ($dte) fails with the results shown below.. // Good test // Remove quotes to run this is the...
by tommytx123
Mon Apr 03, 2017 6:27 am
Forum: PHP coding => General
Topic: How to make a choice in php (no html please)
Replies: 15
Views: 5009

Re: How to make a choice in php (no html please)

Thanks for that input Hyper... I will try that later today and let you know.. Doubt that will work for me but will give it a try and see if i can get it to do it... As i am very familiear with html forms and can do that one pretty easy.. but will see if any way i can get your idea to work.. I just w...
by tommytx123
Mon Apr 03, 2017 6:11 am
Forum: PHP coding => General
Topic: How to make a choice in php (no html please)
Replies: 15
Views: 5009

Re: How to make a choice in php (no html please)

Screen capture w/ cnt: https://www.screencast.com/t/MoYCrkuCa <?php $cnt = 0; while (FALSE !== ($line = fgets(STDIN))) { echo $line; } ?> Screen capture with cnt added: https://www.screencast.com/t/MoYCrkuCa <?php $cnt = 0; while (FALSE !== ($line = fgets(STDIN))) { echo $line; $cnt++; echo "$cnt ";...
by tommytx123
Sun Apr 02, 2017 12:40 am
Forum: PHP coding => General
Topic: How to make a choice in php (no html please)
Replies: 15
Views: 5009

Re: How to make a choice in php (no html please)

Tried on one Linux 5.6.20 and one on LInux 5.6.30 and this one example has been around a long time so no reason to think it would need a later version of php than I have.. i don't have php on my windows 10..but need to use it on the web.. so that wont help.. Went back and looked at that post and it ...
by tommytx123
Fri Mar 31, 2017 12:50 pm
Forum: PHP coding => General
Topic: How to make a choice in php (no html please)
Replies: 15
Views: 5009

Re: How to make a choice in php (no html please)

Sorry Nigel but did not realize it sounded like i was yelling at you.. i have reworded the comment.. but I have used that same idea before so i know it can be done with php and no html but all my searching for weeks has not turned up anything that works.. Your example is a perfect one of exactly wha...
by tommytx123
Fri Mar 31, 2017 11:40 am
Forum: PHP coding => General
Topic: How to make a choice in php (no html please)
Replies: 15
Views: 5009

Re: How to make a choice in php (no html please)

Here is more infomation that may give better clues... pretty sure i have used that simple command but maybe not.. I am well acquainted with html and know exactly how to make it stop the php and ask for input the go back to php.... all i want to do is have the running program ask for input .. the tak...
by tommytx123
Wed Mar 29, 2017 4:49 pm
Forum: PHP coding => General
Topic: How to make a choice in php (no html please)
Replies: 15
Views: 5009

How to make a choice in php (no html please)

Forgive the kindergarten question but can someone set me on the path to a basic choice for php.. Do not want to jump into html to do it.. And it needs to be after a few php commands have been inititated.. for example <?php echo "Now is the time for all good men to go to work.<br>"; // Stop here with...
by tommytx123
Sun Oct 09, 2016 8:12 pm
Forum: mySQL & php coding
Topic: How to extract the data from a complex array. probably recursive.
Replies: 1
Views: 1572

How to extract the data from a complex array. probably recursive.

I would really appreciate some help on this especially from all you array experts.. this is definiately mysql and php. The $results request is to a RETS server data base for real estate.. and if I view the results using the print_r function below I see the results at http://vahud.com/rets/sample.txt...
by tommytx123
Sun Oct 09, 2016 7:40 pm
Forum: PHP coding => General
Topic: What is the term like implode when you break out an array.
Replies: 3
Views: 1511

Re: What is the term like implode when you break out an array.

Thanks Adoptive Solitions.. for the help but I just this minute found it.. extract..
great example at http://www.w3schools.com/php/func_array_extract.asp
by tommytx123
Thu Oct 06, 2016 3:21 am
Forum: PHP coding => General
Topic: What is the term like implode when you break out an array.
Replies: 3
Views: 1511

What is the term like implode when you break out an array.

What is the php command called when you take an associtiative array and convert it to variables..
for example array(dog=>rover, cat=>meow etc..)
and the result is lime implode but not it..
$dog = "cat"
$cat = "meow"

thanks in advance.. I have used it just cant remember how to use it or its name..
by tommytx123
Mon Oct 26, 2015 5:22 am
Forum: PHP coding => General
Topic: How to detect where a function call came from..
Replies: 3
Views: 1481

Re: How to detect where a function call came from..

This is a program that is already written so I do not have the ability to tell it where the call came from.. I i could do that then I would already know where it came from.. I am studying an existing program and lets say I am browsing thru the program and notice a function doWork() and am interested...
by tommytx123
Sun Oct 25, 2015 3:47 pm
Forum: PHP coding => General
Topic: How to load a file 3 directorys back from me..
Replies: 3
Views: 1469

Re: How to load a file 3 directorys back from me..

Thank you that worked great... sorry for the delay.. I saw it right away but forgot to respond to it..
by tommytx123
Sat Oct 24, 2015 7:32 pm
Forum: PHP coding => General
Topic: What am I doing wrong with the extract function?
Replies: 0
Views: 1073

What am I doing wrong with the extract function?

I used the following to query the mysql via wordpress .... $settings = $wpdb->get_results("SELECT * FROM `wp_options` WHERE `option_name` LIKE 'idx_plus_settings'"); print "<pre>"; print_r($settings); print "</pre>"; extract($settings); echo "$registrationkey<br>"; // Failed to print the key.. Matte...
by tommytx123
Fri Oct 09, 2015 6:01 pm
Forum: PHP coding => General
Topic: How to load a file 3 directorys back from me..
Replies: 3
Views: 1469

How to load a file 3 directorys back from me..

The file wp-load.php is in the home/ directory (public_html) if my test file is in /public_html/wp-content/plugins/idx-plus/test.php what do i need in the test.php to activate the wp-load.php located in the home directory (public_html) test.php file -------------- include(..../wp-load.php); bottom l...
by tommytx123
Sat Sep 19, 2015 5:05 pm
Forum: PHP coding => General
Topic: How to detect where a function call came from..
Replies: 3
Views: 1481

How to detect where a function call came from..

Is there an easy way to stop the program and indicate where the subroutine was called from.. <?php function writeMsg() { echo "Hello world!"; } writeMsg(); // call the function ?> Bottom line if I halt the program at the function.. how can I display what the call was that called the program.. I real...