 |
 |
For those new to message boards please try to follow a few simple rules when posting your question.- Choose the correct forum for your message. Posting a VB.NET question in the C++ forum will end in tears.
- Be specific! Don't ask "can someone send me the code to create an application that does 'X'. Pinpoint exactly what it is you need help with.
- Keep the subject line brief, but descriptive. eg "File Serialization problem"
- Keep the question as brief as possible. If you have to include code, include the smallest snippet of code you can.
- Be careful when including code that you haven't made a typo. Typing mistakes can become the focal point instead of the actual question you asked.
- Do not remove or empty a message if others have replied. Keep the thread intact and available for others to search and read. If your problem was answered then edit your message and add "[Solved]" to the subject line of the original post, and cast an approval vote to the one or several answers that really helped you.
- If you are posting source code with your question, place it inside <pre></pre> tags. We advise you also check the "Encode "<" (and other HTML) characters when pasting" checkbox before pasting anything inside the PRE block, and make sure "Use HTML in this post" check box is checked.
- Be courteous and DON'T SHOUT. Everyone here helps because they enjoy helping others, not because it's their job.
- Please do not post links to your question into an unrelated forum such as the lounge. It will be deleted. Likewise, do not post the same question in more than one forum.
- Do not be abusive, offensive, inappropriate or harass anyone on the boards. Doing so will get you kicked off and banned. Play nice.
- If you have a school or university assignment, assume that your teacher or lecturer is also reading these forums.
- No advertising or soliciting.
- We reserve the right to move your posts to a more appropriate forum or to delete anything deemed inappropriate or illegal.
cheers,
Chris Maunder
The Code Project | Co-founder
Microsoft C++ MVP
|
|
|
|
 |
Apologies for the shouting but this is important.
When answering a question please:
- Read the question carefully
- Understand that English isn't everyone's first language so be lenient of bad spelling and grammar
- If a question is poorly phrased then either ask for clarification, ignore it, or mark it down. Insults are not welcome
- If the question is inappropriate then click the 'vote to remove message' button
Insults, slap-downs and sarcasm aren't welcome. Let's work to help developers, not make them feel stupid.
cheers,
Chris Maunder
The Code Project Co-founder
Microsoft C++ MVP
|
|
|
|
 |
