39,321 Topics
| |
Good morning, i have a section in a php page as per code: <div class="container section" id="afterHeader"> <div class="row"> <div class="tabs movies"> <a class="style1">1^ WEEK</a> <ul> <li><a href="#thu">GIO</a></li> <li><a href="#fri">VEN</a></li> <li><a href="#sat">SAB</a></li> <li><a href="#sun">DOM</a></li> <li><a href="#mon">LUN</a></li> <li><a href="#tue">MAR</a></li> <li><a href="#wed">MER</a></li> </ul I would need to replace the part <ul> </ul> … | |
Hi, I've been trying to troubleshoot this iframe issue all day. I need help. First, the issue is an iframe on the frontpage is to load a php script for an Video ad. Second the frontpage is a php search script. Now, when you visit the frontpage initially everything is … | |
I moved my website from host to another, moved database and public_html file, Also, I modified wp-config file and deleted hlaccess. But, now I can't update any plugin or delete there is message said update_option( 'siteurl', 'https://zone1on.com' ); update_option( 'home', 'https://zone1on.com' ); Skip to main contentSkip to toolbar At the … | |
$company_id = $_SESSION['compid']; $sql="SELECT * FROM `movies` WHERE companyID = ? AND name LIKE '%$search%' OR description LIKE '%$search%' " ; $stmt=mysqli_stmt_init($conn); if (!mysqli_stmt_prepare($stmt,$sql)) { header("location:main.php?error=stmt failed"); exit(); } mysqli_stmt_bind_param($stmt,"i", $company_id); mysqli_stmt_execute($stmt); $result = $stmt->get_result(); | |
Hi I have mysql table as below id | item_id | date | received Now I want to make a html table from above data where columns are year and rows are months. and value will be sum of received on month _ year. like below demo | | 2018 … | |
> Hi guys, I blinked and got lost. All I want to do is copy Payfile to Pmtfile and then update records in Payfile that have been paid(amtpaid !=''). The update doesn't happen and the insert-note comments at botom of post. <?php $link = mysqli_connect("localhost", "root", "", "prerentdb"); // Check … | |
I have learning this from youtube,php quiz using ajax. I am facing problem when click on next button after last question it is not redirecting on final page. Please help me to fix this. I think responseText not working. Question.php page to where i display question <script type="text/javascript"> var questionno="1"; … | |
From the below, how can I make the variable $new_status recognisable within those brackets? $sendData = '{ "messages" : [ { "content" : "Your order is $new_status.", } ] }'; Problem: The above sends out text message successfully on status update, but the variable $new_status does not get updated. I … | |
How can I build a responsive mobile app with PHP as a web developer, I'm a newbie in web development please and I wish to maintain apex growth in this field | |
I need to add variable called $new_status, but its not being recognised on php, any suggestions. $sendData = '{ "messages" : [ { "content" : "Your order is $new_status.", } ] }'; | |
Hi. I got some problem. I want to search data from 2 tables in database and display the result based on the search value. For example, I search employee id number, it will search the employee id number in table 1 and table 2. If the data exist in either … | |
I want to know the logic of how to creat a program for converting a string number to a sentence, each number represent a alphabet, number are seperated by space. and words in a sentence are seperated by Plus + character. 1=A 2=B ...... 26=Z and the example input is … | |
I have a database that has columns called start date, start time, end date and end time and want to be able to output the difference so it shows the total time spent per project. Below is the code I have but it shows the error PHP Fatal error: Uncaught … | |
<?php $name = $email = $password = $repeatpass = ''; $name = $_POST['name']; $email = $_POST['email']; $password = $_POST['password']; $repeatpass = $_POST['repeatpass']; $con = new mysqli(DB_HOST, DB_USER, DB_PASSWORD, DB_NAME); $sql = "INSERT INTO user-regis (name, email, password, repeatpass) VALUES ('$name', '$email', '$password', '$repeatpass')"; $result = $con->query($sql); if (!$result) { header("Location: … | |
<?php require_once './includes/config.php'; $con = new mysqli(DB_HOST,DB_USER,DB_PASSWORD,DB_NAME); $sql = "SELECT * FROM contact-info"; if($result = $con->query($sql)){ while($row = $result->fetch_object()){ //display record 1 by 1 printf(' <tr> <td>%s</td> <td>%s</td> <td>%s</td> <td>%s</td> <td>%s</td> </tr> ',$row->id, $row->name, $row->email, $row->phone, $row->comment); } } printf(' <tr> <td colspan="5"> %d record(s) returned. [ <a href="insert-student.php">Insert Student</a> … | |
HI, CAN I GET SOME HELP RE-WRITING THE BELOW. CODE 2 REFERENCES CODE 1 USING $sendData VARIABLE. I WOULD LIKE TO REMOVE CODE 1 COMPLETELY. CAN I GET HELP WRITING CODE 1 INTO CODE 2, PERHAPS IN FORM OF ARRAY? CODE 1 $sendData = '{ "messages" : [ { "content" … | |
Hello please help me troubleshooting the problem below. I got the 500 Internal Server Error in My WP Site>Dashboard>Appearance>Custom.. Pleaaaaase. Below is the error shows when i check the document on Cpanel>File Manager>home3/faithcr4/public_html/error_log... [07-Aug-2021 07:15:40 UTC] PHP Warning: Cannot modify header information - headers already sent by (output started at … | |
> Hi, This little program checks to see if the contract is valid. I have a database field "expiry" (int 3) from which 1 is subtracted when run. As long as the expiry is above 0 I want to redirect to "sysnav.html", otherwise I want to redirect to "expiredpage.html". I … | |
i need to show the image displayed in database but it shows default image <?php $link = new PDO("mysql:host=localhost;dbname=campusdrive", "root", ""); $link->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); $Sql = "SELECT Image FROM student_form WHERE Sessionid = :Sessionid"; $stmt = $link->prepare($Sql); $stmt->bindParam(":Sessionid", $sessionid, PDO::PARAM_STR); $sessionid = session_id(); $stmt->execute(); $count = $stmt->fetchAll(); if($users = $stmt->fetchColumn()){ echo … | |
[ { "": { "amount": "152870", "kwh": "0", "numberOfPay": "54" } }, { "AZARE Region": { "amount": "119500", "kwh": "0", "numberOfPay": "45" } }, { "BAUCHI Region": { "amount": "944473", "kwh": "0", "numberOfPay": "376" } }, { "BUKURU Region": { "amount": "494000", "kwh": "0", "numberOfPay": "138" } }, { "GBOKO … | |
I am trying to output data for selected dates and think I have managed to do the sql query but it's currently not outputting the total amount, below is what it is currently outputting I am looking for the following From To Expense Category Expenses Total 01/01/2018 31/12/2018 Accounting Costs … | |
Hi guys. I have just created an intranet in my online store and I'm new at programming so need some help. I'm developing a system that makes this possible: when a user registers, the database detects that they are already a customer who has bought previously and it makes their … | |
What are the pros and cons of plain PHP or Classic ASP? PHP and Classic ASP are server-side scripting languages. What is wrong with having a website written in this instead of the trendy JavaScript Frameworks like React, Angular etc.? If memory serves me correctly, there is an issue with … | |
Hi, I am developing one web application. In which I want to display pdf file on the web browser by selecting the pdf file or any fixed pdf file. so, if anyone knows then please tell me the script code so will develop it for my web application. i will … | |
--Hi DaniWeb. I have been doying bulk data Uploads from Excel Sheet to MySql data base and hence thought that I may need the reverse of this process and so Export MySql Tables into Excel Format for Backup purposes (I also will be happy for a better suggestion for a … | |
I have some php code on view invoice and it's getting all the data I need to from three database tables but for some reason it's not getting the data for one specific column and unsure why I have done a echo sql and it is echoing the sql query … | |
Trying to have a script built that locks the content until user refers a friend to signup, then they are granted access. They have a set amount of time, as a timer counts down or their account is deactivated. Its for a game we are creating and want to use … | |
Hi its Huzaifa From Pakistan! i am a designer (web and graphic). want to learn **programming** | |
When I run below code, I am getting this error: Severity: error --> Exception: Attempt to assign property "lottery_draw_id" on null C:\xampp\htdocs\lsnew\application\controllers\Admin.php 396 winner_list_temp is declared but how come it becomes null? Code is here: public function lottery_prize_winners_list() { extract($_POST); if (isset($drawid)) { $prize_list = $this->db_model->get_lottery_prize_winners_list($drawid); $currency_abbr = 'USD'; $winner_list_temp … |
The End.