|
And what is not working as expected?
Are there compilation or runtime errors?
Did you get any result or nothing?
Please note that we do not have access to your database or know about other code involved.
What you can do is inserting statements to print out intermediate results like the number of rows returned and the created SQL query string. The latter can be for example used with your database administration tool to check which results are returned. Are there any for the maint_id -1?
You should also check if SQL functions fail and report errors. This helps you to fix syntax errors in the query string.
|
|
|
|
|
Thanks for your reply. I have already sorted this issue. Problem was a spelling mistake in the while statement.
|
|
|
|
|
I read a lot of it and also tried some examples. On a first glance it is a very great Thing. My question: What does it means related to resources?
I mean e.g.: CP has about 13.5 Mio. members. Let assume 1 Mio. are online...
Is it realistic to use SignalR in such a Scenario?
It does not solve my Problem, but it answers my question
modified 19-Jan-21 21:04pm.
|
|
|
|
|
I have recently moved my store over to Magento 2. The store is up and running and all is good. I've just noticed that for most products, Magento 2 has created 3 different URL's for the same product.
I'm try this(https://www.mageplaza.com/kb/how-to-configure-url-rewrite-magento-2.html)
But,I cannot get Magento 2 to renew URL rewrites for categories. I was forced to clear url_rewrites table after some weird problems happened after importing categories and products.
Now I get something like catalog/category/view/s/regntoj/id/304/.
|
|
|
|
|
How to merge two powerpoint presentation slides into one ppt using php or javascript ?
|
|
|
|
|
Hi Everyone,
Greetings!
1. Is there any way to create my own web application using MVC to do a video chat with my screen sharing?
2. If Yes, what are the required item before proceed.
Thanks in Advance,
Regards,
Gunasekaran P
|
|
|
|
|
This is for Google Apps Script and I need to know if it is a working translator go to the link
<a href=""></a><a href="https://script.google.com/d/1LUO84mMPGajslP-qfBcDSKXukx0DHkNiplOGjEvHpJXw7N9OOQwTfchB/edit?usp=sharing">Meet Google Drive – One place for all your files</a>[<a href="https://script.google.com/d/1LUO84mMPGajslP-qfBcDSKXukx0DHkNiplOGjEvHpJXw7N9OOQwTfchB/edit?usp=sharing" target="_blank" title="New Window">^</a>]
|
|
|
|
|
What happens when you try it?
|
|
|
|
|
ny python web developer here..who can help me.
|
|
|
|
|
You are looking for a fairly rare breed, then.
Ask your questions. I'm sure someone can help, or at least get you pointed in the right direction.
"There are three kinds of lies: lies, damned lies and statistics."
- Benjamin Disraeli
|
|
|
|
|
Suggest me some best free themes in wordpress for blog having grid layout.
|
|
|
|
|
It would be quicker for you to go to the Wordpress website and look at the examples for yourself.
|
|
|
|
|
|
hello again...
Attempting to design a site for my local area of NA [from scratch...(now in Pinegrow)...one that had previously been designed in Macromedia DW 2004...whereby all the child divs were of 'absolute' positioning; & resided inside a parent div set to margin: 0 auto...so everything was centered on the page (over a background image)]...but absolute positioning is horrible for responsive code construction; & I want our new site to be up to protocol for browser resize & smaller devices.
So...given the conspicuous lack of templates around the web (& in the app) that actually look like what I want to do...I worked up a rough sample of what the site should look like...roughly...(it's very simple, so this should be easy, right?):
http://www.moonjams.net/BurlCoNA.png
Keep in mind that all that you see above is always centered on the page (w/ a background image behind it)...& the page has to be responsive, whereby everything is distributed/flows correctly for browser resize & smaller devices.
ALSO: 1) The oval image block must be positioned where you see it on the page...top/left (in the parent)....over the gray rectangle.
ALSO 2) Speaking of which...the first child block (gray rectangle) is just that...a rectangular element filled w/ gray...not a header or paragraph or anything.
ALSO 3) Please don't send me to such-and-such tutorial or such-and-such code learning online seminar...I just want to do this on my own, so as to learn the basics of coding a responsive site along the way...(& if it turns out I'm too stupid for this task...if someone could put together a starter code page, where I could then place my own blocks/images/text...I would be happy to pay you, in kind...I just need to get this done; & my local area is waiting).
thanx,
dox
|
|
|
|
|
|
I wasn’t able to see your image but understand you want a responsive website and to author it yourself. Well there’s two ways to do it but it requires starting from scratch with a complete new way of thinking that defies your current method of HTML.
You have two ways here, one is using Bootstrap which is a framework of CSS and JQuery that covers almost everything. The other is creating your own framework from scratch. In other words writing your own responsive CSS system and JQuery.
Bootstrap looks easy but the examples are minimalist and a poor way to learn. Your website will look fine but will bomb on certain devices and no one will tell you. Then search engines will sort of look the other way and ignore you.
I’m on my 4th gen responsive design framework that is an hybrid of bootstrap, or a more complex overlay over the entire bootstrap package.
You might want to look at Mobirise
[Free Website Builder Software]
(https://mobirise.com/)
It’s a Windows app where you can select a template and drag sections onto the page and generate pure HTML. It’s actually pretty neat and makes good HTML. But the huge drawback is that you won’t really learn anything and you’ll paint yourself in the corner with it.
You can look at my website, for it’s a hybrid that uses some of the technology they used, only I cooked it up myself. I took the time to reverse engineer what they output and used some of the public components to fix my problems with the viewport and device display compatibility issues I had. Keep in mind this is 4th gen for me, but I know the framework really well now. And I write stuff scratch on Visual Studio 2017
Discover my world - Shameless hack and web contractor for hire - jkirkerx
If it ain't broke don't fix it
Discover my world at jkirkerx.com
|
|
|
|
|
We're developing a Angular 1 site that talks to a .NET WebAPI2 api. We have an interceptor related to the authentication side, but we're having problems with it. We are using a loading bar Angular component, and that component is reporting that the interceptor is broken. But we're not sure where/why and worse where to start investigating.
By simple code elimination, the _request method seems to be ok (or at least doesn't cause issues, it might still be bad code!)
Its the _responseSuccess method that causes the problem.
'use strict';
app.factory('authInterceptorService', ['$injector', '$q', '$location', 'localStorageService', function ($injector, $q, $location, localStorageService)
{
var authInterceptorServiceFactory = {};
function RequiresRefresh(responseURL)
{
if (responseURL.indexOf('getcutofftime') > -1)
return false;
if (responseURL.indexOf('resources') !== -1)
return true;
return false;
}
var _request = function (config)
{
config.headers = config.headers || {};
var authData = localStorageService.get('authorizationData');
if (authData)
{
config.headers.Authorization = 'Bearer ' + authData.token;
}
return config || q$.when(config);
};
var _responseSuccess = function (response)
{
var responseURL = response.config.url;
if (responseURL !== null && typeof responseURL !== 'undefined')
{
if (RequiresRefresh(responseURL))
{
var authData = localStorageService.get('authorizationData');
var JSONdata = {
windowsFullName: authData.windowsFullName
, windowsUserName: authData.windowsUserName
, summitUserName: authData.summitUserName
, summitFullName: authData.summitFullName
, clientID: 'MatterhornAuthApp'
};
$injector.get("$http")
.post(serviceBase + 'usermanagement/account/ReissueToken', JSONdata, { headers: { 'Content-Type': 'application/json', 'Authorization': 'Bearer ' + authData.token } })
.then(function (response)
{
response = response.data;
localStorageService.set('authorizationData', {
token: response.protectedTicket
, summitUserName: response.summitUserName
, windowsFullName: response.windowsFullName
, windowsUserName: response.windowsUserName
, summitFullName: response.summitFullName
, refreshToken: ""
, useRefreshTokens: false
, isSummitAuth: authData.isSummitAuth
, isWindowsAuth: authData.isWindowsAuth
, roles: response.roles
});
}, function (err)
{
return $q.reject(err);
});
}
}
var status = response.status;
return response || $q.when(response);
};
authInterceptorServiceFactory.request = _request;
return authInterceptorServiceFactory;
}]);
Any help or advice would be appreciated.
|
|
|
|
|
How to use a php $_SERVER['PHP_SELF'] to insert form data into Mysql database and print
same form data automatically
$editFormAction = $_SERVER['PHP_SELF'];
if (isset($_SERVER['QUERY_STRING'])) {
$editFormAction .= "?" . htmlentities($_SERVER['QUERY_STRING']);
}
if ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "form1")) {
$insertSQL = sprintf("INSERT INTO reservation (`Class of Room`, `Room Number`, `Customer Name`, `Customer Address`, `Phone number`, Occupation, Amount, `Check in Time`, `Date`, Duration, `Name of Receptionist`) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)",
GetSQLValueString($_POST['Class_of_Room'], "text"),
GetSQLValueString($_POST['Room_Number'], "text"),
GetSQLValueString($_POST['Customer_Name'], "text"),
GetSQLValueString($_POST['Customer_Address'], "text"),
GetSQLValueString($_POST['Phone_number'], "text"),
GetSQLValueString($_POST['Occupation'], "text"),
GetSQLValueString($_POST['Amount'], "text"),
GetSQLValueString($_POST['Check_in_Time'], "text"),
GetSQLValueString($_POST['Date'], "date"),
GetSQLValueString($_POST['Duration'], "text"),
GetSQLValueString($_POST['Name_of_Receptionist'], "text"));
mysql_select_db($database_Morrendb, $Morrendb);
$Result1 = mysql_query($insertSQL, $Morrendb) or die(mysql_error());
$insertGoTo = "reservation.php";
if (isset($_SERVER['QUERY_STRING'])) {
$insertGoTo .= (strpos($insertGoTo, '?')) ? "&" : "?";
$insertGoTo .= $_SERVER['QUERY_STRING'];
}
header(sprintf("Location: %s", $insertGoTo));
}
?>
|
|
|
|
|
|
How can I access the ul and the li menu inside the div in CSS?
<section id="main">
<div id="=cont">
<ul>
<li><a href="about.html"> Our Hitory </a>
<ul>
<li><a href="index.html"> The Foundation </a></li>
<li><a href="about.html"> Our Founders </a></li>
</ul>
</li>
<li>
<a href="about.html"> Our Company </a>
<ul>
<li><a href="index.html"> Our Business Practices </a></li>
<li><a href="about.html"> Our Brokers </a></li>
</ul>
</li>
</ul>
</div>
I've tried so many combinations in css but can't seem to be able to access that menu and style it.
Thanks very much in advance!
|
|
|
|
|
Start by fixing the id attribute on the <div> - IDs cannot start with "=":
<div id="cont">
Then, it's simply a case of using the descendant or child selectors:
#cont ul
{
}
#cont > ul
{
}
#cont ul ul
{
}
#cont > ul > li > ul
{
}
#cont li
{
}
#cont > ul > li
{
}
#cont li li
{
}
#cont > ul > li > ul > li
{
}
If all else fails, use your browser's developer tools to inspect the elements to see what styles are applied.
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
Good day! Please help me how to convert this code for search in codeigniter way.
<title>test search
table,tr,th,td
{
border: 1px solid black;
}
Username | Firstname | Lastname | | | |
|
|
|
|
|
hello...
In my designs, I almost always create a Parent Layer (div)...w/ relative positioning; & w/ a margin of '0 auto' so it remains centered on the page (since I almost always use background images)...& then my other divs (nested inside the parent) are always positioned absolutely...the code of which would look something like this:
<div id="Layer1" style="position:relative; width:840px; height:2500px; margin: 0 auto; background color: #FFFFF; layer-background-color: #FFFFFF">
<div id="Layer2" style="position:absolute; left:0px; top:0px; width:840px; height:222px; z-index:1; background-color: #00CCFF; layer-background-color: #00CCFF; border: 1px none #000000;"></div>
<div id="Layer3" class="style1" style="position:absolute; left:0px; top:50px; width:840px; height:136px; z-index:1">
<div align="center">TITLE</div>
</div>
<div id="Layer4" style="position:absolute; left:0px; top:250px; width:440px; height:380px; z-index:1"><img src="SomePhoto.jpg" width="440" height="380"></div>
<div id="Layer5" style="position:absolute; left:300px; top:720px; width:460px; height:330px; z-index:1">Some Text </div>
</div> ...with a result similar to this:
http://www.moonjams.net/EXAMPLE.png
So...I'm not a pro coder by a long shot...I design like a graphic illustrator would in laying out a magazine page...but...given the fact that I've been told never to use Absolute Positioning (on the Child divs inside the Parent), how would I now re-code that page (using I'm assuming CSS thrown in w/ the HTML) so that it looks like that until the browser gets resized...& then all the elements flow correctly, stacking the way they're supposed to...left to right, top to bottom...WITHOUT USING THE DREADED ABSOLUTE POSITIONING...???
[btw...not asking to have my work done for me...but if someone could please provide just a short code example using a couple fictitious image blocks, I would be appreciative...OR...direct me to an informational on the web detailing exactly how to do it...thanx].
thanx,
dox
|
|
|
|
|
There is nothing wrong with Absolute Positioning, this is a widely used property and is here to stay for a long time. The way you are using it is unnecessary that is if you don't display your layers above a fixed background image (<img src="">). If you want to move away from Absolute Positioning, use margins.
|
|
|
|
|
|