Featured Editorial

After page loading , when I click on the ellipsis , horizontal tabs transform from bottom of the product image . After opening of the tabs menu bar , first tab should open by default.I tried multiple solutions but none of them worked out.

Continue Reading

Recommended Topics

Member Avatar

Hello Daniweb Community, I have been talking on a couple [Facebook](http://www.facebook.com) groups such as sale pages where you post your own stuff for people to buy. Most groups like this have rules about bumping like once per day, every 12 hours etc... So it got to the point where it became annoying to have to bump my posts every so oftern so I managed to construct this script that'll do it automatically with the help of a cronjob that can be set to bump at whatever time you like. So I have made a simple easy to use (ha may …

Member Avatar
3
2,649
Member Avatar

Can anyone suggest me which one is a better platform for e commerce website development?

Member Avatar
9
3,343
Member Avatar

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, '.') + 1)), $specificextensions)) { $files[]=array('nomedapasta'=>pathinfo($file,PATHINFO_DIRNAME)); } } return $files; } $specificextensions is an array with 'avi','mkv' and 'mp4' as values. $startfolder is a string with "/mnt/HD1_4TB/refazer/A View to a Kill" as value. When i try to run the function, it throws me an error saying "failed to open dir: No such …

Member Avatar
0
101
Member Avatar

Has anyone started working with PHP 8 yet? Any big backwards compatibility issues? I finally got around to upgrading to php 7! Lol better late than never.

Member Avatar
2
136
Member Avatar

Hi, I tried to view crystal report by using crystal report viewer in Visual Studio 2010. However when i tried to declare ReportDocument, it is underlined with blue curly line. I had done the following in the code behind file. [CODE]Imports System.Data Imports System.Data.Odbc Imports CrystalDecisions.CrystalReports.Engine Imports CrystalDecisions.Shared Imports CrystalDecisions.Web[/CODE] the first two crystalDecisions was underlined with green curly line as well, and i had no idea how to solve it. i had done the following in asp.net page [CODE]<%@ Register Assembly="CrystalDecisions.Web, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692fbea5521e1304" Namespace="CrystalDecisions.Web" TagPrefix="CR" %> ... <form ID="crystalForm" runat="server"> <div> <CR:CrystalReportViewer ID="CrystalReportViewer1" runat="server" AutoDataBind="true" EnableDatabaseLogonPrompt="False" EnableParameterPrompt="False" PrintMode="ActiveX" …

Member Avatar
0
962
Member Avatar

I created an html page with days of the week Mon Tue Wed Thu Fri Sat Sun The corresponding page is linked to each day I would need that when the page opens, the day is automatically highlighted based on the day of the week and that there is a bar under the day to highlight it Example: if today is Friday, Fri becomes a different color than on other days I've seen similar things on web pages, but I don't know where to start. Is there anyone who can help me? Thanks

Member Avatar
1
270
Member Avatar

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 list of the most recent friends that a member has referred to their website that have subsequently registered as a client(member) I’m doing it in a function because this information will be displayed in a block on their back office dashboard, along with other data blocks on the same page …

Member Avatar
0
138
Member Avatar

Hii :) I have a list which is presented on one line so I am using css 'float: left' to do this. In one list there is 3 entries. It should look like this <ol> <li> 1 </li> <li> text </li> <li> 1.30 </li> </ol However the way it is layed out for me, it means that the middle entry doesnt fit properly so what I have done is set the overflow property to hidden and when hovered over it would show the full name. However when I hover over the text then is below the 3rd entry. Is there …

Member Avatar
0
93
Member Avatar

