Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

Hi there. So nice to meet you!

Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

I think the reason you haven't gotten any responses, even though it's been a full week already, is because you're not really explaining the question you have. I see your query $query="select * from voiture"; ... is that not what you want? Do you need help coming up with a proper SQL query with a WHERE clause that only matches cars that fit certain criteria? Do you need help figuring out how to create HTML for filtering, etc.? Where are you stuck and where can we help?

Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

Sorry, we won't just do your homework for you. Please show us what you have tried so far and where you're stuck, and we'll try to help.

Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

Nice to meet you.

Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

Hi Edna! Nice to meet you.

Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

What’s the assignment, how far have you gotten, and where do you need help? We can try to help you with it.

However, if you’re looking for someone to do your project for you, check out sites such as Upwork.

Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

Hi there and welcome!!

Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

Look into Amazon Web Services (AWS). There can be a bit of a learning curve, but it’s apay-as-you-go pricing model, and it can grow with you from inception to enterprise. It’s great for startups that want to grow fast and have unpredictable traffic patterns.

Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

Hi there. Nice to meet you.

Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

Hi there! Nice to meet you.

Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

Where in NY are you from? Born and raised on Long Island, but I moved to California 4 years ago.

bruce.hagen commented: Hi Dani, I was born in Minnesota, Moved to California when I was 9. I work remotely from my home. +0
Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

Hi there and welcome to DaniWeb!!

Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

Payment gateways? Paypal, Braintree, and Stripe. Like those?

Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

Hi there and welcome to DaniWeb!

puja13 commented: thank you +0
Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

Our allowable file sizes are pretty generous. Is the image multiple megs in size??

Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

Hi there. Welcome to DaniWeb!!

satheeshsoft commented: thanks +0
Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

Hi there!!

Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

Sounds to me that the software must exist because it’s in use by many different businesses. Call a psychic and call for phone sex are some of the seedier businesses that I’m sure use this type of technology. But it also exists for call for attorney help and that sort of thing.

Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

Hi there. Welcome to DaniWeb :)

It does, however, seem like you are in India.

Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

Hi there and welcome back!

I’ve spent the past 20 years just running DaniWeb. Over the past six years or so, I also opened up a tech coworking space in Queens, patented the algorithm that DaniWeb uses to match question askers with potential answerers, and made a dramatic life change by moving from NYC to Silicon Valley in California.

Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

Is that your company? What do you do for them?

Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

Hi and welcome to DaniWeb!

Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

Video content can be important to getting the details across. For example, many people do their initial research online and then May travel to the local store to see the product in person and physically see what it is they’d be getting before making the purchase. With Covid, seeing items physically is no longer an option in many cases around the world. Video with close-ups of the product could be a good alternative.

I just recently purchased a house, and noticed that the real estate market, in all price points, has quickly adapted to virtual open houses, for example.

It’s my own opinion that video only works well when it’s being shown to a pre-qualified potential customer. In other words, someone who has already experienced some level of interest that would make them take the time to sit through a 30s or 1min video ad online. People are not sitting through video ads online the same way they are on TV.

Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

You should definitely be able to apply letter spacing to list items. Can you show your CSS and what isn't working and I can try to help?

Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

I definitely was in no rush to embrace AMP. I finally added it over the summer as part of a huge SEO initiative. When Google Search Console released Core Web Vitals, mobile vitals were tipping between Poor and Need Improvement for speed. I added AMP to make sure that mobiel would be listed as Good.

Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

i have tried doing name="user_ans[]" at the textfield but it still does not work for me

If you do <input type="text" name="user_ans[]"> for the textfield, what is the value of $_POST?

In other words, what happens when you do something like: var_dump($_POST);?

andrevanzuydam commented: I agree with this method - makes an array which is easy to process +6
Biiim commented: This would be my answer(name="somefield[]") +8
Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

In other words, it's not working for you because you have 3 textboxes, and each one has the same name "user_ans". That means that you're only sending the last value of user_ans back to the server. In my code, I'm naming each textbox the ID for the question being asked.

Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

Oh, I think I see what you're trying to do. Try something like this:

<?php

