# Uncategorized

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

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

**Page:** 5

---

## [Make text a link in php inside div](https://www.phphelp.com/t/make-text-a-link-in-php-inside-div/33971)

<div class="topic-metadata">

**Author:** [@DGTAL](https://www.phphelp.com/u/DGTAL)\
**Replies:** 17\
**Last updated:** [September 21, 2021, 5:29pm UTC](https://www.phphelp.com/t/make-text-a-link-in-php-inside-div/33971 "2021-09-21T17:29:13Z")

</div>

Hi there :slight\_smile: I need some help with something that most would probably find very easy, but for me, it’s hard, lol. I am using a script and trying to do some customization. For example, I want to make this text…

---

## [Making a routing system](https://www.phphelp.com/t/making-a-routing-system/33976)

<div class="topic-metadata">

**Author:** [@fa2020](https://www.phphelp.com/u/fa2020)\
**Replies:** 3\
**Last updated:** [September 21, 2021, 5:36am UTC](https://www.phphelp.com/t/making-a-routing-system/33976 "2021-09-21T05:36:24Z")

</div>

Hi, I wrote this code for routing: \<?php class APP { protected $controller = "home"; protected $method = "index"; protected $params = \[\]; public function Run() { $url = $this-\>SplitURL(); …

---

## [Using same mysql connection for multiple times](https://www.phphelp.com/t/using-same-mysql-connection-for-multiple-times/33963)

<div class="topic-metadata">

**Author:** [@fa2020](https://www.phphelp.com/u/fa2020)\
**Replies:** 3\
**Last updated:** [September 17, 2021, 4:46pm UTC](https://www.phphelp.com/t/using-same-mysql-connection-for-multiple-times/33963 "2021-09-17T16:46:22Z")

</div>

Hi, Consider that I have these codes for connection: In database.php: \<?php $server\_name = 'localhost'; $user\_name = 'root'; $password = ''; $db\_name = 'gallery'; $image\_table\_name = 'images'; $information\_table…

---

## [Loading images into website using MySQL](https://www.phphelp.com/t/loading-images-into-website-using-mysql/33956)

<div class="topic-metadata">

**Author:** [@fa2020](https://www.phphelp.com/u/fa2020)\
**Replies:** 12\
**Last updated:** [September 17, 2021, 9:35am UTC](https://www.phphelp.com/t/loading-images-into-website-using-mysql/33956 "2021-09-17T09:35:18Z")

</div>

Hi, I used these codes to load images into the page but it shows nothing, no errors. \<?php require "../app/core/database.php"; $sql = "SELECT \* FROM images"; $result = $connection-\>query($sql); ?\> \<div class="full-scre…

---

## [Error when accessing MySQL table columns](https://www.phphelp.com/t/error-when-accessing-mysql-table-columns/33949)

<div class="topic-metadata">

**Author:** [@fa2020](https://www.phphelp.com/u/fa2020)\
**Replies:** 3\
**Last updated:** [September 15, 2021, 6:45pm UTC](https://www.phphelp.com/t/error-when-accessing-mysql-table-columns/33949 "2021-09-15T18:45:14Z")

</div>

Hi, MySQL has a table called images. This table has 4 columns named as ID, title, subtitle, image. I want to connect to this table as print all information in the title column. I tried this: \<?php require "../app/cor…

---

## [Urgent!](https://www.phphelp.com/t/urgent/33931)

<div class="topic-metadata">

**Author:** [@Emine](https://www.phphelp.com/u/Emine)\
**Replies:** 5\
**Last updated:** [September 10, 2021, 1:37pm UTC](https://www.phphelp.com/t/urgent/33931 "2021-09-10T13:37:13Z")

</div>

Hi, I updated my computer, but I forgot to backup the xammp files. How can I recover previous XAMPP installation files? Thanks

---

## [How to run PHP websocket on OVH cloud-web-1 host,](https://www.phphelp.com/t/how-to-run-php-websocket-on-ovh-cloud-web-1-host/33885)

<div class="topic-metadata">

**Author:** [@fanodev](https://www.phphelp.com/u/fanodev)\
**Replies:** 5\
**Last updated:** [September 2, 2021, 1:43pm UTC](https://www.phphelp.com/t/how-to-run-php-websocket-on-ovh-cloud-web-1-host/33885 "2021-09-02T13:43:16Z")

</div>

I have a PHP application which uses websockets, When I run it on my local, it works fine, but when I deploy it on my web host, it doesn’t anymore. I am on cloud-web-1 of OVH. I saw that this plan supports websockets. Whe…

---

## [Can you do whatever ASP.NET does using PHP?](https://www.phphelp.com/t/can-you-do-whatever-asp-net-does-using-php/33899)

<div class="topic-metadata">

**Author:** [@fa2020](https://www.phphelp.com/u/fa2020)\
**Replies:** 1\
**Last updated:** [September 3, 2021, 5:22pm UTC](https://www.phphelp.com/t/can-you-do-whatever-asp-net-does-using-php/33899 "2021-09-03T17:22:17Z")

</div>

Hi, DevExpress offers some tools for ASP.NET called a spreadsheet. You can see its demo in the following link: https://demos.devexpress.com/ASPxSpreadSheetDemos/Features/Formulas.aspx Can PHP make such a spreadsheet a…

---

## [Accessing host MS COM system from Laravel service (hosted by Apache)](https://www.phphelp.com/t/accessing-host-ms-com-system-from-laravel-service-hosted-by-apache/33855)

<div class="topic-metadata">

**Author:** [@karlkras](https://www.phphelp.com/u/karlkras)\
**Replies:** 6\
**Last updated:** [September 4, 2021, 1:26pm UTC](https://www.phphelp.com/t/accessing-host-ms-com-system-from-laravel-service-hosted-by-apache/33855 "2021-09-04T13:26:27Z")

</div>

I have a mystery on my hands and hoping someone may have some experience with determining what the problem might be here. I have a web service build with Laravel (actually Lumen) which has an endpoint that takes, among …

---

## [PHP MySql after insert notification alert](https://www.phphelp.com/t/php-mysql-after-insert-notification-alert/33878)

<div class="topic-metadata">

**Author:** [@jankumar1980](https://www.phphelp.com/u/jankumar1980)\
**Replies:** 3\
**Last updated:** [September 1, 2021, 11:36pm UTC](https://www.phphelp.com/t/php-mysql-after-insert-notification-alert/33878 "2021-09-01T23:36:39Z")

</div>

i want alert PHP MySql after insert notification alert in one page

---

## [Display image from FTP server in HTML IMG tag](https://www.phphelp.com/t/display-image-from-ftp-server-in-html-img-tag/33876)

<div class="topic-metadata">

**Author:** [@mini\_me](https://www.phphelp.com/u/mini_me)\
**Replies:** 4\
**Last updated:** [September 1, 2021, 3:56am UTC](https://www.phphelp.com/t/display-image-from-ftp-server-in-html-img-tag/33876 "2021-09-01T03:56:06Z")

</div>

I have full access to the image file on the server from the client in FileZilla. Trying to access this image from HTML IMG generated from PHP on the client. Trying to play by the book and failed. Any ideas are welcome. e…

---

## [Image convert](https://www.phphelp.com/t/image-convert/33847)

<div class="topic-metadata">

**Author:** [@webchambers](https://www.phphelp.com/u/webchambers)\
**Replies:** 6\
**Last updated:** [August 26, 2021, 8:10pm UTC](https://www.phphelp.com/t/image-convert/33847 "2021-08-26T20:10:53Z")

</div>

Is it possible to convert all image uploads to database to png format ?

---

## [Saving data with PHP](https://www.phphelp.com/t/saving-data-with-php/33792)

<div class="topic-metadata">

**Author:** [@thehotei](https://www.phphelp.com/u/thehotei)\
**Replies:** 4\
**Last updated:** [August 20, 2021, 9:30am UTC](https://www.phphelp.com/t/saving-data-with-php/33792 "2021-08-20T09:30:02Z")

</div>

Code below is saving the data in logfile.htm. But only the IP is written in de file. Country I don’t get is. What is wrong? \<?php function logIP() { $ipLog="logfile.htm"; // Your logfiles name here (.txt or .html…

---

## [I want a similar command as is\_dir for FTP server](https://www.phphelp.com/t/i-want-a-similar-command-as-is-dir-for-ftp-server/33825)

<div class="topic-metadata">

**Author:** [@mini\_me](https://www.phphelp.com/u/mini_me)\
**Replies:** 4\
**Last updated:** [August 16, 2021, 2:51pm UTC](https://www.phphelp.com/t/i-want-a-similar-command-as-is-dir-for-ftp-server/33825 "2021-08-16T14:51:08Z")

</div>

I am trying to find a function for FTP server that will resemble is\_dir in PHP. It looks like ftp\_nlist may do the job but it looks clumsy to me. Maybe there is another way to the result? I don’t want to use ftp\_nlist. …

---

## [Posting Data to a Database2](https://www.phphelp.com/t/posting-data-to-a-database2/33780)

<div class="topic-metadata">

**Author:** [@Takue0060](https://www.phphelp.com/u/Takue0060)\
**Replies:** 3\
**Last updated:** [August 11, 2021, 1:28pm UTC](https://www.phphelp.com/t/posting-data-to-a-database2/33780 "2021-08-11T13:28:38Z")

</div>

\<?php session\_start(); include("connection.php"); include("functions.php"); if($\_SERVER\['REQUEST\_Method'\] == "POST") { $full\_name = $\_POST\['full\_name'\]; $employee\_id = $\_POST\['employee\_id'\]; $branch\_id = $\_P…

---

## [Two code difference](https://www.phphelp.com/t/two-code-difference/33753)

<div class="topic-metadata">

**Author:** [@Emine](https://www.phphelp.com/u/Emine)\
**Replies:** 4\
**Last updated:** [July 26, 2021, 8:50pm UTC](https://www.phphelp.com/t/two-code-difference/33753 "2021-07-26T20:50:57Z")

</div>

\<?php require\_once(“baglan.php”); function Filtrele($Deger){ $Bir = trim($Deger); $Iki = strip\_tags($Bir); $Uc = htmlspecialchars($Iki, ENT\_QUOTES); $Sonuc = $Uc; return $Sonuc; } $GelenUstMenuSecimi = Filtrel…

---

## [PHP Code ..Needing all the help i can get](https://www.phphelp.com/t/php-code-needing-all-the-help-i-can-get/33730)

<div class="topic-metadata">

**Author:** [@simplykd](https://www.phphelp.com/u/simplykd)\
**Replies:** 5\
**Last updated:** [July 23, 2021, 9:26pm UTC](https://www.phphelp.com/t/php-code-needing-all-the-help-i-can-get/33730 "2021-07-23T21:26:00Z")

</div>

Hi, I am needing help with a dice code I am stuck on this assignment and cant seem to get past it… I need to (1) Create two variables, $roll and $sum, both of which have a value of 0 (2) Create a while loop that will r…

---

## [PHP: Help](https://www.phphelp.com/t/php-help/33728)

<div class="topic-metadata">

**Author:** [@dappercomment](https://www.phphelp.com/u/dappercomment)\
**Replies:** 2\
**Last updated:** [July 23, 2021, 2:19am UTC](https://www.phphelp.com/t/php-help/33728 "2021-07-23T02:19:51Z")

</div>

Random Quote Generator - \<a id=“tweet” href="“https://twitter.com/intent/tweet”" title=“Tweet this!”\> \<div class= "new-quote-button" \> \<button class="button" id="new-quote"\> New Quote \</div\> …

---

## [Need Help in Getting Webpage Content](https://www.phphelp.com/t/need-help-in-getting-webpage-content/33723)

<div class="topic-metadata">

**Author:** [@azharr\_ansariii](https://www.phphelp.com/u/azharr_ansariii)\
**Replies:** 1\
**Last updated:** [July 17, 2021, 4:03pm UTC](https://www.phphelp.com/t/need-help-in-getting-webpage-content/33723 "2021-07-17T16:03:19Z")

</div>

hello, I’m trying to get INR currency USD rates from a Webpage. my Code is \<?php $url = 'https://api.exchangerate-api.com/v4/latest/USD'; $lines\_array=file($url); $lines\_string=implode('',$lines\_array); echo $lines\_st…

---

## [Contact form 7](https://www.phphelp.com/t/contact-form-7/33717)

<div class="topic-metadata">

**Author:** [@asad.ermo](https://www.phphelp.com/u/asad.ermo)\
**Replies:** 1\
**Last updated:** [July 16, 2021, 12:37pm UTC](https://www.phphelp.com/t/contact-form-7/33717 "2021-07-16T12:37:14Z")

</div>

Hello, I created Contact form 7 in my wordpress website , it is possible to show Contact form 7 as popups in every page of my website Regards

---

## [ERROR: "Invalid catalog name: 1046 No database selected in"](https://www.phphelp.com/t/error-invalid-catalog-name-1046-no-database-selected-in/33655)

<div class="topic-metadata">

**Author:** [@Emine](https://www.phphelp.com/u/Emine)\
**Replies:** 4\
**Last updated:** [June 27, 2021, 9:14pm UTC](https://www.phphelp.com/t/error-invalid-catalog-name-1046-no-database-selected-in/33655 "2021-06-27T21:14:50Z")

</div>

Hi everyone, I have the error Fatal error : Uncaught PDOException: SQLSTATE\[3D000\]: Invalid catalog name: 1046 No database selected in /opt/lampp/htdocs/yonetimpaneli\_phptr/class/VT.php:34 Stack trace: #0 /opt/lampp/…

---

## [Unable to sum certain values ](https://www.phphelp.com/t/unable-to-sum-certain-values/33648)

<div class="topic-metadata">

**Author:** [@tedi](https://www.phphelp.com/u/tedi)\
**Replies:** 35\
**Last updated:** [June 27, 2021, 7:58pm UTC](https://www.phphelp.com/t/unable-to-sum-certain-values/33648 "2021-06-27T19:58:44Z")

</div>

so this is the form there is the field Total and i want when i push the button NEXT it must show me in the textbox the combined sum of all Total field elseif (isset($\_POST\['buton'\])) { $sql="SELECT SUM(…

---

## [Have a problem to search between date and calculate some numbers](https://www.phphelp.com/t/have-a-problem-to-search-between-date-and-calculate-some-numbers/33639)

<div class="topic-metadata">

**Author:** [@tedi](https://www.phphelp.com/u/tedi)\
**Replies:** 29\
**Last updated:** [June 23, 2021, 4:04pm UTC](https://www.phphelp.com/t/have-a-problem-to-search-between-date-and-calculate-some-numbers/33639 "2021-06-23T16:04:40Z")

</div>

1.when I started searching by date in the upper left corner I get absolutely all the displayed data? When I press the calculate button, all the information disappears?When I press the calculate button, only the tag remai…

---

## [Code not working](https://www.phphelp.com/t/code-not-working/33633)

<div class="topic-metadata">

**Author:** [@Emine](https://www.phphelp.com/u/Emine)\
**Replies:** 4\
**Last updated:** [June 21, 2021, 7:06pm UTC](https://www.phphelp.com/t/code-not-working/33633 "2021-06-21T19:06:43Z")

</div>

I cannot insert my data from website to database. anyone help!!!

---

## [Please help me with mapping array](https://www.phphelp.com/t/please-help-me-with-mapping-array/33635)

<div class="topic-metadata">

**Author:** [@daibbcvl](https://www.phphelp.com/u/daibbcvl)\
**Replies:** 1\
**Last updated:** [June 21, 2021, 2:08pm UTC](https://www.phphelp.com/t/please-help-me-with-mapping-array/33635 "2021-06-21T14:08:21Z")

</div>

I have an array like this $mapping = \[ ‘campaigns’ =\> null, ‘campaignView’ =\> null, ‘campaignViewItems’ =\> null, ‘filters’ =\> \[ ‘content’ =\> \[ ‘start’ =\> null, ‘end’ =\> null, ‘channel’ =\> null, ‘topic’ =\> null …

---

## [How can I add custom content to products page in php?](https://www.phphelp.com/t/how-can-i-add-custom-content-to-products-page-in-php/33629)

<div class="topic-metadata">

**Author:** [@Venkatesh](https://www.phphelp.com/u/Venkatesh)\
**Replies:** 1\
**Last updated:** [June 19, 2021, 4:04pm UTC](https://www.phphelp.com/t/how-can-i-add-custom-content-to-products-page-in-php/33629 "2021-06-19T16:04:59Z")

</div>

Hi I hope php experts will help I have php website which is based on directory ad listing I have single products.php page it is used to display listing ads in the frontend of the website Like when customer selects the…

---

## [Convert  PHP PDO code to Mysqli](https://www.phphelp.com/t/convert-php-pdo-code-to-mysqli/33602)

<div class="topic-metadata">

**Author:** [@agungmrf](https://www.phphelp.com/u/agungmrf)\
**Replies:** 5\
**Last updated:** [June 18, 2021, 3:03pm UTC](https://www.phphelp.com/t/convert-php-pdo-code-to-mysqli/33602 "2021-06-18T15:03:48Z")

</div>

Hello, PHP PDO code used in this paging How to convert mysqli? \<?php include 'connection.php'; if($\_POST){ //Data $username = $\_POST\['username'\] ?? ''; $password = $\_POST\['password'\] ?? ''; $resp…

---

## [Insert date-time in php cronjob](https://www.phphelp.com/t/insert-date-time-in-php-cronjob/33621)

<div class="topic-metadata">

**Author:** [@detox](https://www.phphelp.com/u/detox)\
**Replies:** 6\
**Last updated:** [June 18, 2021, 2:49pm UTC](https://www.phphelp.com/t/insert-date-time-in-php-cronjob/33621 "2021-06-18T14:49:19Z")

</div>

Thanks in advance for any help! I have a php script that I have put in a cronjob. However, all the data is lumped into a log file. I’d like to have it entered with date-time on each line. The cronjob is: # Section …

---

## [What to use instead of if!](https://www.phphelp.com/t/what-to-use-instead-of-if/33564)

<div class="topic-metadata">

**Author:** [@Anette](https://www.phphelp.com/u/Anette)\
**Replies:** 8\
**Last updated:** [June 9, 2021, 8:42am UTC](https://www.phphelp.com/t/what-to-use-instead-of-if/33564 "2021-06-09T08:42:17Z")

</div>

x contains tree kind of p,s it is array, I just simplifys it a bit. What should I use? All three is true and I want all tree to be executed. If dosent work, it stops after the first if. foreach(x as p){ when( x = p…

---

## [How can I send the email with PHP?](https://www.phphelp.com/t/how-can-i-send-the-email-with-php/33538)

<div class="topic-metadata">

**Author:** [@Khandaker\_Ajmain](https://www.phphelp.com/u/Khandaker_Ajmain)\
**Replies:** 1\
**Last updated:** [May 22, 2021, 4:33pm UTC](https://www.phphelp.com/t/how-can-i-send-the-email-with-php/33538 "2021-05-22T16:33:41Z")

</div>

How can I send the email with PHP usin live server? \<?php // include "contactform/contactform.php"; if (isset($\_POST\['submit'\])){ $to = "khandakerajmain06@gmail.com"; $subject = "Email From Website"; …

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

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