Showing posts with label MySQL. Show all posts
Showing posts with label MySQL. Show all posts

MCA course - Scope of MCA and Job Opportunities for MCA students

Many students approached us to write about the MCA course scope and career opportunities for MCA students.

What is MCA?

MCA is Post graduation course which includes software/website development subjects. MCA course includes both theoretical and practical knowledge about almost all the programming languages like, c, c++, ASP, ASP.NET, PHP, etc and the Database knowledge like RDBMS, MySQL, MS-Access, Oracle. Management and soft skills development subjects also part of the MCA course.

MCA course prepares the candidate to enter into the IT industry.

Syllabus of MCA Course can be different according to universities.

To get the admission for the MCA course main eligibility is "graduate". And the mandatory thing is MCA CET. If the candidate wants to take admission for MCA then he must be graduated and better score in MCA CET.

Job Opportunities for MCA Student:

If you passed out with good score in MCA course then you need to find out the right job which suits for you.

If you love to design a web then you should start to find a job in website design. To enter into a website design you must have the knowledge of HTML, CSS, Photoshop, Javascript, etc.

If you love to work upon database operations like writing optimized queries, SQL procedures, Triggers, Joins then you may interested in joining DBA position in IT company.

Likewise various job opportunities are available in market for skilled candidate.

To get a job first and most important thing is "your skill".

If you are good at PHP server side Programming Language then you may go for PHP developer position. There are various job opportunities for PHP developers in IT industry. Most of the companies are using PHP for their projects.

To get a job as a PHP Developer you must read this post >>

How to Prepare for interview of PHP developer?



Software testing is also best career opportunities after MCA.
Animation is most valued career to enter into after MCA.

Many many jobs are available after MCA, just important thing is your interest and skills.

We at Technology Park posts Job opportunities here on this blog, so please visit this blog daily for Job Openings.



Best Luck.

If you have anything to share with us then please share your thoughts in comments. Thanks!

Database connection using PHP MySqli

For PHP freshers, one important thing is mysql_* functions are deprecated. Instead of mysql_* functions now we use mysqli_* functions.

PHP mysqli_connect() Function is used for connection to mysql database.




Example
Open a new connection to the MySQL server:

<?php
$con = mysqli_connect("localhost","my_user","my_password","my_db");

// Check connection
if (mysqli_connect_errno())
  {
  echo "Failed to connect to MySQL: " . mysqli_connect_error();
  }
?>


If we are using wamp or xamp on localhost,
my_user = root

my_password = "" (blank/empty)
my_db = your database name


This function returns an object representing the connection to the MySQL server, the returned connection object is used for executing mysql queries.


Insert Data Into MySQL Using MySQLi:
The INSERT INTO statement is used to add new records to a MySQL table:

INSERT INTO table_name (column1, column2, column3,...)
VALUES (value1, value2, value3,...)

Example:
The following examples add a new record to the "MyGuests" table:

<?php
$servername = "localhost";
$username = "username";
$password = "password";
$dbname = "myDB";

// Create connection
$conn = mysqli_connect($servername, $username, $password, $dbname);
// Check connection
if (!$conn) {
    die("Connection failed: " . mysqli_connect_error());
}

$sql = "INSERT INTO MyGuests (firstname, lastname, email)
VALUES ('John', 'Doe', 'john@example.com')";

if (mysqli_query($conn, $sql)) {
    echo "New record created successfully";
} else {
    echo "Error: " . $sql . "<br>" . mysqli_error($conn);
}

mysqli_close($conn);
?>


In this way, we just understood the concept and basics of mysqli connection.



Import Data from excel to MySQL

If you want to Import data to MySQL table from excel sheet, then follow the following instructions.

Example:

-Your excel sheet as:

rollno name marks
1 vanesh  78
2 ganesh  88
3 ramlal  70
4 ramesh  68


-Create mysql table student, contaiing follwing colums:

rollno
name
marks

-Save table. now your table created.
-Go to excel sheet, remove first row. i.e.
rollno name marks

-and save excel sheet as .csv file
 (make sure your file is saved as .csv extension for example student.csv)

-Now go to your PhpMyadmin
-Select your table
-Click on Import
-Choose File
-Click on GO Button.

--Your excel data is now imported successfully.

-Check it by clicking on Browse.

I think, it may helps you.

Expecting your feedback. 

(Article Submitted By --Vanesh Mali, SOFTWARE ENGINEER @Pune)



The mysql extension is deprecated

After a long discussion inside the PHP developers team they decided to mark the old mysql_* functions deprecated in PHP 5.5.


Currently mostly many MySQL connections in PHP use this construct:
$link = mysql_connect('localhost', 'user', 'password');
mysql_select_db('dbname', $link);

Update:

$link = mysqli_connect('localhost', 'user', 'password', 'dbname');



// Old
mysql_query('CREATE TEMPORARY TABLE `table`', $link);
// New
mysqli_query($link, 'CREATE TEMPORARY TABLE `table`');



In older Versions mysql still working....!!!
so for users of old versions of php just stop these erros as:
error_reporting(E_ALL ^ E_DEPRECATED);
(this code will be at the top).