hericles 289 Master Poster Featured Poster

A strong password maybe??
I take you are referring to people hacking your password right? In which case you can't stop someone from guessing your password, if they have enough time time they'll get it. You can make that a lot harder but using a long password made up of letters, numbers and psecial characters.

hericles 289 Master Poster Featured Poster

You have an extra ) after the '-1200'}

hericles 289 Master Poster Featured Poster

Make line 26: Loop Until count = lines.Length - 1

If you debugged this and stepped through it you would see that your loop is going around one time too many. Remember, you start your counter at zero but the length of lines starts at 1.

hericles 289 Master Poster Featured Poster

It looks like all you need the variable to hold the translated string as it is built up.
Define another string at the top and each loop through concatenate the translated pig onto it.
You can use the StringBuilder class for this rather than doing += on a string for a performance gain.

hericles 289 Master Poster Featured Poster

If you mean some forums do allow link follows and some don't, you're right.
Not all forums allow things like your signature or bio links to contribute to your site's page rank.
Daniweb doesn't (unless I'm mistaken).

hericles 289 Master Poster Featured Poster

What is tutorials? Shouldn't it have a # or . in front of it if it is a page element?

hericles 289 Master Poster Featured Poster

Exactly. It works like the zip or merge functions available in other languages, suching iterating throught the items in the object to be added and pushing them onto the add of the arraylist.
Auto increasing of the size of the arraylist is taken care of too so you don't need to worry about extending the arraylist past it initialised size before calling addRange.

hericles 289 Master Poster Featured Poster

Your user control just needs to include a picture box for you to pass the image url to. Or am I missing something?

hericles 289 Master Poster Featured Poster

The AddRange function simply adds all of the objects in the added range to the arraylist. In your example, your arraylist would contain three items accessible at positions 0, 1 and 2.
Think of it in terms as appending the array to the arraylist, it just gets tacked on the end.

hericles 289 Master Poster Featured Poster

While they can make your site look like it is actively putting up fresh content TO A WEB CRAWLER, it does nothing for the real users of your site.
If you don't want people to come back to your site then, by all means, keep posting up the same content spun.
Also, unless you have a good quality spinner the end result may be poorly constructed which will have negative effects both in terms of SEO and real user retention.
And remember, Google is smarter than you. They don't like spun articles and may well have tricks that detect article spinners (I have no idea if this is true) in which case your efforts will backfire big time.
If you like your site and your users take the time to actually MAKE content rather than serve up the same stuff time and again.

hericles 289 Master Poster Featured Poster

Yes, I have a beard. The beard-to-face ratio at my work (counting just the coders) is 50%.

hericles 289 Master Poster Featured Poster

Assuming you have the user name stored in a variable do a SELECT against the database

SELECT username FROM table_name WHERE username = ' . $username . ';'

I'm not sure what PHP version or framework you're using so the method of runnign the query and checking the result will vary but once you have a result check the value against $username. Based on the result, redirect as needed

$result = .. do query with PDO, ORM or whatever is workig in your situation

if($result[0] == $username) {
  $url = user exists page
} else {
  $url = user doens't exist page
}

header('Location: '.$url);

This is some pretty rough pseudo code but it should be enough to give you an idea.

hericles 289 Master Poster Featured Poster

Your question is unclear. Do you want to learn HTML? Because if you knew HTML your question would be redundant...

hericles 289 Master Poster Featured Poster

The parentheses is the problem. Your statement is trying to provide everything in the select statement as one column which means the total number of columns doesn't match.

Something like this will work:

insertString = "INSERT INTO SocialHistory (ExamID, Occupation, SafetyYN, ComputerYN, ComputerHrs) 
SELECT " & CurrentExamID.ToString & " AS ExamID, Occupation, SafetyYN, ComputerYN, ComputerHrs FROM SocialHistory 
WHERE ExamID = '" & LastExamID & "'"

Feed everything you want to insert into the SELECT statement, use AS to match discrete values to their column in the destination table and everything should work out OK.

hericles 289 Master Poster Featured Poster

You simply need to do a query to the table searching for that user name. If one row is returned then they have already created their account so redirect to the update page. If no rows are returned, they don't exist in the database so redirect to the insert page.

So,on the link click run a SELECT statement with the user name as a parameter. The result tells you which option you redirect to.

hericles 289 Master Poster Featured Poster

Its the new (and not so new) javascript libraries like jQuery and angular that are moving javascript forward. If you wanted to limit yourself to plain old, original javascript, dart probably would be better.
The only real answer someone can give is to analyse the project and pick the best tool to do the job.

hericles 289 Master Poster Featured Poster