Hi, The following code selects and displays a record from the "emailtbl" table
as desired except for the the date and it doesn't update the "lastused" (date)
field to the "numbers" table via "lastused.php" include. No error messages. I need help.
<pre lang="PHP"><html><head>
</head>
<BODY>
="''"
=mysqli_connect(
==============
";}
// ==========This creates the drop down box using records in the table
echo "<select name= 'target'>";
echo '<option value="">'.'---select email account ---'.'</option>';
$query = mysqli_query($con,"SELECT target FROM emailtbl");
$query_display = mysqli_query($con,"SELECT * FROM emailtbl");
while($row=mysqli_fetch_array($query))
{ echo "<option class=highlight value='". $row['target']."'>".$row['target']
.'</option>';}
echo '</select>';
?>
lastused.php
?php
error_reporting(E_ALL);
ini_set('display_errors', true);
if(!empty($_POST['update_lastused']))
{
$dbconnect = mysqli_connect('localhost','root','cookie');
mysqli_select_db($dbconnect, 'homedb') or die( "Unable to select database");
$sql = "UPDATE emailtbl SET lastused = NOW() WHERE id = ?";
$stmt = mysqli_prepare($dbconnect, $sql);
if($stmt == false)
{throw new Exception("Prepare failed".PHP_EOL.mysqli_error($dbconnect).PHP_EOL.$sql);}
mysqli_stmt_bind_param($stmt, 'i', $sql);
$update = mysqli_stmt_execute($stmt);
if($update == false)
{throw new Exception("Update failed:".PHP_EOL.mysqli_stmt_error($stmt).PHP_EOL.$sql);}
}
?>
|
|
|
|
 |
Things look wrong starting at mysqli_stmt_bind_param to me - you're binding the $sql variable to the parameter, and not setting the ID value to use before calling execute on the prepared statement.
Take a look at the examples on the manual page, it should become clearer: http://uk.php.net/manual/en/mysqli-stmt.bind-param.php[^]
|
|
|
|
 |
Hi,
Am new to MVC.I need Sample Mvc 4 Application t Insert data into the database and Bind Them to grid.
Thanks in Advance
Nanthini
|
|
|
|
 |
You should use Google for such kind of generic questions. You will get many such samples.
If you are facing problem in your implementation, please post your pin point problem and we are there to help.
Life is a computer program and everyone is the programmer of his own life.
|
|
|
|
 |
I have 30 years development experience. I do C# and WPF. I have some experience with MVC 4 Web API's. It's time for me to transition into web development.
I want to learn ASP.Net MVC. I did get into MVC 4 a while back never went too far.
The question... What is the .Net stack I need to learn? I don't really know what technologies I need.
Thanks
If it's not broken, fix it until it is
|
|
|
|
 |
I would suggest to start with a basic .net book. Then dive deeper into code according to your need.
Life is a computer program and everyone is the programmer of his own life.
|
|
|
|
 |
A basic .Net book??
Why? I have 30 years development experience, including 12 years doing C# & WPF.
.Net isn't an issue for me
If it's not broken, fix it until it is
|
|
|
|
 |
Oh!! my mistake. I didn't notice that.
Get an Asp.Net MVC book and read abt its architecture and patterns. At your experience, i think, you can finish it as a story in few hours.
I think, this should be sufficient for you to start with.
Moreover, asp.net/mvc website is also a good place to start.
Life is a computer program and everyone is the programmer of his own life.
|
|
|
|
 |
Ok, thanks
If it's not broken, fix it until it is
|
|
|
|
|
|
 |
I built a web site for a company. A few months ago, the company owners split, and one of them started up a new company (new domain and everything), and I used the site code from the original web site, but changed some logos, and changed (what I thought was) all instances of the old name to the new name. We left the original site up with a redirect to the new site.
Now, when we search google for the company new name, it still finds the old site.
The old company name is "South Texas Performance".
The new company name is "Two Ten Performance".
When I google "two ten performance", it finds "south texas performance".
Can someone please tell me how to fix this?
".45 ACP - because shooting twice is just silly" - JSOP, 2010 ----- You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010 ----- When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013
|
|
|
|
|
 |
Seems OK to me - a search for "Two Ten Performance" is finding the right site, and a search for "South Texas Performance" is listing both, with the old site first.
Does the page really need 184 Javascript includes though? (Yes, really - document.scripts.length == 184)
|
|
|
|
 |
In many situations developers need to complete web projects in short time or deadline and requirements are many.
Clients don't like compromising quality.
How to handle such situation?
Thanks
|
|
|
|
|
 |
You can deliver only two of them:
fast, cheap, good.
Let the customer select the pair he prefers.
|
|
|
|
|
 |
Hi
I want to add some new keywords to my website .
How can i do it so i can search in google by these new words .
Please help me to solve my problem .
Thanks in advance ,
Davood
|
|
|
|
 |
By writing some text which contains the keywords!
|
|
|
|
 |
<html>
<head>
<meta charset="UTF-8">
<meta name="description" content="Free Web tutorials">
<meta name="keywords" content="HTML,CSS, Search this word, Kitkat, Fanta">
<meta name="author" content="The great HTML">
</head>
</html>
The above code is an example of HTML. You need to place the searching words inside the "Keywords" tag and the words can be comma separated.
http://www.w3schools.com/tags/tag_meta.asp[^]
|
|
|
|
 |
Hello all.. I am a newbe in web development and want to ask about how to remove the date on the post. My Blog is Penghemat BBM[^]
|
|
|
|
 |
What date, what post, where?
Please edit your question and explain in proper detail what your programming problem is.
|
|
|
|
 |