$question_arr = array(
    0 => array(
        'question' => 'Question Here?',
        'answer' => 'Answer Here.',
    ),
    1 => array(
        'question' => 'Question Here?',
        'answer' => 'Answer Here.',
    ),
    2 => array(
        'question' => 'Question Here?',
        'answer' => 'Answer Here.',
    )        
);

// Pick 3 random questions
$random_questions = array_rand($question_arr, 3);

echo '<form action="" method="post">';

// Foreach of the random questions picked
foreach ($random_questions AS $key => $value)
{

    // Ask the question and present the user with an input box

    echo $value['question'];
    echo "<input type='text' name='$key'>";
}

echo '<input type="submit" value="Submit Quiz">';    
echo '</form>';

// What to do if we are submitting the form

if ($_SERVER['REQUEST_METHOD'] == 'POST')
{

    // Start with a score of 0
    $score = 0;

    // POST names should be the question id
    foreach ($_POST AS $question_id => $user_answer)
    {
        if (isset($question_arr[$question_id]))
        {
            // If the user answer is the same as the answer in the question array
            if ($user_answer = $question_arr[$question_id]['answer'])
            {
                $score++;
            }
        }
    }

    echo 'Score is: ', $score;
}

?>
Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

$_POST['user_ans'] will always be just a single value of the textbox.

What does your HTML code look like where there are multiple textboxes where the user types in multiple answers?

Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

Does look to be changes made to the way they report the results, but doesn't explain how/why the number would go down. If they're excluded via robots.txt, then Google knows about them. If they knew about them yesteday, why did they forget about them today? Other sections of GSC report go back as far as 2017 when reporting pages.

rproffitt commented: As to why, usually because they are keeping a lot more under the hat. +15
Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

I still wonder about the timeframe here.

Almost all on January 5th, and then small dips weekly since. Google Search Console coverage report only updates once a week or so.

Could it be Google aging these entries in their system?

I'm not sure what you're referring to. Are you referring to Google aging entries in GSC specifically, or within their index? Can you link to the article?

Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

What's the timeframe here? Why I ask is that the Verizon and other outages may be a factor and it could bounce back.

Nono, you're misunderstanding. This is the blocked by robots.txt coverage report. We don't want it to bounce back. Also, it has nothing to do with traffic.

Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

While a much smaller percentage of search volume goes to paid ads than organic results, it's possible that a smaller percentage of marketing budget goes to organic than goes to paid ads.

Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

The number of known pages in Google Search Console blocked by robots.txt in the Coverage report just recently started going down. Over the course of this month, it went down from about 400K pages to 200K pages.

No changes to robots.txt file in 6+ months nor any big structural changes, 404'd pages, etc. in that amount of time either.

What would cause this number to go down on its own?

Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

Yes, you can accomplish this with a combination of Wordpress and Magento. Both are heavily customizable CMS solutions. Magento is specifically for e-commerce.

Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

Something like this:

div#textapposite { float: left; width: 50%; }
p#apposite { float: right; width: 50%; }
Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

I guess the basic question is whether there is an easier quicker way to do this other then creating a mysql table to keep track of the visitor count per sub-domain?

It depends on what you need to track. If you just want to track traffic count, then simply use ?utm_ variables and track them with Google Analytics. They'll also track conversions for you.

If you actually need to split commissions, etc. you need to set up a database to manage this, or use a third-party affiliate suite.

Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

So sorry for not seeing this question until now. This can be managed yourself, through a database. However, you don't need a subdomain for each traffic source. You can easily pass in a UTM parameter for each traffic source, which has the added benefit of being recognized and stored in Google Analytics.

Another option is to use many of the affiliate suites that exist to manage this, but of course that would mean sharing commission.

Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

Hey. I am an affiliate marketing, would love to know which antidetect are you using? I need your help.

Sorry, I'm not familiar with what an antidetect is? What are you trying to accomplish?

Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

Are you saying it gives the error message even if you are not intending to submit the form but rather just load the page to display the form to fill out?

What are the contents of the p.php file?

cosmo13 commented: p.php file creates connection to database and checks it +0
Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

What happens if you comment out the print statement and replace it just with something simple like print('hello world')? What if you have two print statements in a row, as so:

print('hello')
print('world')

Do both of them execute?

Nether_1 commented: Despite changing literally nothing else, I did this and it started working, which is somewhat boggling to me. Anyway, the problems fixed. +1
Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

