MySQL Forums
Forum List  »  Stored Procedures

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

Options: ReplyQuote


Subject
Views
Written By
Posted
566
December 25, 2019 06:44PM
170
December 25, 2019 07:02PM
142
December 26, 2019 05:05PM
160
December 26, 2019 06:53PM
Re: Procedure not working
145
December 27, 2019 01:59AM
153
December 27, 2019 10:13AM
131
December 29, 2019 04:20AM
142
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.