Hardware and Software
Member Avatar

Hello there. I'm at a point where I have to set up a continuous integration environment. I have contributed to projects using CI before, but I have never set it …

Topic by minitauros

Thanks for your reply! Completely agree with what you're saying, but I think that even though it might not be 100% valid CSS that the Sass compiles to, if it …

Hardware and Software
Member Avatar

Hello there. I'm at a point where I have to set up a continuous integration environment. I have contributed to projects using CI before, but I have never set it …

Hardware and Software
Member Avatar

Hello there. I'm at a point where I have to set up a continuous integration environment. I have contributed to projects using CI before, but I have never set it …

Web Development
Member Avatar

Hi everyone, tried to display next and previous records using Next and Previous buttons but unable to do so. The record displayed is the current record whenever i click the …

Topic by Sophia_1

For starters, I don't see any code where you are actually displaying something that you fetched from your database.

Web Development
Member Avatar

Hi i have got multiple check box working in test file but when i try and put it and check box all i get is array i put this bit …

Topic by janicemurby

I ran the same code locally and it's working (the code I submitted as an example, that is). So if that's not working for you we may have bigger problems …

Web Development
Member Avatar

i want to set a default value of option box and that value is fetch from database. here is my code it works fine with number but my month are …

Topic by Sajjad_1

Try this:

<?php 
$month=array("Jan","Feb","Mar","Apr","May","June","July","Aug","Sep","Oct","Nov","Dec"); foreach($month as $m)
{ 
    printf('$m = %s, $birth[1] = %s, same? %s', $m, $birth[1], $m == $birth[1] ? 'yes' : 'no');
} 

Is there any record …

Web Development
Member Avatar

i want to set a default value of option box and that value is fetch from database. here is my code it works fine with number but my month are …

Topic by Sajjad_1

What is in $birth[1]?

Web Development
Member Avatar

Hi i have got multiple check box working in test file but when i try and put it and check box all i get is array i put this bit …

Topic by janicemurby

Something like this should be working:

<?php
$interests = array();

if (!empty($_POST['interests'])) {
    $interests = $_POST['interests'];
}

