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
1262
December 25, 2019 06:44PM
520
December 25, 2019 07:02PM
485
December 26, 2019 05:05PM
442
December 26, 2019 06:53PM
Re: Procedure not working
490
December 27, 2019 01:59AM
469
December 27, 2019 10:13AM
414
December 29, 2019 04:20AM
605
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.