824 Recommended Topics

Remove Filter
Member Avatar for
Member Avatar for dimitrilc

## Introduction ## In the last tutorial, we learned [how to set up our own RabbitMQ exchanges and queues](https://www.daniweb.com/programming/web-development/tutorials/538620/how-to-create-exchanges-and-queues-in-rabbitmq-server). In this tutorial, we will learn how to send messages to our custom **daniweb-exchange**. ## Goals ## At the end of the tutorial, you would have learned: 1. How to send …

Web Development java
1
559
Member Avatar for dimitrilc

## Introduction ## In the previous tutorial, we learned how to [set up our own RabbitMQ server](https://www.daniweb.com/programming/web-development/tutorials/538619/how-to-set-up-a-rabbitmq-server-in-docker). In this tutorial, we will learn how to create our own exchange and queue. ## Goals ## At the end of the tutorial, you would have learned: 1. How to create your own …

Web Development
1
315
Member Avatar for Catherine King

How to pass the linkbutton text to the modal popup. Now Im only getting a empty popup <script type="text/javascript"> $("#linkbutton1").click(function(){ var text =$("#linkbutton1).val(); $("#modal_body").html(text); }); function openModal() { $("#myModal").modal('show'); } </script> <div> <div id="myModal" class="modal fade" role="dialog"> <div class="modal-dialog"> <div class="modal-content"> <div class="modal-header"> <h4 class="modal-title"> Modal Title</h4> </div> <div class="modal-body"> …

Web Development asp.net javascript jquery
Member Avatar for Dani
0
855
Member Avatar for Nine_2

I have this form where users are adding their sessions: ![week.png](https://static.daniweb.com/attachments/4/ec419c458d6ed1f8c7b2bde71ac330e6.png) What I want to do is to show the week number in the input "week" id. My HTML tag for the service date that is on the image is: <div class="row mt-2"> <div class="col-lg-3 col-sm-6"> <div class="form-floating"> <input id="serviceDate" …

Web Development html-css php
Member Avatar for Dani
0
268
Member Avatar for borobhaisab

Hi, On this link: https://www.php.net/manual/en/function.mail.php It states: // To send HTML mail, the Content-type header must be set $headers[] = 'MIME-Version: 1.0'; $headers[] = 'Content-type: text/html; charset=iso-8859-1'; Is the charset modern or out of date or old version ? Should it not be 'utf8mb4' ?

Web Development html-css php
Member Avatar for Dani
0
100
Member Avatar for Dani

Here is the function that I use here at DaniWeb to manage flood control. It keeps track of how often a specific user or IP address is making a request, and increments a counter. If there have been no requests after 5 minutes, the counter resets to 0. It returns …

Web Development caching codeigniter
Member Avatar for Dani
4
453
Member Avatar for borobhaisab

Hello, You use raw_urlencode() on the file path. Does that mean you have to exclude the domain name part ? <?php echo '<a href="http://example.com/'. rawurlencode('Sales and Marketing'). '/search?'. 'query='.urlencode('Monthly Report'). '">Click Me</a>'; ?> Imagine the above is my link listed on one of my pages. Now, why is it necessary …

Web Development php
Member Avatar for Dani
2
299
Member Avatar for Catherine King

How to display text in modal popup from the grid's cell by clicking the hyperlink In jquery part I used window.open the code I wrote opened a new popup window so I changed it to modal popup but it loads while pageload before the click of hyperlink and blurs the …

Web Development asp asp.net javascript jquery perl
Member Avatar for Dani
0
805
Member Avatar for Chloe_6

**Reposting again due to coding problem, I have attached the files** I am having trouble getting my button to submit the words in the text box over to the table on another page. What can I do to fix this? Thanks

Web Development php
Member Avatar for Dani
2
332
Member Avatar for Chloe_6

With this I'm needing to start off by logging in. This is done by putting in the email of a customer and pressing the login button (this is the customer_login.php page). The login button goes through the index.php page and then goes to the product_register.php page. Once the product_register.php page …

Web Development php
Member Avatar for Chloe_6
0
110
Member Avatar for borobhaisab

Hi, I am not sure which mysqli error reporting function to use here. Which of the two is correct ? 1. if(!mysqli_stmt_prepare($stmt,$sql_count)) { echo __LINE__; echo '<br>';//DELETE echo 'Mysqli Error: ' .mysqli_stmt_error(); //DEV MODE. echo '<br>'; echo 'Mysqli Error No: ' .mysqli_stmt_errno(); //DEV MODE. echo '<br>'; die('Registration a Failure!'); } …

Web Development mysql php
Member Avatar for Dani
0
104
Member Avatar for serenajones

Hi this is Serena. I am a new member. Seeking your help in the future

Web Development image seo
Member Avatar for Dani
0
96
Member Avatar for subodhpatil527

I have a html table, Item_Table, with dynamically added rows containing input tags. i have to add the data from Item_Table to the database in Sql Server, so i am using javascript and C# MVC for the process. But i am getting an error saying "System.NullReferenceException: 'Object reference not set …

Member Avatar for Dani
0
84
Member Avatar for Michael_181

I have tried loading my php files to my web hosting server but the files have an error I cannot figure out . My files begin with <?php and end in ?> and then I changed to <? and ended with ?> but the server says there is a problem …

Web Development php
Member Avatar for Dani
0
79
Member Avatar for jonsan32

It's taken me months to figure out how to show/hide certain content by days throughout the year, but now I'm stuck because the code gets too big for any browser to handle once I add every day for the entire year within the script. Is there a way I can …

Member Avatar for Dani
0
77
Member Avatar for borobhaisab

Hello, $c = 'bool'; // boolean settype($c, "integer"); // $c is now integer (1) echo $c; Why has $c become the int of 1 and not any other number ? And why is the following set to an int of 0 and not any other number ? $c = 'string'; …

Web Development php
Member Avatar for Dani
0
49
Member Avatar for beyermusic2

I am new to html and css. I am putting together a project to display favorite singers and favorite movies. I am getting errors in the code. They are: I have been trying to find answers but need a little help. Any help would be greatly appreciated. âś— The photo …

Web Development html-css
Member Avatar for Dani
0
1K
Member Avatar for Chloe_6

I'm needing to be able to get a search bar to work in PHP using HTML. I have done some coding, but cannot fully grasp how to do it. What can I do to get the search bar to work? I am needing to be able to search for a …

Web Development php
Member Avatar for Chloe_6
1
75
Member Avatar for borobhaisab

Folks, Look at this youtube serp: https://www.youtube.com/results?search_query=make+money+online+in+2022 You are shown 10 search results. Now, if you want to see more results, you got to scroll to the bottom of the page and only then more search results would be presented. Otherwise not. Q1. My question is, what php function or …

Web Development php
Member Avatar for Dani
1
134
Member Avatar for RC_820

Hii are someone know the best ways to regenerate csrf token on ajax form submit

Web Development codeigniter javascript php
Member Avatar for Dani
0
477
Member Avatar for UnabashedGeek

Stupidly, I clicked on an email attachment with an htlm extension to see what the scam was. I think I was expecting it to open in a text editor, but it ran. (Dumb, dumb, dumb!) Anyway, I've paid my dues by restoring over a terabyte of backup onto two disks. …

Web Development javascript
Member Avatar for Dkevinjames
0
153
Member Avatar for Chloe_6

**I have attached all of the coding needed** I'm using PHP to design a website. The problem that I am facing is that, the button on the add products page isn't taking the inputs and putting them on the products list page. I'm wondering what I can do to get …

Web Development php
Member Avatar for rproffitt
0
142
Member Avatar for RC_820

can someone suggest me how to build referral system with code referral and bonus table mysql

Web Development codeigniter php
Member Avatar for Dani
0
114
Member Avatar for borobhaisab

Hello, One of the following code got htmlspecialchars. Which code is correct out of the two ? Both codes build pagination section. Need to add security so users cannot sql inject. Not using http_build_query function here as I want to build a pagination section without it and already built one …

Web Development html-css php
Member Avatar for Dani
0
86
Member Avatar for borobhaisab

Hello, Was reading this tutorial on the INTVAL(): https://www.w3schools.com/php/phptryit.asp?filename=tryphp_func_var_intval How is this an INT ? $e = array("red", "green", "blue"); echo intval($e) . "<br>"; And, when to use int() function and when to use INTVAL() function and when not to use them ? I am confused!

Web Development php
Member Avatar for Dani
0
54
Member Avatar for Dani

Sometimes we have a need to take a simple PHP array and represent it as an encoded string. One use case that we have for this at DaniWeb is when a new user signs up, and we ask them to click on a link that was sent to them via …

Web Development php
Member Avatar for Dani
2
228
Member Avatar for beyermusic2

The child selector simply refers to the NEW word in the word in the center-text class. The h2 must be singled out as child. Here's task - Add a CSS rule for all span elements that are children of h2 elements that sets the text color to #FA9F42 and its …

Web Development html-css
Member Avatar for Dani
0
3K
Member Avatar for beyermusic2

It uses a span tag in the html. The idea is to style the word NEW in the style sheet as a child. I havre code to post but how do I do it correctly?

Web Development html-css
Member Avatar for Dani
0
101
Member Avatar for beyermusic2
Member Avatar for Dani
0
76
Member Avatar for dimitrilc

## Introduction ## While creating Selenium tests, you might have found that inspecting elements manually using the web browser’s inspector could be tedious. Even after you have found the element, you still have to go through the pain of looking up the correct **xpath** syntax for this specific element. To …

Web Development spring-framework
3
264

The End.