Re: Procedure not working
Posted by:
tyuyu yuty
Date: December 27, 2019 01:59AM
I use this code in PHP in order to create the table and fill it:
$sql=file_get_contents( plugin_dir_url(__FILE__) . 'sql/wp_codis_postals.sql', FILE_USE_INCLUDE_PATH);
dbDelta( $sql );
No error is raised. The only thing is that no record is created inside the table.
If I make an echo of code that is served through file_get_contents and I copy it to Mysql when I execute the code the records are being created.
I am thinking that maybe this post woulb be a php problem.
Thank you very much.
Francesc
Subject
Views
Written By
Posted
1221
December 25, 2019 06:44PM
503
December 25, 2019 07:02PM
467
December 26, 2019 05:05PM
426
December 26, 2019 06:53PM
Re: Procedure not working
478
December 27, 2019 01:59AM
459
December 27, 2019 10:13AM
401
December 29, 2019 04:20AM
596
December 29, 2019 12:06PM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.