variable gets a value of 1
Posted by: diabolini (---.static.ip.netia.com.pl)
Date: February 27, 2016 10:12PM

My script ( php ) works on two tables . Approximately 380 records downloaded oo Base to make the array . Sometimes Variables stops the value=1 instead of the values ​​from the table. What's the problem ?

1.mysqli_connect......
2.mysqli SELECT1

3.while()
{
4.records from base1 to table1
}

5. mysqli SELECT2

6.while()
{
7.records from base2 to table2
}

8.function xyz(){ return //array}

9.$qwerty = xyz();


10.$abc=implode( " , " , $qwerty);

11. for()
{
12. if() mysqli INSERT
13. else mysqli UPDATE
}

14.header(" Refresh : 0 "winking smiley


//end

Sometimes VARIABLE $abc assumes the value 1 - Why ? Should take the data from the array.


memory_get_usage(); // 365720
memory_get_peak_usage(true) // 2097152


php.ini
output_buffering = off



Edited 5 time(s). Last edit at 02/28/2016 07:38AM by diabolini.

Options: ReplyQuote
Re: variable gets a value of 1
Posted by: RiggsFolly (Moderator)
Date: February 28, 2016 01:55PM

Hi,

Sorry but this is not a PHP tutorial site. Please try somewhere like StackOverflow

---------------------------------------------------------------------------------------------
(Windows 10 Pro 64bit) (Wampserver 3.3.4 64bit) Aestan Tray Menu 3.2.5.4
<Apache versions MULTIPE> <PHP versions MULTIPLE> <MySQL Versions MULTIPLE>
<MariaDB versions MULTIPLE> <phpMyAdmin versions MULTIPLE> <MySQL Workbench 8.0.23>

Read The Manuals Apache -- MySQL -- PHP -- phpMyAdmin
Get your Apache/MySQL/mariaDB/PHP ADDONs here from the WAMPServer alternate Repo
-X-X-X- Backup your databases regularly Here is How dont regret it later! Yes even when developing -X-X-X-

Options: ReplyQuote
Re: variable gets a value of 1
Posted by: diabolini (---.play-internet.pl)
Date: February 28, 2016 06:08PM

in wampserver 2.5 worked...

Options: ReplyQuote
Re: variable gets a value of 1
Posted by: RiggsFolly (Moderator)
Date: February 28, 2016 06:25PM

I expect in your previous install, you had turned off error reporting, and now you are seeing errors that were there all the time

---------------------------------------------------------------------------------------------
(Windows 10 Pro 64bit) (Wampserver 3.3.4 64bit) Aestan Tray Menu 3.2.5.4
<Apache versions MULTIPE> <PHP versions MULTIPLE> <MySQL Versions MULTIPLE>
<MariaDB versions MULTIPLE> <phpMyAdmin versions MULTIPLE> <MySQL Workbench 8.0.23>

Read The Manuals Apache -- MySQL -- PHP -- phpMyAdmin
Get your Apache/MySQL/mariaDB/PHP ADDONs here from the WAMPServer alternate Repo
-X-X-X- Backup your databases regularly Here is How dont regret it later! Yes even when developing -X-X-X-

Options: ReplyQuote
Re: variable gets a value of 1
Posted by: Otomatic (Moderator)
Date: February 28, 2016 06:36PM

Hi,

- 1 - > in wampserver 2.5 worked...
Please : READ BEFORE YOU ASK A QUESTION

- 2 - > Sometimes Variables stops the value=1 instead of the values ​​from the table.
What are exactly the values "in error" and what is exactly the structure of the field of the table?

- 3 - See errors in mysql.log
Wampmanager Tray Icon -> MySQL -> MySQL log

---------------------------------------------------------------
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons

Options: ReplyQuote


Sorry, only registered users may post in this forum.