So you are seeing the 'invalid student id' error? That would suggest your query string is returning zero. Confirm the format of the string by echoing it and make sure the variables match your user id and password in the database.
I'm guessing the query string is incorrect.

hericles 289 Master Poster Featured Poster

It can be done as you describe it but you need a front end solution that takes care of the actual code and feeds the data into Access for storage.
The Access database just holds records, viewing, printing, logging in all needs to be done somewhere else.

hericles 289 Master Poster Featured Poster

Firstly, Access is a database system. It can't 'open' a pdf but it can store either it or its file location.
What parts are you having trouble with exactly? Can you query the database to get back the image?
There are several ways to handle adding water marks. One way to layer images on top of each other in the view, pdf at the back, watermark and name on top. Or you can add the watermark to actually be part of the pdf.
What programming language are you using?

hericles 289 Master Poster Featured Poster

Facial recogition is a reasonably complex and involved solution. I don't think you'll get a response on a forum that would really do it justice.
There are a lot of facial recognition libaries out there, not sure what the cost, but that would be a better alternative then starting from scratch and building the system yourself.
There are other alternatives that can decide if two images are close to each other (matching or nearly identical). If you will have images that aren't faces that would be an easier option (maybe).

hericles 289 Master Poster Featured Poster

Try using the CAST or CONVERT functions of sql:

CAST(column_name AS INT)

Of course, your VarChar column needs to be all numbers for it to work.

hericles 289 Master Poster Featured Poster

Which CSS template are you using to do this? I note you have a classes such 'div-fluid' and row-fluid'. Those would imply you are using a fluid layout which would adjust depending on the available screen size.
If you are using a template CSS there probably are classes which define set widths to elements (unless it is only a fluid template).

hericles 289 Master Poster Featured Poster

To remove the "fa fa-bars" class you can use this:

$.('.menu').removeClass('fa');

And to add a class use .addClass(). The toggle should work as it is. Is it not working currently?

hericles 289 Master Poster Featured Poster

Not sure what you mean by a database site. Are you referring to a database driven website where all of the content comes from a database?
these cases are no different from static websites. A crawler lands on your page and the page loads as normal, thereby making all of the same content available as if a user had navigated there. The content is there searched and the usual SEO rules applied.
Is that what you meant?

hericles 289 Master Poster Featured Poster

It comes down to how the compiler reads and interprets your code. By defining different symbols for different things the compiler can infere what action you are trying to do. If you have done a course on compilers you would have used similar structures to tell your compiler how to handle certain lines in your code and branch appropriately.
But your final points are correct. Those structures do the things you describe.

iConqueror commented: thankyou sir +1
hericles 289 Master Poster Featured Poster

No follow stops net crawlers from following links away from your site to the linked site. By using no-follow you can prevent your page rank transferring to the linked page and prevent the search engine from adding the linked page to their graph of the web (via your site at least).
This google page explains their take on no-follow (other search engines may differ): Click Here

hericles 289 Master Poster Featured Poster

Sum the values held in distance, seeng as that contains the values entered, and divide it by the number of elements.

hericles 289 Master Poster Featured Poster

An average is just the total sum of the elements divided by the number of elements. increment your sum variable by the entered value inside the loop and then, once the loop is finished divide it by 5.

hericles 289 Master Poster Featured Poster

Have you debugged it from the email end? Is the link correct and if you copy and paste it into the browser do you get the image back?

hericles 289 Master Poster Featured Poster

As long as each table has one column which refers it to another table, through which a linkage can be made, you can join them all.
It doesn't need to be the same column in all tables as long as a chain of connectivity can be made.
In your case it looks like you can use teacher_id/teacher_id to refer to most of the tables and subject_id to link to the subjects table.

hericles 289 Master Poster Featured Poster

Could you explain your problem more clearly? What is it you are trying to do and what is stopping you?

hericles 289 Master Poster Featured Poster

OK, create a script with

<?php
  phpinfo();
?>

and run it. Look for MySql in the resulting tables. If it isn't there then something is missing. Maybe the MySql driver?

hericles 289 Master Poster Featured Poster

Thats coming from your SQL statement. Which table are you trying to select from because it looks like you are referring to two.

hericles 289 Master Poster Featured Poster

You need session_start() at the top of all scripts that intend to use the session state, whether to read from or set it.
Adding session_start() to your checklogin.php should fix the problem.

hericles 289 Master Poster Featured Poster

Way back I self taught myself some Java as a start point (but never got very good at all). My first university course used Delphi. Then I taught myself VB.Net, and then C#, while my uni courses went over Java/Objective C/Android and a little bit of prolog/haskell

hericles 289 Master Poster Featured Poster

It is because getString() accepts an integer, not a string. You pass in the zero-based reference for the column you want. Instead of passing in "CarName" pass in the position of that column.