if ($interests) {
    echo 'Interests:<br>';
    foreach ($interests as $i => $interest) {
        echo …
Web Development
Member Avatar

Full error: xengine.js:2 Uncaught SyntaxError: Block-scoped declarations (let, const, function, class) not yet supported outside strict mode

I have no framework. This is pure flat HTML, CSS and JavaScript.

HTML …

Topic by Aeonix

On the first line of your file with the error, type 'use strict' followed by a newline. That should fix it. Some stuff in Javascript is only supported if you …

Web Development
Member Avatar

hai friends...i have a doubt in php..I am using Tiny MCE editor..i want to know how to get style for the content i have entered in editor but not print …

Topic by Jiby_1

You want to know the value of the style attributes? Or? You'd have to write a regex PHP parser for that, or maybe you can do some nice stuff parsing …

php
Web Development
Member Avatar

HI guys, I've just run into an issue. Basically I'm working t a wordpress site, and there are some conflicts with the usage of the "$" sign so I used …

Topic by Violet_82

Yes it does.

(function($) {

    // Code

})(jQuery);

simply defines an anonymous function and executes it right away, passing it jQuery as argument for $. You can put everything inside …

Web Development
Member Avatar

HI guys, I've just run into an issue. Basically I'm working t a wordpress site, and there are some conflicts with the usage of the "$" sign so I used …

Topic by Violet_82

I know, that's why I posted the solution above. Look at it again ;). Do you see a document.ready anywhere?

Web Development
Member Avatar

I am trying to fetch data from multiple table but i am getting this error The used SELECT statements have a different number of columns

4 tables will have different …

Topic by shany0786

UNION and UNION ALL statements should have individual select statements having the same number of columns. If you know the number of columns are different, you can add "dummy" columns …

Web Development
Member Avatar

I am trying to fetch data from multiple table but i am getting this error The used SELECT statements have a different number of columns

4 tables will have different …

Topic by shany0786

UNION and UNION ALL statements should have individual select statements having the same number of columns. If you know the number of columns are different, you can add "dummy" columns …

Web Development
Member Avatar

I am trying to fetch data from multiple table but i am getting this error The used SELECT statements have a different number of columns

4 tables will have different …

Topic by shany0786

JOIN works if tables have different column names.

Example:

SELECT table_a.name, table_b.username FROM table_a JOIN table_b ON table_a.user_id = table_b.user_id WHERE table_a.user_id = 1

In the ON part of the …

Web Development
Member Avatar

I am trying to fetch data from multiple table but i am getting this error The used SELECT statements have a different number of columns

4 tables will have different …

Topic by shany0786

Why don't you use a JOIN? :)

Web Development
Member Avatar

I was wondering what you all thought on web development platforms that enable users with no programming knowledge to create websites for example http://www.wix.com . I personally think that a …

Topic by V3N0M

Depends on what you want to achieve. You don't need to reinvent the wheel but building something yourself from scratch gives you important insights, insights that you will probably need …

Web Development
Member Avatar

Hello,

I have developed a form which containts to input type files option 1 is for downloadable file and second one is for features image but the problem is that …

Topic by UK-1991

Well if you want to hear why it didn't work, I think we need some more code of you to review, but if you have it working and if you're …

Web Development
Member Avatar

Hello,

I have developed a form which containts to input type files option 1 is for downloadable file and second one is for features image but the problem is that …

Topic by UK-1991

I've cleared up some code for you as it seems to be in random order. Try this out and let us know what the debug messages say, as your code …

DaniWeb Community Feedback
Member Avatar

It's cool that you are constantly developing Daniweb, but I feel that it's time to mention some things that I feel are missing since the last overhaul:

  1. Can't easily …
Topic by minitauros

you may remove ads by installing AdblockPlus; Id not change anything on main page - its ok....

And it got worse and worse and worse each day. …

Web Development
Member Avatar

hey guys..pls i need a site to download step by step video tutorials on html and css...

Topic by esedee

Nice one! I think I've learned pretty much all I know about HTML and CSS using that website.

Web Development
Member Avatar

i have installed wordpress in localhost,till yesterday it was working properly.but now i have tried to login to admin panel using localhost/destin/wp-admin,it is simply redirecting to http://localhost/destin/login/?redirect=http%3A%2F%2Flocalhost%2Fdestin%2Fwp-admin%2F this url.i have …

Topic by shashigowda

"Have you tried turning it off and on again?"

Kidding, but seriously, if this is a new installation, just reinstall and it will probably fix your problems.

Web Development
Member Avatar

I think I find a few points that are quite good to utilize:

index.php

<meta name="keywords" content="Branding, Web Design, Packaging, Illustration" />
<meta name="description" content="This is One, a multipurpose website" …
Topic by davy_yg

Yes of course :). Google around a bit and if you have questions, come back here and ask about it.

Web Development
Member Avatar

HI guys, I've just run into an issue. Basically I'm working t a wordpress site, and there are some conflicts with the usage of the "$" sign so I used …

Topic by Violet_82

You could place your functions inside an anonymous functions like so:

(function($) {

    $('#fancy_jquery_element').doFancyStuff();

})(jQuery);
Web Development
Member Avatar

I think I find a few points that are quite good to utilize:

index.php

<meta name="keywords" content="Branding, Web Design, Packaging, Illustration" />
<meta name="description" content="This is One, a multipurpose website" …
Topic by davy_yg

If you mean the name attribute of a meta tag: that's to indicate what the meta tag is indicating ;).

Web Development
Member Avatar

How to remove duplicate mobile numbers from input text box1 and print the result into text box2.

Example mobile nos:
7795012345
7795012345
7795012345
7411312354
7411312354
9900454321
9900454321
9632554123
9632554123
output …

Topic by blueguy777

Mate, do you have any idea what you are doing at all? :P What is is that you are trying to do? Are you trying to get an array of …

Web Development
Member Avatar

WHICH IS BEST TO FIND IN WEB DESIGNING

Topic by SAMMY12345

Could you formulate that as a full-scentence question? Maybe some context?

Web Development
Member Avatar

How to remove duplicate mobile numbers from input text box1 and print the result into text box2.

Example mobile nos:
7795012345
7795012345
7795012345
7411312354
7411312354
9900454321
9900454321
9632554123
9632554123
output …

Topic by blueguy777

I only included the PHP to remove the duplicate numbers. You will have to print them yourself ;).

Web Development
Member Avatar

while running the phpunit project am getting error like "cannot open file src/autoload.php".

i tried with this reference https://phpunit.de/getting-started.html. In cmd i used the below command line

phpunit --bootstrap …

Topic by malatamil

Ok because I do not fully understand from which directory you are calling your scripts, let's make clear we're on the same line here :).

So let's say you have …

Web Development
Member Avatar

How to remove duplicate mobile numbers from input text box1 and print the result into text box2.

Example mobile nos:
7795012345
7795012345
7795012345
7411312354
7411312354
9900454321
9900454321
9632554123
9632554123
output …

Topic by blueguy777

Your code with comment:

$myarray = array();
$myarray['numbers']=$_POST['numbers'];
foreach($myarray as $num){
       $numbers=$num; // You aren't creating an array here. You are giving $numbers the value of the CURRENT number in …