1,168 Recommended Topics

Remove Filter
Member Avatar for
Member Avatar for manu555
Member Avatar for Dani
0
368
Member Avatar for Danny159

Hey, I have the following htaccess file but cant get the dam thing to work... I need the following... /admin/test/ -> /admin/test.php /home/ -> home.php (/xx/ -> xx.php Then to include ?key=var.... etc RewriteEngine On RewriteBase / RewriteCond %{SCRIPT_FILENAME} !-d RewriteCond %{SCRIPT_FILENAME} !-f RewriteRule ^admin/(.*) admin/$1.php [L] RewriteRule ^([a-z0-9\-]+)/?$ $1.php …

Web Development
Member Avatar for Dani
0
272
Member Avatar for jeslin_2k2

<table> <?php if(count($members)) $j=1; foreach($members as $key => $member) <tr> <td><label><?php echo $j.". "." ".$member->member_id." ".$member->name;?></label></td> <td><input type="radio" id="attendance_<?php echo $key?>" name="attendance[<?php echo $key?>]" value="present" required >Present <input type="radio" id="attendance_<?php echo $key?>" name="attendance[<?php echo $key?>]" value="absent" required >Absent</label></td> <td><select name="reason" id="reason" required style="display:none"> <option value="Work">Work</option> <option value="India">India</option> <option value="Sick">Sick</option> <option value="Personal/Family Issues">Personal/Family …

Web Development javascript php
Member Avatar for Dani
-1
285
Member Avatar for paulkd

...was asked for some php file upload code, so I thought I would post some stripped down, barebones code that I use in admin/dashboard pages to add/change images associated with products. Please see attached image for folder setup. The code uses the [jQuery Form](http://malsup.com/jquery/form/) plugin by Mike Alsup. **index.php** has …

Member Avatar for NaReSh_12
1
11K
Member Avatar for Mr.M

As web developers we do take seriously the security of our end users by applying a hash method on their passwords before storing it to the database so should our database be hacked we know that our end user passwords are secure. But what about the browser remembered passwords on …

Web Development html-css javascript php
0
2K
Member Avatar for Bahrija

This is my array: [0] => Array ( [0] => SupSKU [1] => MfrSKU [2] => Cost ) [1] => Array ( [0] => A [1] => 11742-4 [2] => 47.25 ) [2] => Array ( [0] => B [1] => 11742-4 [2] => 283.5 ) [3] => Array ( …

Web Development php
Member Avatar for alan.davies
0
4K
Member Avatar for 68thorby68

Many thanks if you are looking at this. I have a simple order form that allows users to place an order for an item. The form also allows the user to add more items, calling a javascript function that utilizes innerhtml. Included in each order form, are dates. I am …

Member Avatar for tekwalker
0
3K
Member Avatar for useruno1

Hello guys, unfortunately it looks like I'll have to use your help again. I'm struggling for few days to configure some filters in woocomerce and I can not do it at all. I'm trying to configure some filters to appear only in subcategories, and a main filter only in the …

Web Development ecommerce
Member Avatar for useruno1
0
3K
Member Avatar for trevata

Hi. In short, how can I make this javascript to refresh the page when uploading is done ? :) [code=javascript]function $m(theVar){ return document.getElementById(theVar) } function remove(theVar){ var theParent = theVar.parentNode; theParent.removeChild(theVar); } function addEvent(obj, evType, fn){ if(obj.addEventListener) obj.addEventListener(evType, fn, true) if(obj.attachEvent) obj.attachEvent("on"+evType, fn) } function removeEvent(obj, type, fn){ if(obj.detachEvent){ obj.detachEvent('on'+type, …

Web Development javascript
Member Avatar for Tiago_3
0
447
Member Avatar for Blueie

Hello I am getting 3 errors (same errors for all 3 lines) in my Visual Studio 2017 Web Forms project: Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load pnlFormFields.Visible = False pnlThankYouMessage.Visible = True LblDate.Text = ReturnDate() End Sub pnlFormFields, pnlThankYouMessage, and LblDate, are not declared. …

Web Development asp.net vb.net visual-studio
Member Avatar for xrjf
0
435
Member Avatar for Love_7

I am working on a new project where I want to add candidates scores, there are different columns with HTML inputs that holds their performance scores at every stage, then I want to sum it up under the column TOTAL, get also the AVERAGE, and GRADE also on different columns …

Web Development php
Member Avatar for Reverend Jim
0
429
Member Avatar for ndfd2008

in C# and PHP, we can parse xml data easily by server side coding, but how we can parse xml with client side? java script or jquery is the best option?

Web Development javascript javascript-jquery xml
Member Avatar for kellyq
0
393
Member Avatar for dloj333

HI All, Thanks in advance for any assistance anyone can bring me. I am using an Avada Theme with Fusion builder and everytime I create a new page and add images I get this error. and of course it is refereing to a line that is a foreach() line. In …

Web Development wordpress
Member Avatar for alan.davies
0
362
Member Avatar for khalilbnzz

Hello, [Click Here](https://i.imgur.com/47YUdmn.png) My problem is in the Edit view, it gets all the information except the logo.. my edit get controller is : // GET: Billers/Edit/5 public ActionResult Edit(string id, HttpPostedFileBase logo) { if (id == null) { return new HttpStatusCodeResult(HttpStatusCode.BadRequest); } Biller biller = db.Billers.Find(id); if (biller == …

Web Development asp asp.net
0
341
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 …

Web Development android apache php
Member Avatar for Dani
1
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 …

Web Development mysql php
Member Avatar for Dani
0
8K
Member Avatar for f1 fan

These few lines will allow you to email as html an aspx page from your site or in fact any web page you want (though i wouldnt recommend any with lots of scripts etc in it). It is very useful for email forms to customers etc from your site. Personally …

Member Avatar for anandraju123
0
6K
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 …

Web Development php
Member Avatar for Dani
0
3K
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 …

Web Development mysql php
Member Avatar for CSWinslow
0
3K
Member Avatar for tun712

Working on fullscrfeen slider. Need help to count slides inside main slider container & create navigation `<ul class="Nav"><li><a></a></li></ul>`. Need help to add scroll effect Vertically or Horizontally Add class **.active** to active slide Display tooltip on navigation hover Need help to write function , $('main').slider({ //It may be main or …

Web Development html-css javascript-jquery
Member Avatar for uprawnieniabud
0
900
Member Avatar for B_3

Hi, I am using node and refactoring an older database. Therefore, i want to ensure i incorporate correct practices from the start. I know that this is a debated topic and that there is not nessecarily a correct answer but i want to see what people have to say about …

Member Avatar for Dani
1
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(); …

Web Development image php
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 …

Web Development php php-codeigniter session
Member Avatar for gentlemedia
0
466
Member Avatar for Thomasio

I know C++, PHP and a few more, but I do not have the slightest clue, how to make a browser extension and the tutorials I find on the web are like chinese to me, so let me ask here, if anyone can help me out. Task: I want to …

Member Avatar for rproffitt
0
343
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 …

Web Development html-css mysql php sql
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; ?>" …

Web Development mysql php
Member Avatar for warner_1
0
2K
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 …

Web Development mysql php sql
Member Avatar for rproffitt
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 …

Web Development php
Member Avatar for coreyavis
0
315
Member Avatar for rojgarresults
Member Avatar for rajukumar12
-2
555
Member Avatar for Start4me

I've been looking tutorials and examples of setting the value field of a input tag. I'm trying to enter two IP addresses into the text fields on [this](https://www.ipaddressguide.com/cidr) website, under IP Range To CIDR. But my code won't enter anything. There's no ID tag, so I can't use the getElementById …

Web Development microsoft-office visual-basic
Member Avatar for Start4me
0
2K
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: …

Web Development javascript php xml
Member Avatar for AndrisP
0
689
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 …

Web Development html-css php web-design
Member Avatar for AndrisP
0
499
Member Avatar for zobadof

Hi All, My apologies if this is in the wrong place. It's been an extremely long time since I've used this website and it seems like many things have changed, though, this seemed the most approriate. I'm currently in the process of helping my brother create a website <[loathingsloth.com](https://www.loathingsloth.com)>, using …

Web Development html-css wordpress
Member Avatar for Reverend Jim
0
428
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 …

Web Development javascript mysql php
Member Avatar for Ray Paseur
0
3K
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?

Web Development php
Member Avatar for abdoosh
0
4K
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 …

Web Development mysql php
Member Avatar for aiswarya_2
0
3K
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> …

Web Development mysql php
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 …

Web Development php
Member Avatar for SkyFX
0
1K
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 …

Web Development php
Member Avatar for alan.davies
0
507
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
462
Member Avatar for divinity02

I am created a homework tutorial webpage where i have to make an image clickable and what I meant is that when the image is click, it should open up a pdf file and that is where iI am having the problems this is what i have tried on numerous …

Web Development image pdf
Member Avatar for rproffitt
0
395
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)

Web Development php sql
Member Avatar for ryantroop
0
345
Member Avatar for jonsan32

A developer from India helped me create a pretty cool page, but he's since abadoned me with a few errors in his code. On my [ROSTERS](https://fiftyallstars.com/p/rosters.html) page for my basketball program, it's meant to display cells generated from [this Google Spreadsheet](https://docs.google.com/spreadsheets/d/e/2PACX-1vQd232Tmdvi3iaqni-Gc_RR0d0he9k2Dkel5A7uJU-GWUdck4CFecru3K2HfrybyI3pfrpAMpM4XZOa/pubhtml). Only problem is it works for most grades, but …

Web Development google javascript office-suite
Member Avatar for Halla_1
1
1K
Member Avatar for Start4me

I'm working in Excel to extract content of a table from a web page and populate Excel sheet cells with it. I'm trying to extract data from a table that gets loaded to a web page after show results method gets called. I have an error that says "Run-time error …

Web Development html-css visual-basic
Member Avatar for Ben_32
0
12K
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 useruno1

I have an annoying problem on my website, I have been struggling for a few days to fix it and I can not do it at all. On my site here https://codurilevietii-888.ro/ each time i load a new page, the scroll position stays same as it was on the previous …

Web Development html-css
Member Avatar for useruno1
0
3K
Member Avatar for zelrick

Hello and Good Day, I have a multiple images that is played on flanis. On my iFrame, this images are not fitted. I want to have a flanis that is responsive fitted on my iFrame. so I tried this one image only in the <img> tag and it works fine. …

Web Development html-css image
0
318
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"; …

Web Development php
0
309
Member Avatar for FarrisFahad

I want to add a Facebook share button on my website. But I don't want the new window pop up dialog. I want the dialog that opens on the website, just like Facebook has. I want to accomplish this: ![2014-01-21_19_35_19-Feed_and_Share_Dialog.png](/attachments/large/4/2acecb3250119e0bcf8b8182039b2937.png) Instead of this: ![ajXTj.png](/attachments/large/4/953a8938d10c281edf5a7551f29adf65.png) Can anyone point to me a …

Web Development social-media
Member Avatar for gentlemedia
1
4K
Member Avatar for FarrisFahad

I have installed Facebook share button on my website but it won't work on new content. It works perfect with content that is loaded with PHP but not content appended by AJAX. Can anyone help?

Web Development html-css javascript social-media
Member Avatar for FarrisFahad
0
3K

The End.