This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function checkPalindrome(str) { | |
let tempStr = str; | |
let j = 0; | |
for (let i = tempStr.length - 1; i >= 0; i--, j++) { | |
if (tempStr[i] !== str[j]) { | |
return false; | |
} | |
} | |
return true; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$servername = "localhost"; | |
$username = "root"; | |
$password = ""; | |
$dbname = "students"; | |
$table_name = 'student_info'; | |
$inserted = false; | |
$something_wrong = false; | |
$id = $_GET['id']; | |
$rows = null; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$servername = "localhost"; | |
$username = "root"; | |
$password = ""; | |
$dbname = "students"; | |
$table_name = 'student_info'; | |
$inserted = false; | |
$something_wrong = false; | |
$id = $_GET['id']; | |
$rows = null; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$servername = "localhost"; | |
$username = "root"; | |
$password = ""; | |
$dbname = "students"; | |
$table_name = 'student_info'; | |
$inserted = false; | |
$something_wrong = false; | |
// Create connection | |
$conn = mysqli_connect($servername, $username, $password, $dbname); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$servername = "localhost"; | |
$username = "root"; | |
$password = ""; | |
$dbname = "students"; | |
$table_name = 'student_info'; | |
// Create connection | |
$conn = mysqli_connect($servername, $username, $password, $dbname); | |
// Check connection | |
if (!$conn) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class KitchenRenovationCalculator { | |
// ******************************************************************** | |
// ***** For demo purposes here the price and factor are hardcoded ***** | |
// ***** Once complete the functions SetFactor and setPrices will add all of those dynamically from your end ***** | |
// ******************************************************************** | |
setFactor(factors) { } | |
setPrices(prices) { } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script context="module" lang="ts"> | |
/** | |
* @type {import('@sveltejs/kit').Load} | |
*/ | |
const posts = import.meta.glob('./contents/*.svx') | |
let body = [] | |
for (const path in posts) { | |
body.push(posts[path]().then(({metadata}) => metadata)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class Crud { | |
public $person = []; | |
function create($array){ | |
array_push($this->person,$array); | |
} | |
function read($id){ | |
$index = $this->searchIndex($id); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class Crud { | |
public $person = []; | |
function create($name){ | |
array_push($this->person, $name); | |
} | |
function read($id){ | |
echo "index number: {$id} {$this->person[$id]}"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function reverseCase($str) { | |
print strtolower($str) ^ strtoupper($str) ^ $str; | |
} | |
reverseCase('hello Bangladesh'); |
NewerOlder