800 Recommended Topics

Remove Filter
Member Avatar for
Member Avatar for borobhaisab

Hiya, I need to know something. First I thought Sitemap Xml files will list all .html and .hml and .shtm and .shtml files. All pages of the website. But now I see, Sitemap xml files also list other xml files. Check this one out for what I mean: https://www.rocktherankings.com/sitemap_index.xml So …

Web Development html-css seo xml
Member Avatar for Dani
2
911
Member Avatar for borobhaisab

I am still at procedural style programming. And so, oop code samples confuse me. I found this oop style. Any chance you can show me how to convert this to procedural style ? Test the code. It woks fine! https://bytenota.com/parsing-an-xml-sitemap-in-php/ // sitemap url or sitemap file $sitemap = 'https://bytenota.com/sitemap.xml'; // …

Web Development php
Member Avatar for borobhaisab
1
538
Member Avatar for borobhaisab

Hello, I am building a searchengine with php. Nearly finished. Now, I need to build the web crawler. Since most websites have xml sitemap for web crawlers to use to find their site links, I prefer to build an xml site map crawler than a general http crawler. I am …

Web Development mysql php xml
Member Avatar for Dani
0
657
Member Avatar for HaryBanker
Member Avatar for jademichal01
0
162
Member Avatar for 145493ka

Hi there i have a problem with my cart calculations in a website i am making and it only displays the last price of the item i add to tthe cart instead of the total of all items added <?php $select_cart = mysqli_query($conn, "SELECT * FROM `cart`"); $grand_total = 0; …

Web Development php
Member Avatar for gce517
1
178
Member Avatar for Stefce

I want to get a string from different website and to display on mine. The website have this HTML code inside it <ul data-v-61cbae47="" class="b-tabs__nav m-tabs-default m-flex-width m-size-md m-mb-reset js-tabs-switchers m-over-separator"> <li data-v-61cbae47="" class="b-tabs__nav__item m-current"><a data-v-61cbae47="" href="/jenawolfy" aria-current="page" class="b-tabs__nav__link m-with-rectangle-hover m-tb-sm router-link-exact-active router-link-active" id="profilePostTab"><span data-v-61cbae47="" class="b-tabs__nav__link__counter-title">130 posts</span></a></li> <li data-v-61cbae47="" class="b-tabs__nav__item"><a …

Web Development php
Member Avatar for rproffitt
1
151
Member Avatar for Vandiun

I'm new to Codeigniter and hope to learn best practices as I go. I currently have a table generated by DB. HTML Table: <tr> <td> <a class="galName" href="#myModal" data-toggle="modal" > <?php echo $gal['name']; ?> </a> </td> <td> <?php echo $gal['clientName']; ?> </td> </tr> <?php endforeach; ?> The Modal: <div class="modal …

Web Development codeigniter php
Member Avatar for Dani
2
630
Member Avatar for Stefce

I am trying to insert into table with PHP and MySQL but the page only refresh it self when i press the button. I haven't done debugging, i have an IF statement that displays any errors that fires if the SQL query have errors. But the thing is even the …

Web Development mysql php
Member Avatar for gce517
1
211
Member Avatar for Stefce

I am trying to make to display cells in a database that are not empty, i have URL links with images inside the table and i want to display only the cells that are not empty. For example if there is only 2 pictures added in the database i want …

Web Development php
Member Avatar for gce517
1
132
Member Avatar for gajen007

I'm running a GraphQL-Node.js-Mongo Application. I need to return all the documents upon some conditions. But I'm confused with .find() method as it requires async and await, or a callback as it's parameter. Here my code... getChatsOfUserAboutProduct: { type: sampleChat, //it has been declared already args: { userID: { type: …

Web Development
0
76
Member Avatar for Pony_1

I really need help and i would apreciate if someone can help me with this I need to do the same than here but with .NET, instead of node js. I never worked with .NET before. Is my first time working with tokens and APIs. So i kinda need help …

Web Development asp.net javascript node.js
Member Avatar for Dani
0
66
Member Avatar for Walter_17

I am new to programming and testing. I would like to know if there are any useful articles or resources where I can see how to test a web service. I need to use HttpClient to implement my own universal REST API client - TestHttpClient <T>, which will complete GET, …

Web Development file-system
Member Avatar for Dani
2
301
Member Avatar for Nine_2