Hi,

Firstly, I apologize for the confusing message about your account being banned (per your email). This post got caught up in our spam filter. Our automated spam bot falsely detected spam within this post. I've reversed that.

Soooo ... about the rest of your questions :)

DaniWeb suffered a massive data breach back in 2015 in which email addresses were stolen, but passwords were NOT compromised. You can read more about it on our FAQ Page. This is what Have I Been Pwned? is referring to. It was an unfortunate incident that happened in 2015.

You received the Oops! security message most likely because an anti-CSRF token wasn't detected when you filled out the form. This most often cause of this is because you started to fill out the form, then hit back in your web browser. It can also sometimes happen if you have multiple DaniWeb tabs open in your web browser at once, and you load a page containing form in one tab, and then subsequently submit a form in a second tab before submitting the last form loaded. Either way, it's a security measure meant to protect you.

The FAQ page I linked to above should also explain how to delete your account, if you'd still like to go ahead and do that. You can also change your password, of course. Keep in mind, your password was never breached through DaniWeb. Feel free to reply here, or to email me back, or send me …

Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

What specifically is failing? Are you seeing any error message?

At first glance, you are not escaping variables passed into the MySQL query. Make sure to always do this. Aside from being a huge security concern, this could potentially be causing your queries to error.

Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

PHP short tags are just a slightly different abbreviated php syntax that makes it easier to read and understand what’s going on when PHP is mixed into HTML templates.

Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

by adding as internal link actually you are guiding google about your site structure.

I don't believe this is accurate. Google knows it's an internal link because the domain is the same whether or not it's presented in the HTML as relative or absolute. The benefit to using a relative URL structure is that you're not repeating https://www.domain.com a million times in your HTML code for every internal link, thereby bloating your HTML file size and download time.

Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

So basically what I'm suggesting is have the exact same download PHP code that fetches the local server's copy of the file, across both web servers. One is let's say domain.com and the other is domain.co.uk. On both servers, the download.php script will serve up it's local version of /home/downloads/file.iso.

Then, on that front-end HTML page, simply have:

<a href="https://www.domain.com">US Download</a>
<a href="https://www.domain.co.uk">UK Download</a>

This is also a great use case for the free verison of the Cloudflare CDN, which will host the file across hundreds of datacenters and serve it up wherever it's fastest to the end-user.

Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

When the function is called I get a blank screen

This happens when there's a PHP fatal error. Usually, it's a syntax error, but it can also be when a function call can't be made, parse error, or any number of different things. At the top of the PHP script, you can put the following to display on screen what the error actually is (just do this in developer mode and not in production so your end users won't see it):

ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(E_ALL);

Also, and this is just a recommendation, you might wish to use PHP short tags. You may need to enable this on your server if it's not enabled by default, but they make it much easier to write PHP templates. Instead of your existing PHP template, when using PHP short tags, you can write it as the following instead, which makes it much clearer to understand:

<tbody>
    <?php foreach ($friends as $row): ?>
            <tr>
                <td>
                    <span class="font-w600"><?= $row['user'] ?></span>
                </td>
                <td class="d-none d-sm-table-cell text-center">
                    <?= $row['fname'] ?> <?= $row['lname'] ?>
                </td>
                <td class="font-w600">
                    <?= $row['mem_status'] ?>
                </td>
                <td class="d-none d-sm-table-cell text-center">
                    <?= $row['join_date'] ?>
                </td>
           </tr>
     <?php endforeach; ?>
</tbody>
Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

Try something like the following:

div.pink-box
{
    background-color: pink;
}

div.pink-box .text
{
    float: left;
}

div.pink-box .number
{
    float: right;
}

div.pink-box:hover .number
{
    display: none;
}

Of course, add all your other CSS properties as well.

Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

If that’s the case, then why do you need different code at all between the two servers? Just make all URIs and paths be relative so they will work regardless of which server is reached.

Dani 4,653 The Queen of DaniWeb Administrator Featured Poster Premium Member

I'm curious what the output looks like if you were to do print_r($checkbox); on line 3 of your PHP file, immediately after setting the value of $checkbox to what's in POST (above your foreach loop).