|
Possibly, but not without information on exactly what the problem is and where it occurs in your code.
|
|
|
|
|
Hi,
I have employee evaluation for and it's populating the data from database and for every element of the evaluation there is a to choose the employee rating.
I want to know how can I implement this? How to name it? will all have same name?
here is my code:
prepare('CALL sp_web_get_employee_evaluation_elements_by_guid(:param_employee_evaluation_guid)');
$mysql_query->bindParam(':param_employee_evaluation_guid', $evaluation_guid, PDO::PARAM_STR);
$mysql_query->execute();
if ($mysql_query->rowCount() <= 0)
{
exit(header("Location: index.php"));
}
while($mysql_row = $mysql_query->fetch()) {
?>
ID: Element Rating : <select name="cboRating" id="cboRating" data-native-menu="false" required>
<option value="">[Select..]</option>
prepare($mysql_rating_category_command);
$mysql_rating_category_query->execute();
while($mysql_rating_category_row = $mysql_rating_category_query->fetch())
{
?>
<option value="<?php echo $mysql_rating_category_row["evaluation_rating_category_id"]; ?>"><?php echo $mysql_rating_category_row["evaluation_rating_category_name"]; ?></option>
<?php } ?>
</select>
</td>
Thanks,
Jassim
Technology News @ www.JassimRahma.com
modified 14-Jul-17 15:54pm.
|
|
|
|
|
That seems fine, where did you get suck?
If the rating has been provided then you can simply fetch the record for rating (fetch that column in MySQL) and render it in HTML. There is no need for select at all, otherwise if you want to provide updating of it too, then still create a rating select, but chose selected attribute for a special one that was selected by user.
The sh*t I complain about
It's like there ain't a cloud in the sky and it's raining out - Eminem
~! Firewall !~
|
|
|
|
|
I tried below code but getting:
SELECT is not an array
although my html output is showing correct result like this:
<tr>
<td style="padding: 10px;">
<h1>Work Performance</h1>
<p>Efficient execution of duties.</p>
<select name="cboRating[4613]" id="cboRating[4613]" data-native-menu="false" required>
<option value="">[Select..]</option>
<option value="1">Outstanding</option>
<option value="2">Exceeds Expectations</option>
<option value="3">Meets Expectations</option>
<option value="4">Needs Improvement</option>
<option value="5">Unsatisfactory</option>
</select>
</td>
</tr>
<tr>
<td style="padding: 10px;">
<h1>Technical Knowledge and Skill</h1>
<p>Mastery of job knowledge and skills required to perform the duties of the position.</p>
<select name="cboRating[4614]" id="cboRating[4614]" data-native-menu="false" required>
<option value="">[Select..]</option>
<option value="1">Outstanding</option>
<option value="2">Exceeds Expectations</option>
<option value="3">Meets Expectations</option>
<option value="4">Needs Improvement</option>
<option value="5">Unsatisfactory</option>
</select>
</td>
</tr>
here is my code:
if (is_array( $_POST['cboRating']))
{
foreach($_POST['cboRating'] as $key=>$value)
{
echo "Key : " . $key . "<br><br>";
echo "value : " . $value . "<br><br>";
}
}
else
{
echo "SELECT is not an array";
}
Technology News @ www.JassimRahma.com
|
|
|
|
|
Some of you know that I have been trying forever to get a simple SignalR app hosting on my server.
According to the docs[^] you can Self Host, which appears to be a simple console app - not sure how THAT would work on a server), and also in a Windows Service (?? Would you install a Windows Service on you server just to do this?)
Yet the docs pages says NOTHING about hosting in IIS, and any progress you make towards it is the result of hours of Googling. I have been through DOZENS of web pages & blogs about how to get it hosted in IIS. Yet I have not found a single page that actually shows or walks you through creating a SignalR server app and installing it on IIS. Some of you have pointed me to a few pages, but they fall short.
I finally came across a page about creating a Web Deploy Package[^] and I was able to copy the package to my server and install it in IIS using Deploy=>Import Application... IIS reported that it was successful.
So I then attempted to connect using:
http://my.ip.address.:myport
which gives ma a directory listing, which leads me to believe that it's hosted OK.. But when I try to connect in my code I get ""StatusCode: 404, ReasonPhrase: 'Not Found'...."
If I include the Hub name in the url using http://76.91.83.141/MyHub I get "An error occurred while sending the request. Unable to connect to the remote server"
At this point I am BEGGING anyone who has gotten this working in IIS to please help. This CAN'T be that EFFING hard. WTF am I doing wrong????
If it's not broken, fix it until it is.
Everything makes sense in someone's mind.
Ya can't fix stupid.
|
|
|
|
|
I have tried with this code to access sms from mobile. BUt , port detecting error.
Please check it.
SerialPort _serialport = new SerialPort("COM4", 115200);
_serialport.Parity = Parity.None;
_serialport.DataBits = 8;
_serialport.StopBits = StopBits.One;
_serialport.Handshake = Handshake.XOnXOff;
_serialport.DtrEnable = true;
_serialport.RtsEnable = true;
_serialport.NewLine = Environment.NewLine;
_serialport.Open();
_serialport.Write("AT" + System.Environment.NewLine);
Thread.Sleep(1000);
_serialport.WriteLine("AT+CMGF=1" + System.Environment.NewLine);
Thread.Sleep(1000);
_serialport.WriteLine("AT+CMGL=\"ALL\"\r" + System.Environment.NewLine);
Thread.Sleep(3000);
MessageBox.Show(_serialport.ReadExisting());
|
|
|
|
|
You need to check which port your device connects at. Also, make sure to install the device drivers on your machine, Windows requires drivers to run the devices. If things get more interesting, and you just have to read the messages then you can use a web service in the network and keep pushing the SMS details to the PC. Android – Listen For Incoming SMS Messages - Stack Overflow[^], read this and use the function to push the data to server for sending to PC. You may use PC as server.
Serial Comms in C# for Beginners[^]
The sh*t I complain about
It's like there ain't a cloud in the sky and it's raining out - Eminem
~! Firewall !~
|
|
|
|
|
<pre lang="vb"><pre lang="vb"><pre lang="vb">
|
|
|
|
|
|
<input id="rdo1" type="radio" name="rdoTest" value="Hello" />
<input id="rdo2" type="radio" name="rdoTest" value="World" />
<var id="test1" onchange="alert('2');">Test Value</var>
$(document).ready(function () {
$('[name=rdoTest]').change(function () {
$('#test1').text($('[name=rdoTest]:checked').val());
});
$('#test1').change(function () {
alert($('#test1').text());
});
});
My code here but nothing happened
|
|
|
|
|
The <var> element doesn't seem to raise the change event on its own. You'll need to trigger it manually:
$('#test1').text($('[name=rdoTest]:checked').val()).change();
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
But
<var> raise the event on click or mouseover
|
|
|
|
|
Yes, but it doesn't raise the change event.
The change event is fired for <input> , <select> , and <textarea> elements when a change to the element's value is committed by the user.
<var> is not one of the elements that fires the change event.
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
please send me the code for parsing the excel sheet information and do GET, PUT and POST REQUEST dynamically.
Thanks and regards prathamesh
|
|
|
|
|
Short answer: No.
Longer answer: These forums are here to answer technical questions related to code that you have written, not to do your work for you.
|
|
|
|
|
Hi,
Urgently I need your inputs for our project which is using AngularJS 2 in MVC 5.
I want to choose the below grids in AngularJS 2 for the functionalities such as Bulk upload, Grid with tree view(insert single row), Exporting and Nested Grid.
• ag-grid
• ng2-grid
• angular2
• handsontable
Suggest me which one will be efficient and flexible and inputs for other grids are also welcome.
Please let me know if you have any samples or links for the same.
|
|
|
|
|
Try Prime ng.
It is good and has a lot of sample code.
PrimeNG[^]
PrimeNG DataTable Samples[^]
I am using it since last 8 months. Its cool and open source.
Life is a computer program and everyone is the programmer of his own life.
|
|
|
|
|
i like hide one note behinde photo to after when i want use jquery to show it but i have problem to fix it note behinde photo...can you see it in
|
|
|
|
|
Please clarify your question.
Life is a computer program and everyone is the programmer of his own life.
|
|
|
|
|
In a web form 2010 application, I Have the following html generated:
<html><body><p>test1</p><p style="page-break-after:always;"></p><p>test2</p><p style="page-break-after:always;"></p><p>test3</p><p style="page-break-after:always;"></p></body></html> [^]
I am using this html as a test case. I would like to have a page break for a file printed in a pdf format to print paragraphs on separate print pages?
Can you show me the html that needs to be used so the separate test paragraphs print on separate pages?
Do I need to use html5 ? If so, would you show me how to make the html use html5?
|
|
|
|
|
@Html.DropDownList("truckclasslst",ViewBag.classes as List<SelectListItem>, new { @class = "js-select2 form-control",@style= "width: 100 %;", ng_model = "t_class.ClassID" })
but , what about angular 2?
|
|
|
|
|
In angular 2 we use plain select with *ngFor directive.
<select class="form-control" [(ngModel)]="model.selectedId" name="type">
<option *ngFor="let item of myArray" value="{{item.id}}">
{{item.name}}
</option>
</select>
Life is a computer program and everyone is the programmer of his own life.
|
|
|
|
|
I am a Webdesigner with minor experience in C++, Phython, Java and VBA for offline applications who wants to broaden his horizons.
My task was to build a Website where Users can online "preflight" PDF´s (only the most simple things like format and correct bleed).
So I researched how something like this can be achieved, or how such a "service" in general can be integrated into the web.
I stumpled upon things like SOAP, REST and ASP.NET. Now I am totally confused, can someone explain to me what the way to go is, if I have to programm such "webservices" where i need extra and complex funtionality that is handled on a server? (Another example would be a Service that changes the Format of a MP3 or something like that)
I am sorry if this question may sound stupid to some of you.
Greetings
|
|
|
|
|
Hello everyone,
I have a little problem while coding an e-commerce site, built on symfony3.
Here is an overview of my used table on mysql-side: [^]
As shown here, there is only one table where i am selecting the data from. No annoying joins between multiple tables which may slow down speed.
Here is a little mockup to show the actual status quo of what i want to render: [^]
The Usecase is to get a filtered product view (for example "give me all products where color is green"). Then you get all products listet (red area) + on sidebar the possibility to set further filters for filtering stuff like the brand or size (yellow area; in practical there are even some more filter to use).
The Problem now is, as you see, each result i have to use another adjusted query (for the sidebar different "GROUP BY" statements) with always the same subquery which represents the actual selected productcollection.
This is slowing down my site extremely heavy (as there are over 1 million products in the database as i need about 7-8 times the same query with a little bit different parameters every time).
I found the solution that it would be better to switch to MariaDB, so it would be possible to cache all the subqueries. That is not possible on the actual environment i am working on. MySQL caching is activated here.
Does anyone can give me some hints what i can do to minimize the the queries or mainly speed up the whole process when generating the data for the view? Is there any better solution as I do actually? I guess so..
Many thanks in advance for your help and ideas!
|
|
|
|
|
Member 12818964 wrote: No annoying joins between multiple tables which may slow down speed.
That's quite a bold claim. What evidence do you have to back that up?
Most systems are built on a normalized database, and use joins between related tables without any problems. If anything, it tends to speed up your queries - it's quicker to compare equality with a surrogate integer key that a string.
Your best bet is probably to profile your queries, to see if there are any missing indexes which might improve the performance.
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|