My website has a mirror of the download directory in the U.K.. On my download page I have 2 buttons, one for a U.S. download and one for a U.K. download. The current download page passes the filename to the download script. The download script (located in the download directory) for the U.S. download reads as follows: <?php $php_scripts = '../../php/'; require $php_scripts . 'PDO_Connection_Select.php'; require $php_scripts . 'GetUserIpAddr.php'; function mydloader($l_filename=NULL) { $ip = GetUserIpAddr(); if (!$pdo = PDOConnect("foxclone_data")) { exit; } if( isset( $l_filename ) ) { header('Content-Type: octet-stream'); header("Content-Disposition: attachment; filename={$l_filename}"); header('Pragma: no-cache'); header('Expires: 0'); readfile($l_filename); $ext = …

Member Avatar
0
92
Member Avatar

hi all iam working as software developer i wish to create my blog website using asp.net and C# so any one have idea so please help me in this Please thak you in advance

Member Avatar
1
1,889
Member Avatar

Hello everyone! I ran into a problem that when calling the API, its response comes after the code was processed and I get undefined in the response. For this, I have 2 files start.js and api.js. In start.js I call api.js and wait for a response: `const api = require("./api"); const result = api.users(); console.log(result: ${result});` In api.js, I call the test api itself: const request = require('request'); module.exports = { users: function() { request.post({ url: "https://reqres.in/api/register", json: true, body: { "email": "eve.holt@reqres.in", "password": "pistol" }, headers: { 'User-Agent': 'request' } }, (err, res, data) => { if (err) { …

Member Avatar
-1
27
Member Avatar

Hi All, It has been a long while since I've been here, but I have hit a wall/mind block/ whatever you want to call it. This should be simple, but drawing a complete blank. I have an affiliate website where my clients can refer us to their friends and receive our gratitude through free products... But I need to be able to track who referred who. I've done it years ago, but not remembering how. I want to use the base domain so it goes to index.php so, it would be DomainName.com/'Username' where 'Username' is unique to each client. When …

Member Avatar
0
133
Member Avatar

Hi guys, my siema slider plugin is not working in the jquery tab, everything i switch my tab, my image slider unable to slide image, only if I resize my browser and the slider image will function back again. Below there is a demo codepen link, hope i can get some advise from u guys. thanks alot https://codepen.io/Eugene7/pen/LYRmyZW HTML <main class="maingallery"> <div class="containergallery"> <nav class="top-nav"> <div class="topnavrow"> <ul class="navbar-left tabprofile"> <li> <a class="element hahafav" href="#favourite" onclick="favourite(&lt;?php echo $data4['totalviews']; ?&gt;, &lt;?php echo $data5['totaladv']; ?&gt;, &lt;?php echo $data6['totallike']; ?&gt;, 'favouritefireadv')">favourite</a> </li> <li> <a class="element" href="#advertisement" onclick="advertisement(&lt;?php echo $data7['totalviews']; ?&gt;, &lt;?php echo $data8['totaladv']; …

Member Avatar
0
77
Member Avatar

My main download page passes an id number for the file to be downloaded. In the mydloader.php (located in the download folder), I have a pdo sql query to set $l_filename to the filename in the database. I need to use $l_filename in <a href to download the file. My code follows: <?php $php_scripts = '../../php/'; require $php_scripts . 'PDO_Connection_Select.php'; require $php_scripts . 'GetUserIpAddr.php'; function mydloader($id=NULL) { $ip = GetUserIpAddr(); if (!$pdo = PDOConnect("foxclone_data")) { exit; } $stmt = $pdo->prepare('SELECT filename FROM files WHERE id =?'); $stmt->execute([$id]); $l_filename = $stmt->fetch(); if( isset( $l_filename ) ) { <a href=""> $ext = …

Member Avatar
0
113
Member Avatar

so i have <?php ob_start(); session_start(); ?> <form action="upload.php" method="post" enctype="multipart/form-data"> <input type="file" name="file"><br><br> <input type="submit" value="Upload"> </form> <?php $file_name = $_FILES['file']['name']; $file_size = $_FILES['file']['size']; $file_type = $_FILES['file']['type']; $tmp_name = $_FILES['file']['tmp_name']; $error = $_FILES['file']['error']; if (isset($file_name)) { if (!empty($file_name)) { $location = '/user/'.$_SESSION['Username'].'/'; if (move_uploaded_file($tmp_name, $location.$file_name)) { echo 'Uploadat!'; } } else { echo 'Te rugam alege o imagine!'; } } ?> and is not working it says "Unable to move '/tmp/phppQNtB5' to '/user/axxxA/back_view.jpg' in /home/user/public_html/user/axxxA/upload.php on line 20"

Member Avatar
0
8,067
Member Avatar

I want to create a webpage which will automatically send an email before 2 days. <form action="try.php" method="post"> <p>Date From : <input type="date" name="date1" /></p> <p>Date To: <input type="date" name="date2" /></p> <input type="submit" name="submit" value="Submit" /> </form> <?php // echo("First name: " . $_POST['firstname'] . "<br />\n"); echo("Last name: " . $_POST['lastname'] . "<br />\n"); $date1Timestamp = strtotime($date1); $date2Timestamp = strtotime($date2); //Calculate the difference. $difference = $date2Timestamp - $date1Timestamp; echo $difference; ?>

Member Avatar
0
11,064
Member Avatar

I've tried absolutely everything!! How can I flush the output buffer in CodeIgniter from within either my controller or my view?? They use some weird double/fake output buffer or something. Grrr!

Member Avatar
0
2,539
Member Avatar

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" . "</a>"; ?> "> Thanks . . .

Member Avatar
1
102
Member Avatar

Does anyone know of an automated tool that will convert a lot of jQuery code to native javascript? I think the bulky jQuery library is really slowing down my site but manually converting all my code seems very daunting. Ideally there would be something that was so flawless I could continue coding with jQuery and it would deploy my code as native JS. Hey, a girl can dream, right?

Member Avatar
0
244
Member Avatar

I'm struggling to upgrade from [CodeMirror 5.5](https://codemirror.net/) to [CodeMirror 6](https://codemirror.net/6/). Previous versions of CM have always been a drop-in Javascript library. Upload the JS files, upload the CSS file, include a `<script>` tag referencing the JS file, and then use the API to make a bunch of calls to incorporate it into your web app. This latest version of CM is still an early prototype. I'm trying to follow the instructions in its [Github repo](https://github.com/codemirror/codemirror.next/) but I'm thoroughly confused. So far I was able to do `npm run dev` and I'm able to get a test page that works fine …

Member Avatar
1
152
Member Avatar

In terms of performance, which is the best jQuery CDN to use? The one at cdnjs.cloudflare.com, googleapis.com, jsDelivr, code.jquery.com, etc?

Member Avatar
0
450
Member Avatar

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 table with their work. I now want to be able to give the option to retrieve all of the rows in a table and be able to select a row to load. I have previously created a form where i populate a single field into a drop down and select …

Member Avatar
1
235
Member Avatar

Hello, I Have this website and I am trying to make the footprint smaller in text size. How to do so? http://gsa-constructionspecialist.com/home/vision-mission https://www.tinymce.com/docs/configure/content-formatting/#fontsize_formats This is the fontsize_formats in tiny mce. I already try to insert a new feature to change font size in tinymce and have not been successful yet. Can anyone help me out?

Member Avatar
0
868
Member Avatar

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.

Member Avatar
1
158
Member Avatar

Hlo Plz anyone give a coading of classic asp i want to save my csv and excel file in databse

Member Avatar
0
1,233
Member Avatar

Hello to all, I am trying to execute a mysql query for selecting * rows from the table where user name = [one of the usernames stored in an array]. Ok. Sorry if I am not clear. Now I have an array naming $users[]. I want to select all the users listed in $users[] from a mysql table. Please tell me how can I do that.

Member Avatar
0
19,848
Member Avatar

I am trying to hide a radio button based on wether or not a user is an admin <?php if (($_SESSION['admin']) == 0) ?> <script>document.getElementById('adminbutton').style.display = 'none' </script> <?php if (($_SESSION['admin']) == 1) ?> <script>document.getElementById('adminbutton').style.display = 'block' </script> Obviously the above doesn't work.. Any help is, as usual, greatly appreciated. Thanks

0
51
Member Avatar

Hi. I have one drop down menu and one textfield. The drop down menu will display the book's id and book's name that retrieve from the database while the textfield will automatically display the book's name based on the user selection from the drop down menu. I try to use the javascript function to do this but since the value for the option is book's id so the textfield is displayed the book's id but not the book's name. What should I do so that the textfield will display the book's name? Below are parts of the code. [CODE] <?php …

Member Avatar
0
284
Member Avatar

I would like to start building a search database, by providing a portal for users to search a search engine, like Google. Is it possible for a visitor to the portal site, to present to Google their own IP address, instead of the portal site's IP address? Is it also possible, for the portal to access the search result, so that it can use the results to build a search database?

Member Avatar
2
197
Member Avatar

I have a fillin form , which has a submit button. In order to get to the fillin form, the user has already been authenticated and a session has been created, and variables have been added to the session. In order to process the information, I have another 'insUpSel.php' file which does two things: 1) populates a MSSQL database via a stored procedure with the contents of the session 2) retrieves the results from the MS SQL table and populates an HTML table with multiuple result rows. I want to prevent users from running the 'insUpSel.php' form manually and if …

Member Avatar
0
154

The End.