riyan
Dear sir ASSALAMO ALAIKUM-
 
Database connect karte waqt connection nahi horaha he -Fatal error show horaha he-
This is the coding-
 
<?php
$con=mysql_connect("localhost","root","")or die("Connection Fails");
echo "connection established";
 
mysql_select_db("college") or die("database error");
echo "database selection done";
?>
 
 
OUTPUT is that:-
 
Fatal error: Uncaught Error: Call to undefined function mysql_connect() in D:\xampp\htdocs\database.php:2 Stack trace: #0 {main} thrown in D:\xampp\htdocs\database.php on line 2
Quote 0 0
RIYAN MEHMOOD
ASSALAM-O-ALAIKUM SIR

Sir DataBase ka bata den, coding correct he, lekin phir bhi connect nahi horaha he, Fatal And Parse errors bar bar show horahe hen.
Kindly guide me- is se pehle itna error kabhi nahi aaya he XAMPP me.
Quote 0 0
Unregistered
use mysqli_connect() method as far my knowledge concern mysql_connect() method removed or not supported in latest version of php 
Quote 0 0
 
Urdu IT Accademy � 2013 | License Agreement