-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
53cd6e0
commit 2a4aea0
Showing
2 changed files
with
15 additions
and
13 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,9 +8,9 @@ | |
$content = ($_POST['content']); | ||
if ($heading && $content) { | ||
$text->insert('data', ['acount_id' => $id, 'heading' => $heading, 'content' => $content]); | ||
}elseif (!$heading){ | ||
} elseif (!$heading) { | ||
echo "Heading is empty"; | ||
}elseif (!$content){ | ||
} elseif (!$content) { | ||
echo "Content is empty"; | ||
} | ||
} | ||
|
@@ -27,7 +27,7 @@ | |
foreach ($search as $row) { | ||
$id = $row['id']; | ||
$acount_id = $row['acount_id']; | ||
header('location:http://localhost/googlekeep_php/text_keep/searched.php ?id='.$acount_id.'&search_id='.$id ); | ||
header('location:http://localhost/googlekeep_php/text_keep/searched.php ?id=' . $acount_id . '&search_id=' . $id); | ||
} | ||
} | ||
|
||
|
@@ -91,8 +91,8 @@ | |
"> | ||
<h1>OR</h1> | ||
</div> | ||
<div class="input-group mb-3" > | ||
<input type="file" id="myfile" name="myfile" class="form-control" aria-label="Default" aria-describedby="inputGroup-sizing-default" > | ||
<div class="input-group mb-3"> | ||
<input type="file" id="myfile" name="my_file" class="form-control" aria-label="Default" aria-describedby="inputGroup-sizing-default"> | ||
</div> | ||
<button name="add">ADD</button> | ||
</form> | ||
|
@@ -126,17 +126,16 @@ | |
margin: 0px 5rem 0px; | ||
border: 2px solid #fff; | ||
border-radius: 1rem; | ||
padding:2rem;" | ||
> | ||
padding:2rem;"> | ||
<span id="spam"><?php echo $row['heading']; ?></span> | ||
<span><?php echo $row['content'] ?></span> | ||
<a class="link-danger link-offset-2 link-underline-opacity-25 link-underline-opacity-100-hover" href='delete.php?delete_id=<?php echo $current_id ?>&id=<?php echo $acount_id ?>' > DELETE </a> | ||
<a id="link_tag" class="link-danger link-offset-2 link-underline-opacity-25 link-underline-opacity-100-hover" href='delete.php?delete_id=<?php echo $current_id ?>&id=<?php echo $acount_id ?>'> DELETE </a> | ||
</div> | ||
<?php | ||
} | ||
?> | ||
</div> | ||
|
||
|
||
<script src='https://cdnjs.cloudflare.com/ajax/libs/jquery/3.1.1/jquery.min.js'></script> | ||
<script src="script.js"></script> | ||
|
@@ -145,5 +144,4 @@ | |
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"></script> | ||
</body> | ||
|
||
</html> | ||
|
||
</html> |
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