hericles 289 Master Poster Featured Poster

Have you got the correct modules enabled in your php.ini file?

hericles 289 Master Poster Featured Poster

This youtube link popped up in my 'what to watch' feed the other day and maybe of interest to you. It pretty much answers your question (I think, I didn't watch much of it), I think it would be useful for someone starting out,
Click Here

hericles 289 Master Poster Featured Poster

My take is that, for knowledgeable web users, the https and the lack of warnings is a sign of trust. Your self encrypton method, while it would be valid if done right, is invisible to the user. they wouldn't know what was happening in the background and so your website LOOKS unsecured.

hericles 289 Master Poster Featured Poster

That would indicate that your database connection and query are fine, its just returning and empty result set i.e. that user name and password combination are found in the database.
Your code doesn't show where username and pwd are being defined. Are they the actual textbox controls themselves? Add a debug and check the string held in the command object to make sure the right values are being passed in.

hericles 289 Master Poster Featured Poster

You can use google web fonts for that. You download the font via an href to the google font location.
Here is Google's getting started guide

almostbob commented: what he said :) +13
hericles 289 Master Poster Featured Poster

Your settimeout is firing everytime because it isn't wrapped in a function that needs to be called. It's just sitting there waiting to fire when that script block is reached. It is the same as putting alert('hi'); inside script tags. The alert will appear every time.
Create a function, with a name, that contains you settimeout and call that from your code behind.

hericles 289 Master Poster Featured Poster

You can do a couple of things. Frstly, you can generate the random number in your code and use it in your query. Get the MAX(id) from the table as a SELECT and use it to generate a random number between 0 and MAX(id).
Pass that random ID back to the database in your select question and select answers queries.

Or, you can use something like this:

SELECT CEIL( RAND() * MAX(id))

This will return a random number between 0 and MAX(id) as well but now you have the difficulty of working that into an efficient query that generates the random ID and returns the row. This maybe tricky and RAND() can be a performance inhibitor so I would go with the much simpler, in code approach.
But that is just me.

hericles 289 Master Poster Featured Poster

It should be fairly understandable if you buld the string yourself, keeping track of x at the same time but I'll try to give a coherent explanation.

On the first loop x == 0
an A is always added so "a" becomes the first letter.
X < 1 so a space is added : "a "
An 'n' is always added: "a n"
Only the x < 1 if statement is called as x == 0 so oise is added: 'a noise '

Second loop, x = 1
an 'a' is always added: 'a noise a'
an 'n' is always added: 'a noise an'
the only if statement to fire is x == 1 so noys is added: 'a noise annoys '

Third loop x == 2
add an a
add an n : 'a noise annoys an'
x > 1 if statement adds 'oyster' : 'a noise annoys an oyster'
x increments to 4 so loop exits

Does that help?

hericles 289 Master Poster Featured Poster

Post some code and then we can really help.
Any the rows repeated as a group? I.e. you have rows 1,2,3,4,1,2,3,4?
Because that is a clear indicator your loading code is runnning twice.
Are you using the datasouce and databind methodss or adding the items to the grid row by row in code?
Anyway, a code sample will help.

hericles 289 Master Poster Featured Poster

Say you have a static variable, counter, in your class and a method that incremented and displayed counter. You then create two instances of the class, X and Y.
Calling x.increment() will output 1. The static variable becomes 1.
Calling y.increment will output 2 because it accesses the same static variable counter e.g. the variable accessed and incremented by X is the same variable accessed and incremented by Y.
Hence, you can never have 2 versions of counter. It will be shared across all instances of the class regardless of how many you create.
Does that help?

hericles 289 Master Poster Featured Poster

Sorry, is what not possible?
Do you want to export a spreadsheet immediately into a database, with no intermediate step? If you want to carry out calculations on the data you will need code somewhere.

hericles 289 Master Poster Featured Poster

I don't know what you're trying to do with the IF statement but the total line should be like this: (if you want to add integers at least)

int total = int.Parse(textbox1.text) + int.Parse(textbox2.text) + int.Parse(textbox3.text) + int.Parse(textbox4.text) + int.Parse(textbox5.text);
hericles 289 Master Poster Featured Poster

Databases hold data, thats all there is to it. If I understand you correctly you want to add values to a form or program, run the calculations and save the results.
If thats true, the vb code will be responsible for performing the calculations and then it passes the results to the database to store.
SO, you're not talking about a straight import of data from one to the other. You need to include a transformation step.
Does that help?

hericles 289 Master Poster Featured Poster

An IF statement by itself won't direct your code to the exception because failing the IF statement isn't an exception. You need to THROW the exception but not quite as you have it there. You want to throw the exception if the IF statement fails.