Go Back   CodingForums.com > Search Forums

Before you post, read our: Rules & Posting Guidelines

Showing results 1 to 25 of 500
Search took 3.50 seconds.
Search: Posts Made By: felgall
Forum: MySQL 05-24-2013, 09:53 AM
Replies: 5
Views: 118
Posted By felgall
replace: $stmt = $mysqli_prepare($db,$sql); ...

replace:

$stmt = $mysqli_prepare($db,$sql);

with:

$stmt = $db->prepare($sql);

Then it will be using the same way of making the call as the other statements around it.
Forum: JavaScript programming 05-24-2013, 09:48 AM
Replies: 20
Views: 260
Posted By felgall
Very true. Think of all the time that will...

Very true.

Think of all the time that will end up being wasted by people trying to figure out where the code that they can't properly read has gone wrong where they'd be able to see instantly if...
Forum: JavaScript programming 05-24-2013, 09:38 AM
Replies: 3
Views: 89
Posted By felgall
I have a few hundred examples of JavaScript...

I have a few hundred examples of JavaScript coding at http://javascriptexample.net - if you work your way through those and have any questions along the way I'd be happy to answer them.
Forum: PHP 05-24-2013, 03:09 AM
Replies: 4
Views: 115
Posted By felgall
If the passwords in the database are hashed then...

If the passwords in the database are hashed then even with access to the server the person can't see what the passwords are. They may be able to work out A password that hashes to the given value but...
Forum: General web building 05-24-2013, 03:00 AM
Replies: 8
Views: 286
Posted By felgall
Also 'free' web sites can work out to be far more...

Also 'free' web sites can work out to be far more expensive than ones that require a small payment.

If a 'free' site contains advertising that makes say $100 a month then you are effectively...
Forum: JavaScript programming 05-23-2013, 11:53 PM
Replies: 16
Views: 227
Posted By felgall
There is never a need to use an Ajax call to load...

There is never a need to use an Ajax call to load JavaScript - simply attach a new script tag to the page and the JavaScript it references will be downloaded and run automatically without any parsing...
Forum: HTML & CSS 05-23-2013, 11:23 PM
Replies: 2
Views: 100
Posted By felgall
You have left out the HTML tag completely. You...

You have left out the HTML tag completely. You should have coded it as:

<!DOCTYPE html>
<html lang="en">
<head>
<title></title>
list of meta names here
</head>
Forum: Computer Programming 05-23-2013, 11:01 PM
Replies: 2
Views: 186
Posted By felgall
Don't try to learn both at the same time as...

Don't try to learn both at the same time as despite the similarity they are very different languages.

If you already know a procedural language then learn C - which is also a procedural language....
Forum: JavaScript programming 05-23-2013, 10:57 PM
Replies: 20
Views: 260
Posted By felgall
I was just adding the piece missing from your...

I was just adding the piece missing from your explanation - showing how the single statement in the acual code looks when you split out the increment into a separate statement. I thought it might...
Forum: JavaScript programming 05-23-2013, 10:06 PM
Replies: 20
Views: 260
Posted By felgall
It is EXACTLY what I would expect. if ( i++...

It is EXACTLY what I would expect.

if ( i++ > 10 ) break;

is identically in processing to:

if ( i > 10 ) {i++; break};
i++;

The comparison will be true when i is 11 and then you add one...
Forum: PHP 05-23-2013, 08:22 AM
Replies: 3
Views: 123
Posted By felgall
The colour change basically shows you where the...

The colour change basically shows you where the unescaped ' is close to the front of the preg_match where it goes from ref to blue.

To include numbers as well simply change a-zA-Z to a-zA-Z0-9
Forum: JavaScript programming 05-22-2013, 10:15 PM
Replies: 16
Views: 227
Posted By felgall
I realise that - just telling the OP that they...

I realise that - just telling the OP that they put the script in the wrong place in the page - where they are slowing the loading of the page unnecessarily and where there is a greater potential for...
Forum: JavaScript programming 05-22-2013, 08:25 PM
Replies: 16
Views: 227
Posted By felgall
Put the JavaScript at the bottom of the page -...

Put the JavaScript at the bottom of the page - that way the HTML it interacts with will exist before it is referenced.
Forum: Computer/PC discussions 05-21-2013, 08:27 PM
Replies: 5
Views: 194
Posted By felgall
They are the founder of the business and the...

They are the founder of the business and the creator of the site.
Forum: Computer/PC discussions 05-21-2013, 08:10 AM
Replies: 5
Views: 194
Posted By felgall
The original owner of the site is the Founder. ...

The original owner of the site is the Founder.

The person or people responsible for creating the site are the Creator(s).
Forum: JavaScript programming 05-21-2013, 08:08 AM
Replies: 3
Views: 132
Posted By felgall
Must be a really old text book if it is still...

Must be a really old text book if it is still using alerts for error messages. The alert call has been completely repurposed since the death of Netscape 4 (and the ability of all more recent browsers...
Forum: JavaScript programming 05-20-2013, 11:04 PM
Replies: 31
Views: 508
Posted By felgall
It behaves the same because it is self invoked....

It behaves the same because it is self invoked. It is just that the returned value from the self invoked function is being assigned to a variable.
Forum: JavaScript programming 05-20-2013, 03:03 AM
Replies: 2
Views: 100
Posted By felgall
Use arrays instead of giving each variable a...

Use arrays instead of giving each variable a different name.
Forum: Geek News and Humour 05-17-2013, 09:10 PM
Replies: 6
Views: 498
Posted By felgall
w3schools isn't - w3schools is old and becoming...

w3schools isn't - w3schools is old and becoming more and more false as the two guys that own the site are failing to apply the hundreds of weekly updates needed to keep the site current.
Forum: JavaScript programming 05-17-2013, 09:07 PM
Replies: 5
Views: 158
Posted By felgall
You said you are learning Java and then have...

You said you are learning Java and then have posted some JavaScript code. Which of the two is it you are learning - Java or JavaScript?

Java and JavaScript are as different as Ham and Hamsters
Forum: JavaScript programming 05-16-2013, 08:43 PM
Replies: 4
Views: 198
Posted By felgall
If you have both PHP and JavaScript then any...

If you have both PHP and JavaScript then any document.write statements in the JavaScript should be rewritten to use PHP echo calls instead.
Forum: PHP 05-16-2013, 08:40 PM
Replies: 6
Views: 284
Posted By felgall
and several thousand other programming languages...

and several thousand other programming languages as well.
Forum: HTML & CSS 05-13-2013, 08:14 PM
Replies: 1
Views: 142
Posted By felgall
XHTML 1.0 requires that a type be specified on...

XHTML 1.0 requires that a type be specified on the script tag.

The appropriate type to use for JavaScript is type="application/javascript"

in XHTML 5 you can omit the type but then it...
Forum: JavaScript programming 05-13-2013, 08:23 AM
Replies: 4
Views: 174
Posted By felgall
To add to Philip's comments on outdated code: ...

To add to Philip's comments on outdated code:

alert is for debugging only.

escape is long deprecated - you should be using encodeURI instead.

<center> and align=center were removed from HTML...
Forum: PHP 05-13-2013, 03:23 AM
Replies: 4
Views: 316
Posted By felgall
The only way to make the change without your...

The only way to make the change without your visitors knowing would be if you add the new password field while retaining the old one.

The first time they log in after you make the change you hash...
Showing results 1 to 25 of 500

 
Forum Jump

All times are GMT +1. The time now is 03:45 AM.