Skip to content

Commit

Permalink
bug fixxed
Browse files Browse the repository at this point in the history
  • Loading branch information
RahulK4102 committed Oct 7, 2023
1 parent 53cd6e0 commit 2a4aea0
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 13 deletions.
20 changes: 9 additions & 11 deletions text_keep/Text_keep.php
Original file line number Diff line number Diff line change
Expand Up @@ -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";
}
}
Expand All @@ -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);
}
}

Expand Down Expand Up @@ -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>
Expand Down Expand Up @@ -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>
Expand All @@ -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>
8 changes: 6 additions & 2 deletions text_keep/text.css
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,12 @@ body {
#spam {
display: block;
color: black;
font-size: 23px;
font-size: 30px;
}

span {
color: white;
font-size: 1.5rem;
}

.abc {
Expand Down Expand Up @@ -200,6 +201,9 @@ span {
left: 0px;
top: 10px;
}
a{
#link_tag{
color: red;
position: absolute;
right: 7rem;
font-size: 1.5rem;
}

0 comments on commit 2a4aea0

Please sign in to comment.