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 | |
$msg = ''; | |
if ($_SERVER["REQUEST_METHOD"] == "POST") { | |
$permited = array('jpg', 'jpeg', 'png', 'gif', 'pdf', 'doc', 'docx', 'xlxs', 'xls'); | |
$file_name = $_FILES['image']['name']; | |
$file_size = $_FILES['image']['size']; | |
$file_temp = $_FILES['image']['tmp_name']; | |
$div = explode('.', $file_name); | |
echo $div[1]; | |
$file_ext = strtolower(end($div)); |
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
<!DOCTYPE HTML> | |
<html lang="en-US"> | |
<head> | |
<meta charset="UTF-8"> | |
<!--bootstrap css--> | |
<link href="assets/css/bootstrap.min.css" rel="stylesheet"> | |
<link href="assets/css/bootstrap.min.css.map" rel="stylesheet"> | |
<!--font awesome css--> | |
<link href="assets/css/font-awesome.css" rel="stylesheet"> | |
<!--jquery ui css--> |
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
<!DOCTYPE HTML> | |
<html lang="en-US"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>PHP Online Course For Learning</title> | |
<style type="text/css"> | |
.main{ | |
width: 75%; | |
margin: 10px auto; |
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 | |
//using mysqli_connect. it is about dead nowadays | |
$link = mysql_connect("localhost", "root", ""); | |
mysql_select_db("test", $link); | |
$result = mysql_query("SELECT * FROM user", $link); | |
//always try to use if condition for skipping errors | |
if($result) | |
{ | |
$num_rows = mysql_num_rows($result); |
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
package calculation; | |
public class Cal { | |
private int num1 = 0; | |
private int num2 = 0; | |
public Cal(int a, int b) { | |
this.num1 = a; | |
this.num2 = b; |
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 | |
$con = new mysqli("localhost", "root", "", "test"); | |
$sql = "select * from userdata"; //userdata is a table | |
$stmt = $con->query($sql); | |
if($stmt){ | |
if($stmt->num_rows>0){ | |
$row = $stmt->fetch_assoc();?> | |
<a href="something.php?userid=<?php echo $row['userid']; ?>">Go To Something Page</a> | |
<?php } | |
} |
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 | |
//Code Written By Ariful Islam | |
//[email protected] | |
//www.phpdark.com | |
//https://www.youtube.com/channel/UCMCe6bUMkxBP2dpsN0eSJ4g | |
?> | |
<!DOCTYPE html> | |
<html lang="en"> | |
<head> |
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
Follow this query and correct your query | |
"SELECT * FROM question WHERE question_number = '$number'"; |
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
wrong code | |
<?php while($row= $choice ->fetch_assoc()); ?> | |
<li><input name="choice" type="radio" value="<?php echo $row['id'];?>" /> <? php echo $row['text']; ?></li> | |
<?php endwhile;? > | |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Document</title> | |
</head> | |
<body> | |
<div class="form-group col-sm-3 "> |
OlderNewer