A general chat for developers. Don't ask to ask, just ask. Here's how: https://stackoverflow.com/help/how-to-ask
@gzbakku I have never done that myself and I don't know any details, but if I remember correctly, unixy systems (Linux, macOS, and so forth) represent devices as files in the filesystem (generally in /dev/
). Windows might or might not be doing the same in the case of USB. Given a device-as-file approach, you should theoretically be able to point the program to a regular file on disk that you prepared for the purpose (or something like a pipe if you want to do real-time test interaction), rather than to an actual USB device.
This is all rather abstract and I realize it's not much to go on, but hopefully this will still give you some extra leads to base your web search on.
@mainakchhari Sorry for coming across as stiff. Of course this place is meant for having humane conversations.
That said, dontasktoask.com does apply. If you open with only "any X <experts/hobbyists/fans/doctors/etcetera> in the room?", no matter your reason for opening in that way, you are unlikely to get any response. dontasktoask.com explains why that is the case.
We keep having to explain this to people, which is why my explanation has reduced to just the link at this point. Based on your response, though, I realize I have probably abstracted the response too much. I'll make sure to add a few more words next time.
<?php ?>
):<?php
include('config.php');
$percent_status_result="SELECT percent FROM retailer WHERE account_no='$retailer_number'";
$result55=$db->query($percent_status_result);
if($result55->num_rows > 0){
while($row55 = $result55->fetch_assoc()){
$percent = $row55['percent'];
}
}
if($percent >= 1.4 && $percent < 3){
$percent_status=2;
}else {
$percent_status=1;
}
?>
<h1><?php echo "$percent_status"; ?></h1>
```php
// your code here
```
$retailer_number
actually get interpolated in your query? I doubt that the problem is in the <
or >
operators.