PLS-00103: Encountered the symbol “CREATE”

At line 5 there is a / missing. There is a good answer on the differences between ; and / here. Basically, when running a CREATE block via script, you need to use / to let SQLPlus know when the block ends, since a PL/SQL block can contain many instances of ;.

PHP Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP

Solution : Rename your function name emailcomm() to __construct() Explanation: In previous versions of PHP, if PHP cannot find a __construct() function for a given class, it will search for the old-style constructor function, by the name of the class, but now old style constructors are DEPRECATED in PHP 7.0, and will be removed in a future version. You should always use  __construct() in new code. Read php manual

ORA-12560: TNS:protocol adaptor error

o to the windows machine that hosts the Oracle database server Go to Start -> Run -> Services.msc in Windows. Locate OracleService < SID > (here OracleServiceORCL) and click on Start to start the oracle database service (if not already running) Once it is up and running, from the command prompt run the following:tnsping < tnsalias > (tnsalias entry you can … Read more

Setting up foreign keys in phpMyAdmin?

If you want to use phpMyAdmin to set up relations, you have to do 2 things. First of all, you have to define an index on the foreign key column in the referring table (so foo_bar.foo_id, in your case). Then, go to relation view (in the referring table) and select the referred column (so in … Read more

SQL Server FOR EACH Loop

SQL is primarily a set-orientated language – it’s generally a bad idea to use a loop in it. In this case, a similar result could be achieved using a recursive CTE: