39,326 Topics

Member Avatar for
Member Avatar for CSWinslow

So here's a little background to help with what I'm trying to accomplish (be mindful I'm also fairly new to MySQL): I'm creating a dynamically built navigation for a website using PHP and MySQLi. I've created a class called *Database* where I've got helper functions, such as connect() for connecting …

Member Avatar for CSWinslow
0
3K
Member Avatar for bprosic

Hi, I want to replace ticks in text with other text. This method usually works, but when adding three dots, I get php warning ltrim(): Invalid '..'-range, no character to the right of '..' or invalid range needs to be incrementing. I don't know where to look for error, except …

Member Avatar for Dani
0
3K
Member Avatar for sagisgirl

Hi, I am developing a system that need to monitor machines' licence, so i have a field 'movedate' and 'outdate' every machines can only been kept for 2 years for most. and if the machine didn't go out for almost 2 years, an alert will come out to remind the …

Member Avatar for Dani
0
8K
Member Avatar for FarrisFahad

Hello, I am trying to redirect my website from desktop version to mobile version. Here is the desktop version example: http://www.example.com Here is what I have accomplished: http://m.example.com The problem is that some files are stored under the www version and I want them to be shown on the m …

Member Avatar for Dani
1
3K
Member Avatar for SimonIoa

Hello i want to UNION three tables from the same database. SELECT DISTINCT * FROM (SELECT uid as id, name as name, username as username,bio as aboutme, '' as text, 'user' as type, profile_pic as profile_pic, '' as media_pic, '' as group_pic, 'U' as mediatype, '' as image_path FROM users …

Member Avatar for SimonIoa
0
2K
Member Avatar for developer707

Hello, Recently I am using phpexcel and afer many tries I wasn't able to find out how to make a document with a image in its header. Here is a simplified code that I am using. Can someone helps me with this issue?! <?php require_once 'PHPExcel.php'; $objPHPExcel = new PHPExcel(); …

Member Avatar for Arvind_7
0
10K
Member Avatar for FMTech

My code is given me error Parse error: parse error, expecting `T_FUNCTION' in C:\wamp\www\schoolapp\application\controllers\Login.php on line 277 here is my code <?php if (!defined('BASEPATH')) exit('No direct script access allowed'); class Login extends CI_Controller { function __construct() { parent::__construct(); $this->load->model('crud_model'); $this->load->database(); $this->load->library('session'); /* cache control */ $this->output->set_header('Last-Modified: ' . gmdate("D, d …

Member Avatar for gentlemedia
0
464
Member Avatar for Michael_93

Hi All, I am building an eCommerce website and I really new to PHP and MYSQL but loving the challenge. On my website I have 9 different categories of products with each page having about 8 items to sell. Rather than duplicating the code from each .php/.html file into a …

Member Avatar for NettSite
1
2K
Member Avatar for Josh_4

I have a webpage which helps download files from database. I want to count the how many times the download button has been clicked and display it on my webpage with unique id. This is my download webpage <div class="container"> <div class="row"> <div class="col-12"> <div class="media"> <img src="./images/<?= $mainImage; ?>" …

Member Avatar for warner_1
0
2K
Member Avatar for ChrisJ

I am trying to display some text "THIS IS A TEST" on the html page. I am getting this error: "Notice: Undefined variable: text1 in /home/public_html/themes/videos/content.html on line 23" Here is the php file ( I added line 35 and 39): <?php declare( strict_types=1); // these should be set in …

Member Avatar for coreyavis
0
311
Member Avatar for Josh_4

Hello please i have a download webpage which allow users to download mp3 files. I want to display the number of times a user has click the download button and display it on the webpage. The records are in a database and this is my code. This is my download …

Member Avatar for rproffitt
0
2K
Member Avatar for joseph_40

guys pls help me ,, how can i make a matrix round rounbin display ,, if you have an idea thats a big help for me

Member Avatar for rproffitt
-2
172
Member Avatar for CreatorZeus

So im trying to make a background switch by adjusting the z-index with a hover. I got it to work on one of my pages but the second page has more stuff on it and is too complex. Maybe im just over looking what im suppose to fix. First, the …

Member Avatar for AndrisP
0
485
Member Avatar for milan.sabic

I am getting a screen resolution through XMLHttpRequest. I am opening a show_content.php file with *xmlhttp.open* that contains screen resolution variables which I pull with the GET Method. xmlhttp.open("GET","show_content.php"+queryString,true); This works! and showing this file with the variables in a following div <div id="txtResolution"></div> This part works as well! PROBLEM: …

Member Avatar for AndrisP
0
681
Member Avatar for FarrisFahad

Hello webmasters, I have a website about memes and I want to update the database each time the user scrolls down. I have no problem when I make a few requests to the database, but what if I want to do a lot of requests in a large database? I …

Member Avatar for Ray Paseur
0
3K
Member Avatar for SkyFX

I am hacking my way through a Laravel project. I am returning a search-filtered databse query with Laravel and applying a pagination, the pagination works, the query works, but the pagination links go to a blank page, only the first page of results is visible. Any hints would be much …

Member Avatar for SkyFX
0
1K
Member Avatar for ariowishnu

hey its me again.. now another matter about fetch data from db for provide information to modal form ( edit data ) not shown, [Click Here](https://i.ibb.co/L8jP6tb/update.png) here's just part code fr each related page : **modal edit** ill try with first input type with **id="name" name="name"** <!-- edit modal --> …

Member Avatar for Ray Paseur
0
459
Member Avatar for abdallah mohamad

Write a PHP code to: 1- Create a 2-dimensional array, with a random number of rows and columns. 2- Fill the array with random numbers. 3- Send the array to a function that returns the number of the highest frequency in the array. Who can help me to solve it?

Member Avatar for abdoosh
0
4K
Member Avatar for praise23
Member Avatar for keaikitse

<?php session_start(); ?> <?php include('dbcon.php'); ?> <html> <head> <link rel="stylesheet" type="text/css" href="style.css"> </head> <body> <div class="form-wrapper"> <form action="#" method="post"> <h3>Login here</h3> <div class="form-item"> <input type="text" name="user" required="required" placeholder="Username" autofocus required></input> </div> <div class="form-item"> <input type="password" name="pass" required="required" placeholder="Password" required></input> </div> <div class="button-panel"> <input type="submit" class="button" title="Log In" name="login" value="Login"></input> </div> …

Member Avatar for Ray Paseur
0
3K
Member Avatar for muktapuram

Hi, I am trying to insert to insert a video into a folder and its path into the database. But both the things are not working for me. And also I need to retrieve the video from database. Can someone help me where i went wrong. My html to upload …

Member Avatar for aiswarya_2
0
3K
Member Avatar for LegateLucius

i'd like some help writing an sql statement that brings back the shows in a specific category. For example an sql statement that will bring back shows from the action genre in the tables below ![NPFXq.png](/attachments/large/4/184a0604556473722e1c584d4929caf6.png)

Member Avatar for ryantroop
0
343
Member Avatar for ChrisJ

I am using a php web video script which allows Users to purchase videos successfully. The purchases are made from the amount available in the Users’ 'wallet' (the User can also earn compensation, which gets added to his earnings 'balance'). When there’s not enough available in the 'wallet' for the …

Member Avatar for alan.davies
0
486
Member Avatar for vijayabhaskar_1
Member Avatar for ariowishnu

inside mysql db which is table employe in coloumn *id_employee*, some data have a leading zero, etc : **id_employee : 0378192918 empy_name : Daniweb** i need to get id_employee for delete employe in my aplication, then i using ajax method like this : if(id) { alert(id); $("#deleteBtn").unbind('click').bind('click',function(){ $.ajax({ url: 'pegawai/delpeg.php', …

Member Avatar for ariowishnu
0
4K
Member Avatar for Mansoor_5

Message could not be sent. Mailer Error: SMTP Error: Could not authenticate. it worked on localhost perfectly but it gives error on live server Here is my code $mail = new PHPMailer(true); try { $mail->IsSMTP(); $mail->Host = 'smtp.gmail.com'; $mail->SMTPAuth = true; $mail->SMTPDebug = 2; $mail->CharSet = "utf-8"; $mail->Username = "xxxxxxxxxxx@gmail.com"; …

0
309
Member Avatar for bprosic

Hi, I want to design DB for posts with multiple subcategories and categories. Example: Category has information: C#, PHP, JS, Python. Subcategory can contain: Logger, String, While Loop. A post table contain posts about "while loop" in PHP language and posts about "while" loop in C#. So, this is a …

Member Avatar for AndrisP
0
667
Member Avatar for Swapnil5513

Need a help to resolve the excel sheet issue with PHPExcel . I'm trying to generate the PHPExcel version 1.8 from database. The problem is that excel sheet get creating and memory also get occupied but the content is not showing so it's showing blank excel sheet when my project …

Member Avatar for rproffitt
0
144
Member Avatar for soph2602

Hi Coders, am working on a function to calculate the balance leave in a year using php. For example, if leave entitlement in a year is 20 days, so if a staff takes 1 day leave, the balance leave will return 19 days. Below is the code but am not …

0
222
Member Avatar for ayooshkasmth

Hi, I have a problem with retrieving uploaded images from a database. It appears to upload fine, but when i try to display the image i get loads of binary jargon? I have tried looking everywhere for a solution, but unable to, any help would be greatly appreciated. The code …

Member Avatar for gentlemedia
0
8K

The End.