Missing expression. (near "ON" at position 25)
MYSQL
SET FOREIGN_KEY_CHECKS = ON;
Missing expression. (near "ON" at position 25)
MYSQL
SET FOREIGN_KEY_CHECKS = ON;
Add this line in settings.php
$config['system.image']['toolkit'] = 'gd';
uncomment this line(for showing error log )
$config['system.logging']['error_level'] = 'verbose';
Customize below code
$databases['default']['default'] = array (
'database' => 'rni_web', //write data base that is blank, for new installation
'username' => 'root',
'password' => '',
'prefix' => '',
'host' => 'localhost',
'port' => '3307',
'namespace' => 'Drupal\\mysql\\Driver\\Database\\mysql',
'driver' => 'mysql',
'autoload' => 'core/modules/mysql/src/Driver/Database/mysql/',
);
1) write data base that is blank, for new installation ( 'database' => 'rni_web', )
2) after next , you will get errors of gd than see below link
https://kapooryash.blogspot.com/2026/04/error-while-starting-my-sql-or-appache.html
3) if drupal new install than use it with that database, if website already modified or given by some other person than change database name with backup database(replace ( 'database' => 'rni_web', ) with other database)
https://webolute.com/blog/programming/this-may-be-due-to-a-blocked-port-missing-dependencies/
and for My sql, use below steps
Open the XAMPP Control Panel and click Config next to MySQL, then select my.ini.
Find the lines port=3306 (usually in two places) and change them to port=3307.
next step
If going to localhost:8000 get error than change the config.inc.php, enter the password in string $cfg['Servers'][$i]['password'] = 'root';
and change
$cfg['Servers'][$i]['controluser'] = 'pma'; to $cfg['Servers'][$i]['controluser'] = 'root';
$cfg['Servers'][$i]['controlpass'] = '';$cfg['Servers'][$i]['controluser'] = 'root';
Session::put('APPLICANT_PHONE', $applicant_phone);
$applicant_phone = $request->session()->get('APPLICANT_PHONE');
Session::put('otp_session', $otp);
<?php
$s=mysql_query("SELECT * FROM bus_detail where source_point='$_SESSION[source_point]' && destination_point='$_SESSION[destination]'");
$counter = 0;
while($row=mysql_fetch_array($s))
{
?>
<tr>
<td><?php echo ++$counter; ?></td>
<td><?php echo $row['bus_name'];?> </td>
<td><?php echo $row['bus_no'];?></td>
</tr>
<?php }?>
reference:- https://stackoverflow.com/questions/20322869/how-to-create-serial-number