Posts
 
Reputation
Joined
Last Seen
Ranked #726
Strength to Increase Rep
+2
Strength to Decrease Rep
-0
100% Quality Score
Upvotes Received
60
Posts with Upvotes
45
Upvoting Members
19
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
12 Commented Posts
1 Endorsement
Ranked #858
Ranked #1K
~10K People Reached
Favorite Tags
Member Avatar for Dani
Member Avatar for borobhaisab

This is a shot in the dark, but after quickly looking at the [docs](https://simplehtmldom.sourceforge.io/docs/1.9/), I believe the issue is that you are trying to parse an XML document using an HTML parser. In line 14, you are specifically looking for 'a' tags. The xml file you linked does not have …

Member Avatar for Dani
1
1K
Member Avatar for merabetta

Ugh! I've done that, and it broke everything! This reply may be a bit too late, and you may have figured it out already. I'm going to assume that you changed the WordPress Address (URL) or the Site Address (URL), and after updating it, you can no longer access WP …

Member Avatar for bravomorris9
0
33
Member Avatar for gce517
Member Avatar for borobhaisab

@borobhaisab > And what do the other first two do if they are valid in any way atall ? The ONLY way to make them valid, is to properly place the closing bracket on [trim()](https://www.php.net/manual/en/function.trim.php). Do you remember the [order of operations](https://www.cuemath.com/numbers/pemdas/) in math (PEMDAS)? The same concept applies to …

Member Avatar for Dani
0
76
Member Avatar for ChrisJ

Try this (not tested): ``` $wallet = $user->wallet; if ($sell_video == 0 && $wallet >= 1) { $db->rawQuery("UPDATE ".T_USERS." SET `wallet` = " . $wallet - 0.5 . " WHERE `id` = '".$video->user_id."'"); } ```

Member Avatar for gce517
0
105
Member Avatar for borobhaisab

This is nothing new, and I am just adding to what others have already contributed. I'm assuming you will be using PDO for this, so this may be what you are likely looking for (not tested): $fuzzy_array = [ '%' . $search_term .'%', '%' . $search_term .'%', '%' . $search_term …

Member Avatar for borobhaisab
0
324
Member Avatar for charlie_20

In your [previous post](https://www.daniweb.com/programming/web-development/threads/539189/i-m-having-trouble-w-if), you mentioned that: > "ctltbl" is 1 row That leads me to assume that the row has only two values `id` and `expiry`, so that `$expiry` in line 10 refers to the `expiry` value in the result. If so, try this (tested): <?php $link = mysqli_connect("localhost", …

Member Avatar for wwwalker
0
119
Member Avatar for rproffitt

Well, they are hitting all the right notes: "discreetly (sic)" "60-40%" (better than 1%) "legally obtained" "banking details" "my number" "keep this private" "legitimate fund" "transferred legitimately" Looks legit

Member Avatar for gce517
2
26
Member Avatar for ___150

> But the query is not catching. What do you expect the query to return?

Member Avatar for gce517
0
136
Member Avatar for ___150

Try this: echo preg_replace('/@[\w+]/', '@' . ucfirst ($str[1]), $str); or echo preg_replace('/[@][\w+]/', $str[0] . ucfirst ($str[1]), $str);

Member Avatar for gce517
0
62
Member Avatar for RC_820

$date = (new DateTime())->format('Y-m-d\\TH:i:s.vP'); echo $date; Outputs: 2022-11-17T08:07:33.043-05:00

Member Avatar for gce517
0
19
Member Avatar for Saboor880

If you haven't done so already, check out https://codejava.net/java-se/jdbc/connect-to-apache-derby-java-db-via-jdbc

Member Avatar for JamesCherrill
0
285
Member Avatar for ___150

Assuming that your query `SELECT * FROM users WHERE username IN ('test','Test')` result is `$user` as: 0 => [ 'user_id' => 1, 'username' => 'test' ] 1 => [ 'user_id' => 2, 'username' => 'Test' ] Output is: <a href='#' title='1'>@test</a> <a href='#' title='2'>@Test</a> Seems to me that it DOES …

Member Avatar for ___150
0
114
Member Avatar for Virat_4

The problem is in your column distribution. Try this: .container { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; grid-template-rows: 1fr 1fr 1fr; grid-template-areas: "header header header header" "leftsidebar main-top main-top rightsidebar" "leftsidebar bottom-left bottom-right rightsidebar" "footer footer footer footer"; } This will fix bottom-left, bottom-right, and also both side bars.

Member Avatar for gce517
0
49
Member Avatar for borobhaisab

> But why it fails to extract further xml sitemap links from this following particular xml sitemap ? That is the big issue! https://bytenota.com/sitemap.xml It is not failing. That particular XML sitemap (https://bytenota.com/sitemap.xml) does not list more XML files. Unlike with www.rocktherankings.com, it is not a `sitemap_index.xml` file. **Update:** If …

Member Avatar for Dani
0
214
Member Avatar for borobhaisab

Howdy! Maybe this article will point you in the right direction to determine when to stop crawling: https://seosly.com/blog/how-to-find-sitemap-of-website/

Member Avatar for Dani
2
910
Member Avatar for borobhaisab

Disclaimer: I am not a sitemap/seo expert (or an expert in anything else, for that matter). Correct me if I'm wrong, but I think that in order to find the sitemap, you would have to crawl the website anyway. You would start by looking for the sitemap. If you find …

Member Avatar for Dani
0
651
Member Avatar for borobhaisab
Member Avatar for borobhaisab
1
538
Member Avatar for HaryBanker

"Easy to use" is a very subjective term. What may be easy to use for me, might not be so for you, and *vice versa*. It also depends on the types of features you want on your website. In any case, I'm sure you've already googled for [easy to use …

Member Avatar for jademichal01
0
157
Member Avatar for 145493ka

There are two reasons why you are not getting the correct calculation for grand total. First, `$sub_total` is a string, not a number. Why? Because you are assigning to it a string, which results from using `number_format()` on `$fetch_cart['price'] * $fetch_cart['quantity']`. Second, even if `$sub_total` is not a string, you …

Member Avatar for gce517
1
177
Member Avatar for FarrisFahad

This may be what you're looking for: https://codepen.io/ndaidong/pen/PpBwVz FWIW, I googled 'javascript move object with mouse' And here is nice, detailed post that you may benefit from: https://javascript.info/mouse-drag-and-drop

Member Avatar for gce517
0
22
Member Avatar for Stefce

Assuming that: 1. The structure is consistent and all posts and media counts will be displayed in that `<span>` tag, and 2. You are reading the HTML line-by-line, a regular expression could be useful. <?php $pattern = '/<span[^>]+>([\s\S]+)<\/span>/'; // @see https://stackoverflow.com/a/24029432 // Assuming that you fetch the HTML contents and …

Member Avatar for rproffitt
1
151
Member Avatar for Stefce

Here you go: <?php $sql = "SELECT pic1, pic2, pic3, pic4, pic5 FROM modelprofile WHERE name='$name'"; $result = $conn->query($sql); if($result === false) { trigger_error('Wrong SQL: ' . $sql . ' Error: ' . $conn->error, E_USER_ERROR); } else { while($row = $result->fetch_assoc()) { while(!empty($row)) { for ($pic_counter = 1; $pic_counter <= …

Member Avatar for gce517
1
123
Member Avatar for Stefce

You posted this same question to stackoverflow, where you received what I would consider very helpful suggestions, which are pretty much in line with what Dani is suggesting: *debug your code*. Running your code (including the form you edited out of your stackoverflow post), I see the following output after …

Member Avatar for gce517
1
210
Member Avatar for adnanfarooq518

Hi! I tried browsing to your sites with a few browsers (Chrome, Firefox, Opera, Safari), and the sites display correctly, which is subjective since I don't know what kind of "correctly" it is you are expecting (some screenshots might help). For me, the text is "normal" (?) and doesn't show …

Member Avatar for gce517
0
11
Member Avatar for Aman30@

1. Pay attention to grammar and punctuation. 2. Write your content so that a twelve-year-old can understand it. 3. Read. TL;DR I don't want to be THAT guy, but I suspect that if your responses on Quora are similar to your post and comment here, it could be that Quora's …

Member Avatar for odeskavita
0
64
Member Avatar for aibreansiyue

I think the problem is in your update statement. Also, what are you trying to do in line 16? Perhaps you were thinking of assigning the value to another variable (e.g. `$id = $_SESSION['id'];`)? Try: $sql = "UPDATE supplies_table SET files = ? WHERE id=" . $_SESSION['id']; This assumes that …

Member Avatar for gce517
0
133
Member Avatar for Freetrendz

A single line of PHP code? Sure! <?php echo '<div><p>I am not floating.<span style="float: right">Look at me floating!</span></p><div>'; ?> This resource might be helpful to you: https://developer.mozilla.org/en-US/docs/Web/CSS/float

Member Avatar for gce517
1
75
Member Avatar for Bidesh

So let me get this straight: so you have developed your website locally and want to include js files hosted on the Internet. If I am correct in that assumption, you can use a CDN, such as [Cloudflare](https://www.cloudflare.com/). Good luck!

Member Avatar for gce517
0
28