I'm wondering how to update my database using a modal and multiple data from another form. This is how it looks like, ![1.png](https://static.daniweb.com/attachments/4/9f1a52cdeffddb99e65e6d73d8febd7b.png) When you click any checkbox there, the release request button will enable. ![2.png](https://static.daniweb.com/attachments/4/1db9299fc8e0995c48be16f9b41f4cc0.png) When it was clicked there's a modal will pop up: ![3.png](https://static.daniweb.com/attachments/4/4bc7fe8fc346f118c3c3282c341ac6bb.png) Now, the modal …

Web Development mysql php
Member Avatar for devphp
1
685
Member Avatar for Freetrendz

what line of code would perform a floating text in php. Any help pls!!

Web Development jquery php
Member Avatar for gce517
1
77
Member Avatar for devphp

Hello all. I am trying to use four modals in codeigniter. Main page has four simple links, each of them pops up its modal. Then each modal has a form with upload image, this means main page requires four images which would be uploaded through modals. The upload form is …

Web Development codeigniter jquery php
0
175
Member Avatar for borobhaisab

Hi, I used to know how to do this but forgotten. How can I check the extension of a url ? You see, sometimes sitemap xml files do not list site urls (.html) for my crawler to extract all the urls. Instead, they list further xml files and so my …

Web Development file-system php
Member Avatar for borobhaisab
0
154
Member Avatar for sharmavinu0024
Member Avatar for gunnarflax

I've read tutorial on tutorial and I try to work with Object Oriented PHP but the thing is that I find it rather complex. When I create a class I must include it in the current working document. It doesn't work as in Java when the compiler finds the script …

Web Development file-system oop php
Member Avatar for odeskavita
1
534
Member Avatar for Stefce

I am using google drive to upload manually the images there and with sharing link to display them on my website. But it makes troubles sometimes the images doesn't load fully. Is this proper way of displaying the images faster on your website? The website is coded using HTML only …

Web Development html-css
Member Avatar for john_111
1
237
Member Avatar for jj.dcruz

I have this code foreach loop it will get the first data form my table every iteration on the next output. I would like to have a guidance on this <select class="selectpicker form-control" data-live-search="true"> @foreach ($IncidentTypes as $Incident) <optgroup label="{{ $Incident->incident_type ." ". $Incident->id }}"> @foreach ($Incident->IncidentSubType as $subTypes) <option> …

Web Development mysql php
Member Avatar for Dani
1
230
Member Avatar for humblepi3

Repo: https://github.com/Charles-CarM/Battleship I am currently building my battleship console application in C#. I have prior experience building projects with Vanilla JS and in React. I went through a tutorial on C# and could grasp most of the concepts pretty well. I have jumped into project building because I know this …

Web Development c#
Member Avatar for humblepi3
0
264
Member Avatar for Stefce

Hello everyone. I need a little help with my html code. I want to load html file (menu.html) inside my index.html file I am trying to achieve this using JavaScript. Here is an example how i am trying to achieve this. this is menu.html file <!-- Mobile Nav (max width …

Web Development html-css
Member Avatar for Dani
1
331
Member Avatar for jyotiu

Hi ppl I am developing website for my friend's very small resort, please see [url removed] this resort have 8 rooms in total and all rooms are of same type so every room is equally priced. I just need code or logic to check availability of given [B]no. of rooms[/B] …

Web Development php
Member Avatar for Ahmad_74
0
2K
Member Avatar for ankitdixit

Hello All, I am a software developer and got the opportunity to work on a large web development project. I want to know which source allow efficient data storage feature between file system and dbms in a large project. I have asked this query on Quora and according to this …

Web Development
Member Avatar for markanderson_1
0
320
Member Avatar for Nine_2

I have this form where I'm editing a student's information like changing the provider assigned to him. I'm having a problem with it since the dropdown menu is coming from MySQL database that has the full name. ![provdata.png](https://static.daniweb.com/attachments/4/c03e715e350cced146c03f6dd137b822.png) Here's what it looks like. ![provider.png](https://static.daniweb.com/attachments/4/0e91d237fb3e840d96ee1c350432a974.png) When I try to select one …

Web Development mysql php
Member Avatar for Dani
0
122
Member Avatar for ianhaneybs

I am in the middle of making a web based system for shows and each show as a different closing date for entries. The closing date is stored in a database. I need to display a export to excel button once the closing date has passed for each show. I …

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

Hi, Can you remember once upon a time Yahoo and Open Directory or Dmoz were directories with categories and subcategories and sub-sub categories etc. ? I need to have a list of such categories. Link listing categories. Trying to build a link directory. Where can I get the lists of …

Web Development
Member Avatar for Dani
0
80
Member Avatar for KillerFrost

I'd like to incorporate a payment gateway into flutter web. Payment UI is loaded in flutter web, but I'm not sure how to get callbacks from it.

Web Development php
Member Avatar for Dani
1
169
Member Avatar for Dani

I'm trying to get Memcached persistent connections to work. We currently have a cluster of four Memcached servers each with 2GB of RAM, and four web servers. My code looks like this: public function __construct() { global $config; $this->cache = new Memcached('daniweb'); if ($this->cache->isPristine()) { $this->cache->setOptions(array( Memcached::OPT_NO_BLOCK => true, Memcached::OPT_BUFFER_WRITES …

Web Development caching php
Member Avatar for Dani
0
1K
Member Avatar for borobhaisab

Hello, I know the safest way to write a pagination section with php is to use the http_build_query(). Like so: $i = 0; while($i<$total_pages) { $i++; if($_GET['bool']=='null') { //Page Format: $_GET List. $array = array("tbl"=>"$tbl","col_1"=>"$col_1","bool"=>"$bool","input_1"=>"$input_1","lmt"=>"$limit","pg"=>"$i"); } else { //Page Format: $_GET List. $array = array("tbl"=>"$tbl","col_1"=>"$col_1","col_2"=>"$col_2","bool"=>"$bool","input_1"=>"$input_1","input_2"=>"$input_2","lmt"=>"$limit","pg"=>"$i"); } $serps_url = $_SERVER['PHP_SELF'].'?'.http_build_query($array); if($i==$page) …

Web Development php
Member Avatar for Dani
0
161

The End.