39,319 Topics
| |
I've converting my website to PHP from just static HTML. In the process, my PHP Index file is pulling old information from an unknown source Here is the specific problem. When I add a paragraph tag to my div id="main" section, I get "Get the Management Certification you need to … | |
Hi, I would like to duplicate the pattern, the function will have 2 parameters, which is row and column. It will duplicate the pattern on how many rows and columns. My function for pattern is correct but how can I duplicate/replicate it. Thanks <?php $row_col_array = array(); function honey(){ $l … | |
Mostly Linux Based C++ Python NodeJS Javascript Bash php | |
I want to auto generate the id number. I write this code. But it's not work. I don't make primary key for id in database. function getData() { $data = array(); $data[1] = $_POST['name']; $data[2] = $_POST['fname']; $data[3] = $_POST['address']; $data[4] = $_POST['phone']; $data[5] = $_POST['class']; $data[6] = $_POST['qualification']; $data[7] … | |
The following code works without errors on my local server but when I put it up on my hosted website, I get a "Failed - Network Error" message immediately. The way this works is that a button is pressed on a download page to select what file to download. Here's … | |
hii guys i have web site need to generate random progress like this ![messageImage_1650466235444.jpg](https://static.daniweb.com/attachments/4/4177f476696ea21823be5ca5550a7b39.jpg) can some one suggest me how can i make it | |
Hi all, I hope someone can help me with the following. I have a script that reads a txt file and displays the correct values. I only want to add it to the database now, but I can't manage this. below the script <?php include '../includes/connect.php'; if(!$conn) { die(mysqli_error()); } … | |
i installed wamp on windows 11. i tested to see if php was installed by using command phpinfo and this worked. when i attempt to use php in html document the php echo statement does not work. i simply get the line of code (shows the echo statement). i have … | |
Hi, I need to split the pdf document into two parts,like i have a pdf which consists 100 pages,i need to split the pdf into two parts where first part consits 10 pages and second part consists 1 to 100 pages?how to do that using php? | |
hi, i have some problem with my php code. when i run the php, the page keep loading and no output displayed. here is my code: $dayBeforeNew = $_GET['daybefore']; $dayAfterNew = $_GET['dayafter']; $sql = "SELECT reference.LOCID, reference.Region, Sitename, (SELECT `Data Total Traffic` from 4g_statistic where reference.LOCID = 4g_statistic.LOCID AND 4g_statistic.Day … | |
Guys, what am I doing wrong? The database "expiry" value is > 0 but I go to expiredpage.html. ======================================================== the code: <?php $link = mysqli_connect("localhost", "root", "", "numbersdb"); // Check connection if($link === false){ die("ERROR: Could not connect. " . mysqli_connect_error()); } echo "<center>";echo date('m/d/y');echo "<br />"; $id='id'; $expiry='expiry'; if($expiry==7) … | |
I need help on this php pdo error:PHP PDO - Uncaught Error: Call to a member function prepare() on null | |
Three if condition if(isset($_POST['search']) & !empty($_POST['searchdata']) ) if(isset($_POST['search']) & !empty($_POST['searchName']) ) Else each statement have the own pagination created now confusion for example first condition is true and three page is created when i click its goes to else condition and below 10 pages is created which is true in … | |
i have two page one is search.php and other is detail.php in search.php <div class="search-field "> <form class="d-flex align-items-center h-100" name="search" action="manage_visitor.php" method="post" > <div class="input-group" style="background-color: #f2edf3;"> <input type="text" class="form-control bg-transparent border-0"name="searchdata" id="searchdata" placeholder="Search by names & mobile no" > </div> Detail.php i get the value of there pagination … | |
I have a subform called "Contacts" embedded on my "Tickets" page. I want to create an edit button to jump to my contacts_edit.php page and use the 'ContactEntryNumber' (the unique key from my Contacts table) for the displayed contact record as the updateID. I have played with this and read … | |
Hello webmasters, I am trying to create a script using vanilla PHP. I am familiar with the language and I have created a cronjob before, but only using cPanel. I want to create cronjobs using PHP if possible with out the need to go to cPanel. I am trying to … | |
We have ready to use job board software and want to update it with new features. Please check the below url and suggest some updated features. https://www.logicspice.com/job-board-software | |
hii all, btw i want to make login system, and check if user is multiple login and give notification in current user login, how can i make it ?? can someone please suggest/teach me to make system like that? Previously I've searched for it on google but couldn't find the … | |
The requested URL was not found on this server. Apache/2.4.53 (Win64) OpenSSL/1.1.1n PHP/8.1.4 Server at localhost Port 80 | |
I’d like to force my code to pause after completion and before displaying a completion message. I’ve tried sleep and wait commands but they affect the start of running the code. I’ve searched the web for how to do this for two days with no success. The reason for wanting … | |
Hello This is a simple php login script with sessions. It connects to mySQL for usernames and passwords. I’m using a variation of the code from [url]http://www.phpportalen.net/wiki/index.php?page=Enkel+Inloggning+med+Mysql+och+sessioner+-+Komplett+kod[/url] (index.php is the relevant part) Here is my code (my script is called login.php): [code=php] <?php session_start(); // Always at the top include … | |
I am using phpmydirectory and am having problems logging in. We had a power outage yesterday and this morning i cannot access my Control Panel. I am just getting teh error message that i have used so many login attempts and when i get to 5 attempts i will need … | |
Hi everyone, I am getting an undefined array key with a session variable. The code works fine once I set the variable. Can someone please help me with that issue? Thanks <?php session_start(); $servername = "localhost"; $username = "xxx"; $password = "xx"; $database ="xx"; // Create connection $conn = mysqli_connect($servername, … | |
Hellothe i need to fetsh data from database (mysql) whenever i click search and show it inside input and if the page was loaded without click the input stays empty | |
Hi DW. I'm creating a chat system which will alow guests to send DMs to the operator and the operator can reply to it. I'm using MYSQL as my database, fingerprint2js for identifying the user since user has not yet logged in or registered but want to first communicate with … | |
I know this has a simple answer that I should know, but for the life of me, can't remember. I have the following update statement in my code: $stmt = $pdo->prepare("UPDATE `files` SET `filename` = ?, `md5` = ?, `filesize` = ?,`logtime` = now() WHERE `id` = ?"); $stmt->execute (array($isoname, … | |
I posted this the other day and by and large people responded with predictable lack of imagination. I will add additional explicit requirements for the prototype stage. I want to create a prototype of a different type of social media - call it "pro social" media. It would be owned … | |
I have two large files that I want to make available for users to download. When trying to download from my web host, the download never starts and I get a "504 Gateway Timeout". How would I revise my code to download from a file sharing site? I tried the … |
The End.