PHP Classes

Convert to mysqli

Recommend this page to a friend!

      Auto form  >  All threads  >  Convert to mysqli  >  (Un) Subscribe thread alerts  
Subject:Convert to mysqli
Summary:Convert to mysqli
Messages:7
Author:pixelz
Date:2015-11-14 17:57:58
 

  1. Convert to mysqli   Reply   Report abuse  
Picture of pixelz pixelz - 2015-11-14 17:57:58
Can you convert class from mysql to mysqli.

Thanx for great class.

  2. Re: Convert to mysqli   Reply   Report abuse  
Picture of Arturs Sosins Arturs Sosins - 2015-11-14 18:26:36 - In reply to message 1 from pixelz
Converted to mysqli,
please try the new version ;)

  3. Re: Convert to mysqli   Reply   Report abuse  
Picture of pixelz pixelz - 2015-11-14 18:58:23 - In reply to message 2 from Arturs Sosins
Two errors:

( ! ) Warning: mysqli_query() expects parameter 3 to be long, object given in \auto-form\auto_form.php on line 1074
Call Stack
# Time Memory Function Location
1 0.0008 290320 {main}( ) ..\forma-uredi.php:0
2 0.0206 2030896 auto_form->insert_form( ) ..\forma-uredi.php:178
3 0.0206 2031176 auto_form->generate_form( ) ..\auto_form.php:820
4 0.0206 2032968 auto_form->get_table_info( ) ..\auto_form.php:722
5 0.0206 2033192 auto_form->exec( ) ..\auto_form.php:852
6 0.0206 2033376 mysqli_query ( ) ..\auto_form.php:1074

( ! ) Warning: Invalid argument supplied for foreach() in \auto-form\auto_form.php on line 724
Call Stack
# Time Memory Function Location
1 0.0008 290320 {main}( ) ..\forma-uredi.php:0
2 0.0206 2030896 auto_form->insert_form( ) ..\forma-uredi.php:178
3 0.0206 2031176 auto_form->generate_form( ) ..\auto_form.php:820

  4. Re: Convert to mysqli   Reply   Report abuse  
Picture of Arturs Sosins Arturs Sosins - 2015-11-14 19:08:36 - In reply to message 3 from pixelz
Sorry, only tested debug version and it worked, and I made an oversight without debug.
Fixed it now, try again please :)

  5. Re: Convert to mysqli   Reply   Report abuse  
Picture of pixelz pixelz - 2015-11-14 19:18:32 - In reply to message 4 from Arturs Sosins
This notice is for insert:

( ! ) Notice: Object of class mysqli_result could not be converted to int in \auto-form\auto_form.php on line 854
Call Stack
# Time Memory Function Location
1 0.0008 290288 {main}( ) ..\forma-uredi.php:0
2 0.0218 2028432 auto_form->insert_form( ) ..\forma-uredi.php:177
3 0.0218 2028712 auto_form->generate_form( ) ..\auto_form.php:820
4 0.0218 2030504 auto_form->get_table_info( ) ..\auto_form.php:722


-----------------------------------------------------

This notices aro for update:

( ! ) Notice: Object of class mysqli_result could not be converted to int in \auto-form\auto_form.php on line 1009
Call Stack
# Time Memory Function Location
1 0.0009 290752 {main}( ) ..\forma-uredi.php:0
2 0.0203 2028888 auto_form->update_form( ) ..\forma-uredi.php:180
3 0.0203 2029088 auto_form->generate_form( ) ..\auto_form.php:829
4 0.0203 2030376 auto_form->select( ) ..\auto_form.php:716

( ! ) Notice: Object of class mysqli_result could not be converted to int in \auto-form\auto_form.php on line 854
Call Stack
# Time Memory Function Location
1 0.0009 290752 {main}( ) ..\forma-uredi.php:0
2 0.0203 2028888 auto_form->update_form( ) ..\forma-uredi.php:180
3 0.0203 2029088 auto_form->generate_form( ) ..\auto_form.php:829
4 0.0246 2033000 auto_form->get_table_info( ) ..\auto_form.php:722

  6. Re: Convert to mysqli   Reply   Report abuse  
Picture of Arturs Sosins Arturs Sosins - 2015-11-14 20:59:32 - In reply to message 5 from pixelz
Fixed those warnings too now

  7. Re: Convert to mysqli   Reply   Report abuse  
Picture of pixelz pixelz - 2015-11-14 21:08:42 - In reply to message 6 from Arturs Sosins
Its work perfect now. Thanks.