52,566 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for madhan

Hi - I am working with a windows OS created wordpress plugin unit testing code written as below <?php class Test_WP_Simple_Plugin extends WP_UnitTestCase { public function test_constants () { $this->assertSame( 'wp-simple-plugin', WPSP_NAME ); //Error line $url = str_replace( 'tests/phpunit/tests/', '', trailingslashit( plugin_dir_url( __FILE__ ) ) ); $this->assertSame( $url, WPSP_URL ); …

Web Development php wordpress
Member Avatar for rproffitt
1
53
Member Avatar for Shiva_20

## I am deleting item from cart through Jquery ajax,but it is not removing. It is returning "System.String[]". ## [WebMethod(EnableSession = true)] public string ClearItem(string Img) { try { if (Session["Items"] != null) { string[] session_item_arr = Session["Items"].ToString().Split('|'); for (int i = 0; i < session_item_arr.Length; i++) { string[] key_arr …

Member Avatar for lps
1
242
Member Avatar for nalb4242

Hello i have aproblem with hosting my localwebsite suppose it on pc A My target is to allow pc B (not on same network ) to access pc A and work on it .{my website hs connection to my local sql database }. i am using IIs 7 .. i …

Member Avatar for ReboLangos
1
175
Member Avatar for Paulo_9

Hi guys I'm having a bit of a problem with php and linux. I'm using the following function, to find files with specific file extensions within a given folder and all subfolders : function FindVideoFiles($startfolder,$specificextensions){ $it = new RecursiveDirectoryIterator($startfolder); foreach( new RecursiveIteratorIterator($it) as $file) { if (in_array(strtoupper(substr($file, strrpos($file, '.') + …

Web Development php
Member Avatar for AndrisP
1
301
Member Avatar for showman13

Using PHP / MySQL This is a sort of long explanation, but trying to provide all the information the first time. Hopefully someone can tell me what I’m missing or doing wrong, without too much criticism. I am trying to create a FUNCTION that I can use to retrieve a …

Web Development mysql php
Member Avatar for Dani
1
622
Member Avatar for Parker_1

Link in MySQL: https://wahlburgers.com/dorchester Variable loaded: $website = $row["website"]; How can I echo the word "Website" as a hot link to $website ( https://wahlburgers.com/dorchester ) inside an HTML form? This is what I've tried: <input type="text" id="website" name="website" value="<?php echo "<a href= '" . $website . "'>" . "Website" . …

Web Development display mysql php
Member Avatar for Jawass
1
198
Member Avatar for R_4

I am trying to get user's information and show them in user's profile. And i found this query but it is in PDO and my work is in sqli here the query : if(isset($_SESSION['user'])){ $getuser=$con->prepare("SELECT * From users where username=?"); $getuser->execute(array($sessionuser)); Sinfo=$getuser->fetch(); And here the whole code <?php session_start(); $sessionuser=''; …

Web Development mysql php sql
Member Avatar for Smartfitness33
1
71
Member Avatar for Greg_11

I have a project where I need users to be able to save their work, then at a later date select the session/data from their previous work and continue. I have completed all of the coding (and it works) to save the current session under their userid, and populates a …

Web Development javascript php sql
Member Avatar for JeanMilburn
1
361
Member Avatar for Botoho

For example. I have a select statement that is "select ID from students where student name ='name';" Now I don't wanna echo the student ID but I wanna store it in various where I can reuse it. How do I do it. "select ID from students where student name ='name';"

Web Development php
Member Avatar for Mr.M
1
449
Member Avatar for Greg_11

New to this forum and to programming in PHP, so apologies if I miss some detail. I have found some code which does almost everything I need, but I can't figure out how to get the 'selected item' from the results on an secondary page (reading in post) .. this …

Web Development first-post php sql
Member Avatar for Greg_11
1
466
Member Avatar for bprosic

Hi, how can I use regex or string replace to add missing "p" tags to sentences without tags. I tried matching* and splitting first the whole string matching "h" and "pre" tags but dont know how to merge it. `*let regexRule = /<pre>(.|\n|\r\n)[\s\S]*?<\/pre>/g;` Example - input let someVariable = "Basket …

Web Development html-css javascript regex
Member Avatar for Diafol_2
1
1K
Member Avatar for Sappie

Hi, I built a maze game and it's working pretty well except on touch devices. Before this project, I had never used touch events and so I had to learn about them to implement. But I'm sort of unable to make them work. This is my git repository- (https://github.com/sapinder-pal/Cheesy-Maze-Depth-First-Search-Algorithm), and …

Web Development algorithm github javascript
Member Avatar for AndreRet
1
53
Member Avatar for Thanigaivel_1

Greetings to everyone, I am working as a freelance web developer, i have more than 4 years experience in osclass scripts. I am working in the osclass scripts for the past 4 years and have created nearly 67 sites in osclass, and have created many plugins, cuztomized themes, plugin cuztomizations …

Member Avatar for Mcqs
1
353
Member Avatar for serkan sendur

As usual i searched google to convert Decimal numbers to their Binary equivalents but i couldnt find any short algorithm for that matter. So here is mine..

Web Development algorithm javascript
Member Avatar for Deendayal_Hindu
1
3K
Member Avatar for priyamtheone

## Basic workflow of my page ## [Image of Payment page](https://1drv.ms/u/s!Ava3iL9se3C3gTF_XJ_RiBBsWDHs) I have a payment page that has a name textbox (txtName), a PIN textbox (txtPin) and two textboxes (txtPaymentDate and txtPaymentTime) containing payment date and time respectively. The page also has a payment button (btnPay). txtName has a RequiredFieldValidator …

Member Avatar for priyamtheone
1
483
Member Avatar for tareqjhe1

Hello Friends, Recently I have created a website. And whenever I am visiting [my website](https://www.tblog.net/) one yellow i can see left side of address bar. It saying my connection not secure. "Part of this page are not secure(such as images)" . I don't know why it's showing like this.

Web Development cybersecurity
Member Avatar for Dani
1
264
Member Avatar for davy_yg

Hello, Any ever build web using AMP? What is it really? Is it similar like bootstrap? How to do it? Is it difficult or taking a long time to implement? Thanks in advance.

Web Development html-amp
Member Avatar for Dani
1
905
Member Avatar for MattD00

I want to be able to update my database in order to change some dynamic content on my site which contains movie reviews. First Step I need to be able to select which movie review I want to update by selecting it from a dropdown menu which is dynamically populated …

Web Development mysql php
Member Avatar for Jurijus
1
4K
Member Avatar for Pirakavi

How can I add href link inside the eventRender and redirect another page with id? function calender(data) { if (0 !== $("#m_calendar").length) { spinner.hide(); var e = moment().startOf("day"); e.format("YYYY-MM"), e.clone().subtract(1, "day").format("YYYY-MM-DD"), e.format("YYYY-MM-DD"), e.clone().add(1, "day").format("YYYY-MM-DD"), $("#m_calendar").fullCalendar({ header: { left: "prev,next today", center: "title", right: "month,agendaWeek,agendaDay,listWeek" } , editable: !0, eventLimit: !0, …

Web Development javascript javascript-jquery
1
62
Member Avatar for larry29936

I have a download section in my index.php that I'd like to add a download counter to but have no idea how to accomplish this. The existing code works perfectly but I'd like to know how many times the file is downloaded. Would prefer not to use a database. <!-- …

Web Development php
Member Avatar for larry29936
1
605
Member Avatar for larry29936

I'm creating a webpage where the user will be able to download an .iso file. The version of the iso will change. For example: xxxx.1.iso will become xxxx.2.iso when the iso is updated. How do I code the download button so that I don't need to re-code the button when …

Web Development html-css php
Member Avatar for Dani
1
2K
Member Avatar for Clouie Ckien

hi good day guys, i'm having a trouble with fetching the data i have a list of folder outside like in the picture below ![p1.png](/attachments/large/4/c49da0c2676b0f2d0f5d9acb7afc68bd.png) when i click the first folder the picture below shows the output it has duplicates ![p2.png](/attachments/large/4/9e1c201e5a2edfed6e83663b41116db6.png) i want to know what's the problem with my …

1
535
Member Avatar for Dani

I have always known that urlencode() encodes spaces as plus signs and rawurlencode encodes spaces as %20. However, I always struggled to know when to use which. I just finally learned today that you should use rawurlencode() if encoding URI paths and urlencode() if encoding query strings. Who woulda thunk …

Web Development php
1
1K
Member Avatar for lemurumschlag73

Hey i am student and quite inexperienced in coding. Therefore i hope somebody can help me how I can create a Multibar chart. in the appendix I have attached a picture how it should looks like. I tried it for 2 weeks now and I still have no idea. It …

Web Development google javascript
Member Avatar for Dani
1
771
Member Avatar for ahmed_101

How to return value of longtide and latitude from json using angular 7? my url as following : http://192.168.7.xxx:9200/location/_doc/27737 json returned from url above is : {"_index":"location","_type":"_doc","_id":"27737","_version":1,"_seq_no":5577,"_primary_term":1,"found":true,"_source":{"Locid":27737,"GPS1":"25.0173, 121.462","GPS2":"25°01'02.2\"N 121°27'44.8\"E","CompanyID":1005070,"ads":"142 Sec. 1, HsIn Nan Rd cung Ko Dšst, New Taipei City, Taiwan","Crid":75,"con":"Taiwan","Ctid":5894,"Cn":"Zhonghe District","pushdate":"2019-12-26T03:38:20.883"}} I need to return two values from GPS1 …

Web Development javascript json
Member Avatar for Dani
1
1K
Member Avatar for xtrogvar

Hi, I need advice on how to implement a Review Management System. Something like realized on mypresences.com or brightlocal.com Not all services allow you to interact with their API. Review services are productreviews, trustpilot, tripadvisor, whirlpool, wordifmouth, seek, indeed, glassdoor. Maybe you now a script or have an offer how …

Web Development api javascript php
Member Avatar for sandy02
1
1K
Member Avatar for guruglenn

So I'm faced with a CSS mystery. Developing a project, came across an unexpected result, and can't explain it, nor have I been able to come up with a workaround. First I define 8 custom properties properties on a custom selector <b->. Then I conditionally (based on classes defined on …

Web Development html-css
Member Avatar for Dani
1
859
Member Avatar for Dani

Does anyone have any experience using Ezoic to increase site speed? Namely ... * Is their site speed increase predictor accurate? * Does complicated Javascript still work perfectly? What are the trade-offs? * What is their pricing?! It says it's based on traffic, once the free trial ends, but I …

Web Development
Member Avatar for adaomacarl
1
1,000
Member Avatar for Rizi004

hi hope you are all fine. When user login in my web site the table update in database that the user is online and when they click on logout the table updated in database that the user is offline, it working fine but the problem is that when user login …

Web Development javascript php web-browser
Member Avatar for juniors464
1
6K
Member Avatar for SimonIoa

Hello i want to show the full image in a specified height div like this <div style="width:400px"> <img class="images" src="someimage.jpg"> </div> i tried this .images { width: 100%; height:auto; }

Web Development html-css image
Member Avatar for bollywood movie download
1
2K
Member Avatar for huha2511

My quiz has a textbox, mcq and checkbox. At first, the checkAnswer() worked when I did not input the show() function to my javascript. It showed my overall score. But after I input that show() function to display 1 question at a time, my score is always 5/7 or less. …

Web Development javascript
Member Avatar for Raja_2020
1
1K
Member Avatar for nagendraveer

Actually iam a new PHP Learner, i developed an web app using Bootstrap, PHP, Mysql. Now i want to give login access for gmail id's which are already existed in my database, so i used login with google API, but want deny login access for any other gmails which are …

Web Development api google google-api mysql php
Member Avatar for Dani
1
1K
Member Avatar for LUIS JESUS

[ayuda] ![11.PNG](/attachments/large/4/4ddf2f6f33f7cbf727101afafa83bcf6.PNG) en la parte donde va la informacion todo lo agrege correctamente lo quite porque segun el error esta en la linea 6 Y ESTE ES EL CODIGO: ![23.PNG](/attachments/large/4/de429e28fe81a179b52d07efa435dd99.PNG)

Web Development
Member Avatar for Dani
1
1K
Member Avatar for idaryl

Firstly a little overview - my site uses Wordfence (this is not the issue - just the reason for this to begin with) -- Even if Wordfence is disabled this should still work. *its just what brought this to light.* And... I have been getting numerous login attempts from different …

Web Development php wordpress
Member Avatar for raupsnics
1
2K
Member Avatar for AsjadAli

Hello Experts! I am stuck here while generating QR Code using php sql. Basically I am generating code for students using their ids and other information while fetching data from database. But the problem is that when i click on submit button so that table data store in QR Code, …

Web Development html-css image mysql php
Member Avatar for alan.davies
1
7K
Member Avatar for jParker66

I made sorting arrows for a table in illustrator and exported it out as an svg. I want to place them in a table head, and use css to style it. I will be using javascript (vannila) to swap classes to change the state of my icon. What is the …

Web Development html-css image
Member Avatar for gentlemedia
1
3K
Member Avatar for Dani

This is the code behind the demo at https://www.daniweb.com/connect/oauth/demo

Web Development php
1
3K
Member Avatar for Dani

You might be familiar with the dreaded blank page when your PHP script doesn't work. Here's how to spit out errors to the screen, instead of getting just a blank page, as well as logging errors to a file.

Web Development php
1
2K
Member Avatar for abhi10kumar

How I can get current date and 15 days back date from current date in 'Y-m-d' format ?? e.g. if current date is 2011-06-21 then $currentdate=2011-06-21 and $dateback=2011-06-06;

Web Development php
Member Avatar for AnnDash
1
3K
Member Avatar for Cedo

Hi, I want to make online shop and I made most of it but I have problem on product page.I want for "customers" ( this is my personal project so ... ) to be able to choese and then what they choese to be store into table. I struggling with …

Web Development javascript-jquery mysql php sql
Member Avatar for AndrisP
1
525
Member Avatar for tun712

Got Client with need of **"online print shop"** Client is providing paper printing (like business cards, flyers), printing on cloths, office stationary, logo embroidery on any type of clothing. Client provided some examples. **Links** * [rockdesign](https://www.rockdesign.com/) * [moo](https://www.moo.com/ca/) * [readyprint](https://www.readyprint.ca/) * [vistaprint](https://www.vistaprint.ca/) * [printshop](https://printshop.ca/) * [printvenue](https://www.printvenue.com/) **Where do I start?** …

Web Development javascript-jquery php wordpress
Member Avatar for Mara_2
1
4K
Member Avatar for whiteyoh

Hi, I have a working account generator, which passes the password to mysql with MD5. I am currently working on a forgot password script, which generates a new password and stores as md5, then emails the user, however, the new password is not recognised. This is the forgot script. Can …

Web Development php session
Member Avatar for rproffitt
1
2K
Member Avatar for Dani

We just recently (read, today) implemented SameSite cookies to prevent CSRF attacks. The thing is, while there's a decent amount of information online about the benefits of them, I can't find any other sites that implement them. Not even any of the big ones I would suspect were spearheading something …

Web Development web-browser
1
3K
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 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 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 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 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 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 hemgoyal_1990

I m working on a MLM project in which i have to store member automatically in binary tree form like 1 is root 2 is child of 1 3 is child of 1 Then 4 is child of 2 5 is child of 2 6 is child of 3 7 …

Web Development mysql php
Member Avatar for Manabendra
1
19K

The End.