# Uncategorized

**URL:** https://www.phphelp.com/c/uncategorized/1.md?page=3

[Latest](https://www.phphelp.com/latest.md) · [Categories](https://www.phphelp.com/categories.md)

**Page:** 4

---

## [PHPmailer creating http error 500](https://www.phphelp.com/t/phpmailer-creating-http-error-500/34349)

<div class="topic-metadata">

**Author:** [@Hotspringsrus](https://www.phphelp.com/u/Hotspringsrus)\
**Replies:** 14\
**Last updated:** [December 9, 2021, 6:53pm UTC](https://www.phphelp.com/t/phpmailer-creating-http-error-500/34349 "2021-12-09T18:53:08Z")

</div>

I have looked through the threads here and think I might need to check my server log for more info. I didn’t see any logs under my php or logs folder for todays date when I installed and started using PHPmailer. I am not…

---

## [Send information from one form to two other forms](https://www.phphelp.com/t/send-information-from-one-form-to-two-other-forms/34307)

<div class="topic-metadata">

**Author:** [@tedi](https://www.phphelp.com/u/tedi)\
**Replies:** 3\
**Last updated:** [December 3, 2021, 5:17am UTC](https://www.phphelp.com/t/send-information-from-one-form-to-two-other-forms/34307 "2021-12-03T05:17:55Z")

</div>

Hello I have a question. How can I send information from one form to two other forms in real time (in my case it is in a restaurant by ordering the food to be sent to the kitchen and the drinks to the bar) In my database…

---

## [Send notification messages from 1 page to another with snackbar](https://www.phphelp.com/t/send-notification-messages-from-1-page-to-another-with-snackbar/34324)

<div class="topic-metadata">

**Author:** [@tedi](https://www.phphelp.com/u/tedi)\
**Replies:** 1\
**Last updated:** [December 1, 2021, 6:03pm UTC](https://www.phphelp.com/t/send-notification-messages-from-1-page-to-another-with-snackbar/34324 "2021-12-01T18:03:40Z")

</div>

Hello i have a question. Is it possible to send notification messages from 1 page to another with snackbar . So I have a page where I have the prepared dishes (the system is for a restaurant) when the chef prepares the …

---

## [Header function](https://www.phphelp.com/t/header-function/34308)

<div class="topic-metadata">

**Author:** [@Hotspringsrus](https://www.phphelp.com/u/Hotspringsrus)\
**Replies:** 2\
**Last updated:** [November 27, 2021, 6:22pm UTC](https://www.phphelp.com/t/header-function/34308 "2021-11-27T18:22:48Z")

</div>

I have moved my site from my local host development server to a shared host. My learning curve as a newbie continues. I have lost all the error handling that my localhost was providing. Is there a way to turn that on? I …

---

## [Retrieve(echo) data](https://www.phphelp.com/t/retrieve-echo-data/34265)

<div class="topic-metadata">

**Author:** [@Mekaboo](https://www.phphelp.com/u/Mekaboo)\
**Replies:** 3\
**Last updated:** [November 15, 2021, 8:02pm UTC](https://www.phphelp.com/t/retrieve-echo-data/34265 "2021-11-15T20:02:30Z")

</div>

Hey :blush: \<?php $comment = filter\_input(INPUT\_GET, 'comment'); if (!empty($comment)){ $host = ""; $dbusername = ""; $dbpassword = ""; $dbname = ""; // Create connection $conn = new mysqli ($host, $dbusername, $dbpassw…

---

## [Uploading image using JQuery AJAX](https://www.phphelp.com/t/uploading-image-using-jquery-ajax/34250)

<div class="topic-metadata">

**Author:** [@fa2020](https://www.phphelp.com/u/fa2020)\
**Replies:** 3\
**Last updated:** [November 11, 2021, 9:23am UTC](https://www.phphelp.com/t/uploading-image-using-jquery-ajax/34250 "2021-11-11T09:23:42Z")

</div>

Hi, I want to upload an image file using JQuery AJAX and send it to php code for further processing including image cropping. I tried this code for Js: \<script type="text/javascript"\> $(document).ready(function() { …

---

## [Checking login status using php and JQuery AJAX](https://www.phphelp.com/t/checking-login-status-using-php-and-jquery-ajax/34213)

<div class="topic-metadata">

**Author:** [@fa2020](https://www.phphelp.com/u/fa2020)\
**Replies:** 3\
**Last updated:** [November 5, 2021, 1:59pm UTC](https://www.phphelp.com/t/checking-login-status-using-php-and-jquery-ajax/34213 "2021-11-05T13:59:42Z")

</div>

Hi, I have a modal log in system: \<!--Login Modal--\> \<div class="modal fade" id="exampleModal2" tabindex="-1" aria-labelledby="exampleModalLabel" aria-hidden="true"\> \<div class="modal-dialog"\> \<div class="moda…

---

## [How to create a comment system with username](https://www.phphelp.com/t/how-to-create-a-comment-system-with-username/34212)

<div class="topic-metadata">

**Author:** [@Mekaboo](https://www.phphelp.com/u/Mekaboo)\
**Replies:** 2\
**Last updated:** [November 5, 2021, 1:05am UTC](https://www.phphelp.com/t/how-to-create-a-comment-system-with-username/34212 "2021-11-05T01:05:32Z")

</div>

Hey :blush: How to create a comment system that attaches to login script so if someone want to give feedback on an image, words, etc they just have to give feedback hit submit and the results long with username show up?…

---

## [Echo issue](https://www.phphelp.com/t/echo-issue/34194)

<div class="topic-metadata">

**Author:** [@Mekaboo](https://www.phphelp.com/u/Mekaboo)\
**Replies:** 1\
**Last updated:** [November 1, 2021, 12:19pm UTC](https://www.phphelp.com/t/echo-issue/34194 "2021-11-01T12:19:32Z")

</div>

Hey :blush: Have 2 issues: How do I correct the image size..both should be equal once uploaded. The image uploads perfectly but username and title doesnt show. Ive placed the ECHO command in my code but it only wor…

---

## [Loop in PHP](https://www.phphelp.com/t/loop-in-php/34186)

<div class="topic-metadata">

**Author:** [@ehrs](https://www.phphelp.com/u/ehrs)\
**Replies:** 1\
**Last updated:** [October 29, 2021, 5:26pm UTC](https://www.phphelp.com/t/loop-in-php/34186 "2021-10-29T17:26:15Z")

</div>

Can some help, i don’t know how to solve this using loop in php. $pay = \[20, 40 , 89, 300, 190, 15\]; $Capital = 1000; I want the loop to achieve this result 1000-20 = 980 980-40 = 940 940-89 = 851 851-300 = 551 5…

---

## [Retreive images from DB/File](https://www.phphelp.com/t/retreive-images-from-db-file/34162)

<div class="topic-metadata">

**Author:** [@Mekaboo](https://www.phphelp.com/u/Mekaboo)\
**Replies:** 7\
**Last updated:** [October 27, 2021, 3:53am UTC](https://www.phphelp.com/t/retreive-images-from-db-file/34162 "2021-10-27T03:53:58Z")

</div>

Hey there :blush: I want to retrieve images that will be uploaded from one file(into DB) and place them into a photo gallery. Here is my code: \<div class="py-5"\> \<?php mysqli\_report(MYSQLI\_REPORT\_ERROR | MYSQLI\_REPOR…

---

## [Creating Like and Comment system for an image gallery website?](https://www.phphelp.com/t/creating-like-and-comment-system-for-an-image-gallery-website/34147)

<div class="topic-metadata">

**Author:** [@fa2020](https://www.phphelp.com/u/fa2020)\
**Replies:** 2\
**Last updated:** [October 22, 2021, 11:53pm UTC](https://www.phphelp.com/t/creating-like-and-comment-system-for-an-image-gallery-website/34147 "2021-10-22T23:53:03Z")

</div>

Hi, I’m going to create Like and Comment system for my image gallery website. I was surfing in pexels.com and saw that when I click on an image, that image is appeared on a lightbox. I want to create such a lightbox and…

---

## [How to make javascript code to run after page redirection?](https://www.phphelp.com/t/how-to-make-javascript-code-to-run-after-page-redirection/34125)

<div class="topic-metadata">

**Author:** [@fa2020](https://www.phphelp.com/u/fa2020)\
**Replies:** 1\
**Last updated:** [October 20, 2021, 1:36pm UTC](https://www.phphelp.com/t/how-to-make-javascript-code-to-run-after-page-redirection/34125 "2021-10-20T13:36:32Z")

</div>

Hi, I use this code to redirect my current page. I want to give an alert to the user after redirection. I use these codes: header("Location: ../../admin/manage"); echo '\<script type="text/javascript"\>fail();' \</script\>'…

---

## [Finding image file name and pass it to another page](https://www.phphelp.com/t/finding-image-file-name-and-pass-it-to-another-page/34110)

<div class="topic-metadata">

**Author:** [@fa2020](https://www.phphelp.com/u/fa2020)\
**Replies:** 10\
**Last updated:** [October 17, 2021, 6:10pm UTC](https://www.phphelp.com/t/finding-image-file-name-and-pass-it-to-another-page/34110 "2021-10-17T18:10:24Z")

</div>

Hi, I have an admin area in my project that only the user who has admin privilege can access this page and edit site’s contents. One of those editing options is file delete option. An admin can see all the uploaded imag…

---

## [How to array images in 5 columns?](https://www.phphelp.com/t/how-to-array-images-in-5-columns/34084)

<div class="topic-metadata">

**Author:** [@fa2020](https://www.phphelp.com/u/fa2020)\
**Replies:** 3\
**Last updated:** [October 16, 2021, 3:50pm UTC](https://www.phphelp.com/t/how-to-array-images-in-5-columns/34084 "2021-10-16T15:50:45Z")

</div>

Hi, I want to use bootstrap to array all my images in 5 columns. \<div class="container"\> \<div class="row"\> \<div class="col"\> \<?php foreach($rows as $myrow){?\> \<img src="\<?php echo $root ?\>/pu…

---

## [Ignore span inside paragraphs](https://www.phphelp.com/t/ignore-span-inside-paragraphs/34088)

<div class="topic-metadata">

**Author:** [@icruso](https://www.phphelp.com/u/icruso)\
**Replies:** 1\
**Last updated:** [October 14, 2021, 4:49am UTC](https://www.phphelp.com/t/ignore-span-inside-paragraphs/34088 "2021-10-14T04:49:25Z")

</div>

Hello! I use a function that add ads after X number of paragraphs. I tried to modify it to ignore paragraphs that have \< .span. \> inside them but it doesnt work and i get an error. add\_filter( 'the\_content', 'add\_ads\_to…

---

## [PHP SESSION is closed when the page is refreshed](https://www.phphelp.com/t/php-session-is-closed-when-the-page-is-refreshed/34069)

<div class="topic-metadata">

**Author:** [@fa2020](https://www.phphelp.com/u/fa2020)\
**Replies:** 5\
**Last updated:** [October 12, 2021, 5:08pm UTC](https://www.phphelp.com/t/php-session-is-closed-when-the-page-is-refreshed/34069 "2021-10-12T17:08:07Z")

</div>

Hi, I have created Signup and Login systems for my gallery website. When a user tries to login into system, their user and password and admin privilege is checked. If it was successful, the username is appeared on top l…

---

## [PHP session gets a value other than what MySQL gives](https://www.phphelp.com/t/php-session-gets-a-value-other-than-what-mysql-gives/34078)

<div class="topic-metadata">

**Author:** [@fa2020](https://www.phphelp.com/u/fa2020)\
**Replies:** 2\
**Last updated:** [October 11, 2021, 11:09pm UTC](https://www.phphelp.com/t/php-session-gets-a-value-other-than-what-mysql-gives/34078 "2021-10-11T23:09:29Z")

</div>

I’m trying to check admin privilege of the logged in user (login.php): $sql2 = "SELECT admin FROM signup WHERE username = '$username' and password = '$password' limit 1"; if ($count == 1) { $\_SESSION\['…

---

## [Handle request if java script is enabled](https://www.phphelp.com/t/handle-request-if-java-script-is-enabled/34047)

<div class="topic-metadata">

**Author:** [@Mohammad](https://www.phphelp.com/u/Mohammad)\
**Replies:** 23\
**Last updated:** [October 8, 2021, 4:45pm UTC](https://www.phphelp.com/t/handle-request-if-java-script-is-enabled/34047 "2021-10-08T16:45:59Z")

</div>

Hi, I want to check the browser of my site visitors, if JavaScript is enabled the browser will be redirected to google\[Dot\]com, if it is disabled browser show “Empty” word I try this code but it does not work ( all requ…

---

## [Xammp mysql Error](https://www.phphelp.com/t/xammp-mysql-error/34072)

<div class="topic-metadata">

**Author:** [@Emine](https://www.phphelp.com/u/Emine)\
**Replies:** 1\
**Last updated:** [October 8, 2021, 3:19pm UTC](https://www.phphelp.com/t/xammp-mysql-error/34072 "2021-10-08T15:19:09Z")

</div>

Hi everuone, I ask dor about xampp. I receive error like that(on pic) and cannot start mysql and connect phpMypadmin. I tried couple things but I could not solve it. Thanks!

---

## [AJAX get variable from another file and use as location for audio](https://www.phphelp.com/t/ajax-get-variable-from-another-file-and-use-as-location-for-audio/34067)

<div class="topic-metadata">

**Author:** [@samoraj](https://www.phphelp.com/u/samoraj)\
**Replies:** 1\
**Last updated:** [October 7, 2021, 4:18pm UTC](https://www.phphelp.com/t/ajax-get-variable-from-another-file-and-use-as-location-for-audio/34067 "2021-10-07T16:18:28Z")

</div>

Hello i use ajax code to open another file and in second file have php where connecting to database and retun value. Can use this value to play audio in first file and all only click one button ? in first file index.php…

---

## [Input if equals doens't return value](https://www.phphelp.com/t/input-if-equals-doenst-return-value/34066)

<div class="topic-metadata">

**Author:** [@Tornike](https://www.phphelp.com/u/Tornike)\
**Replies:** 3\
**Last updated:** [October 7, 2021, 6:51am UTC](https://www.phphelp.com/t/input-if-equals-doenst-return-value/34066 "2021-10-07T06:51:06Z")

</div>

Hi all, I am just starting to learn php. I am doing this simple task. User should enter text. if text is “london” it should redirect to wikipedias page about London. Otherwise it should say “wrong name”. It always give…

---

## [How to copy value of a variable into another variable?](https://www.phphelp.com/t/how-to-copy-value-of-a-variable-into-another-variable/34040)

<div class="topic-metadata">

**Author:** [@fa2020](https://www.phphelp.com/u/fa2020)\
**Replies:** 14\
**Last updated:** [October 6, 2021, 6:37pm UTC](https://www.phphelp.com/t/how-to-copy-value-of-a-variable-into-another-variable/34040 "2021-10-06T18:37:12Z")

</div>

$crop-\>new\_name = $this-\>RandomStringGenerator() . "." . $crop-\>ext; $this-\>new\_name2 = $crop-\>new\_name; In the code above, the value of new\_name2 is set by running the RandomStringGenerator() function b…

---

## [Fatal error when creating a class](https://www.phphelp.com/t/fatal-error-when-creating-a-class/34029)

<div class="topic-metadata">

**Author:** [@fa2020](https://www.phphelp.com/u/fa2020)\
**Replies:** 2\
**Last updated:** [October 3, 2021, 2:14am UTC](https://www.phphelp.com/t/fatal-error-when-creating-a-class/34029 "2021-10-03T02:14:36Z")

</div>

Hi, I created this class to save sign-up data into database (signup.php): \<?php class Signup { public function RegisterNewUser() { if (isset($\_POST\['submit\_form'\])) { $this-\>RegisterTo…

---

## [How to make a thumbnail image a link?](https://www.phphelp.com/t/how-to-make-a-thumbnail-image-a-link/34025)

<div class="topic-metadata">

**Author:** [@fa2020](https://www.phphelp.com/u/fa2020)\
**Replies:** 2\
**Last updated:** [October 1, 2021, 1:21pm UTC](https://www.phphelp.com/t/how-to-make-a-thumbnail-image-a-link/34025 "2021-10-01T13:21:44Z")

</div>

Hi, I’m using this code in my image gallery project: \<div class="grid-portfolio" id="portfolio"\> \<div class="container"\> \<div class="row"\> \<?php while ($row = $result-\>fetch\_assoc()) { ?\> …

---

## [How i can protect my php script](https://www.phphelp.com/t/how-i-can-protect-my-php-script/34019)

<div class="topic-metadata">

**Author:** [@samoraj](https://www.phphelp.com/u/samoraj)\
**Replies:** 1\
**Last updated:** [September 30, 2021, 9:35am UTC](https://www.phphelp.com/t/how-i-can-protect-my-php-script/34019 "2021-09-30T09:35:23Z")

</div>

Hello, how i can hide my php script so that it cannot be stolen from user who will use it ? I have database and hosting. Can something be created ?

---

## [Value transfer like variable to another function](https://www.phphelp.com/t/value-transfer-like-variable-to-another-function/34009)

<div class="topic-metadata">

**Author:** [@samoraj](https://www.phphelp.com/u/samoraj)\
**Replies:** 6\
**Last updated:** [September 28, 2021, 10:02am UTC](https://www.phphelp.com/t/value-transfer-like-variable-to-another-function/34009 "2021-09-28T10:02:39Z")

</div>

Hello, it’s posible to transfer value on button like variable in function and call this function ? \<div style= "height: 400px; width: 80%; background-color: powderblue; overflow:scroll;"\> \<?php include 'confi…

---

## [Remove user id from url](https://www.phphelp.com/t/remove-user-id-from-url/33965)

<div class="topic-metadata">

**Author:** [@webchambers](https://www.phphelp.com/u/webchambers)\
**Replies:** 5\
**Last updated:** [September 27, 2021, 5:54pm UTC](https://www.phphelp.com/t/remove-user-id-from-url/33965 "2021-09-27T17:54:47Z")

</div>

Hi there, I have a website that has a user profile page. At the moment the url for this page is https://www.mywebsite.co.uk/myfolder/user.php?id=1 how do i remove the php page so it just shows https://www.mywebsite.c…

---

## [Javascript control another javascript](https://www.phphelp.com/t/javascript-control-another-javascript/34001)

<div class="topic-metadata">

**Author:** [@samoraj](https://www.phphelp.com/u/samoraj)\
**Replies:** 1\
**Last updated:** [September 24, 2021, 1:38am UTC](https://www.phphelp.com/t/javascript-control-another-javascript/34001 "2021-09-24T01:38:37Z")

</div>

Hello, can stop javascript with another javascript ? \<script type="text/javascript"\> function test\<?php echo $row\["id"\] ?\>(){ var sound = new Audio("\<?php echo $play ?\>"); sound.onended = function () { …

---

## [Loan Calculator](https://www.phphelp.com/t/loan-calculator/33988)

<div class="topic-metadata">

**Author:** [@ron1011](https://www.phphelp.com/u/ron1011)\
**Replies:** 3\
**Last updated:** [September 22, 2021, 6:44pm UTC](https://www.phphelp.com/t/loan-calculator/33988 "2021-09-22T18:44:16Z")

</div>

Can anyone can create a backend for this front end? thank you

[Previous page](https://www.phphelp.com/c/uncategorized/1.md?page=2)

[Next page](https://www.phphelp.com/c/uncategorized/1.md?page=4)
