Search found 6536 matches

by requinix
Wed Dec 27, 2017 10:22 pm
Forum: PHP - Code
Topic: Question about XML
Replies: 1
Views: 5100

Re: Question about XML

by requinix
Thu Dec 21, 2017 10:32 pm
Forum: Javascript
Topic: Make a WP page with JavaScript
Replies: 7
Views: 18445

Re: Make a WP page with JavaScript

Javascript just adds more hurdles: either way you have to create HTML, so doing that process with Javascript is only creating more work for yourself. The <span> stuff in the <script> is bad. You have to get rid of it somehow. Obviously. You should get rid of the others too. I don't know what you're ...
by requinix
Thu Dec 21, 2017 1:01 am
Forum: Javascript
Topic: Make a WP page with JavaScript
Replies: 7
Views: 18445

Re: Make a WP page with JavaScript

You can definitely attach events to it. But why are you creating the form with Javascript? Why can't you just write HTML for it? I'm sure it would be easier.
by requinix
Tue Dec 19, 2017 8:48 pm
Forum: Javascript
Topic: Make a WP page with JavaScript
Replies: 7
Views: 18445

Re: Make a WP page with JavaScript

It doesn't have to be a form, but yes that would be the way to go. Presumably you'll be putting these calculated values somewhere on the page (not necessarily into a form field) - you can either have a "calculate" button that does the math, or automatically do the math whenever the inputs ...
by requinix
Tue Dec 19, 2017 8:45 pm
Forum: PHP - Code
Topic: Why Mysql Row Deletion Fails ?
Replies: 7
Views: 11291

Re: Why Mysql Row Deletion Fails ?

Requinix knows I cross-post on many forums under this Username and he suspects (according to his pm) I am the same person using another Username in another forum but I did a little acting to throw him off the rails and now he is not so sure it's the same person under that different Username in that...
by requinix
Mon Dec 18, 2017 6:00 pm
Forum: PHP - Theory and Design
Topic: Current PHP callables considered bad partice
Replies: 4
Views: 19551

Re: Current PHP callables considered back partice

It was pretty obvious that we need callable prototypes , but somehow it was declined (?!?). PHP discusses everything publicly on their internals mailing list. Whenever you want to know what's going on, reading an archive of the emails is a great place to start. AFAIK callable_types was supported in...
by requinix
Sun Dec 17, 2017 7:03 pm
Forum: Linux
Topic: adding sites to LAMP
Replies: 7
Views: 20366

Re: adding sites to LAMP

I don't know what you mean.
by requinix
Sun Dec 17, 2017 1:50 am
Forum: Databases
Topic: This is the error message SQL
Replies: 1
Views: 10313

Re: This is the error message SQL

It means the NEWS table requires all products_model values to be unique. One of each.

Either provide a value for the products_model, which means you probably need to fix the other row which is also empty, or decide whether the uniqueness constraint needs to be there.
by requinix
Sat Dec 16, 2017 11:41 pm
Forum: Linux
Topic: adding sites to LAMP
Replies: 7
Views: 20366

Re: adding sites to LAMP

Putting them in one place like that is fine. What I'm saying is that /home specifically has a special meaning and is generally reserved for users of the system itself; if I saw a path "/home/site" then I would expect there to be a user named "site" to go with it. So my recommenda...
by requinix
Sat Dec 16, 2017 5:45 pm
Forum: Linux
Topic: adding sites to LAMP
Replies: 7
Views: 20366

Re: adding sites to LAMP

Scripts don't normally "prompt" for anything (besides passwords). Pass the username/site as an argument. If you're creating directories under /home then that suggests there are user accounts to go with it. Either create user accounts on the system or put the sites somewhere else. Creating ...
by requinix
Sat Dec 16, 2017 5:42 pm
Forum: Javascript
Topic: Help with get request in Json format 2
Replies: 6
Views: 61809

Re: Help with get request in Json format 2

1. Your Javascript syntax for a function is wrong.
2. There needs to be a space between the "Basic" and the encoded username and password
3. xmlhttp2 is undefined.
4. You don't seem to be passing or receiving any data.
by requinix
Sat Dec 16, 2017 6:54 am
Forum: Javascript
Topic: Help with get request in Json format 2
Replies: 6
Views: 61809

Re: Help with get request in Json format 2

setRequestHeader() goes after open() and before send(), but otherwise yes.
by requinix
Fri Dec 15, 2017 3:25 pm
Forum: Javascript
Topic: Help with get request in Json format 2
Replies: 6
Views: 61809

Re: Help with get request in Json format 2

myObj.matches is an array, not an object. Use a loop.
by requinix
Thu Dec 14, 2017 9:06 am
Forum: PHP - Code
Topic: Php code for sending email brings an error
Replies: 3
Views: 5069

Re: Php code for sending email brings an error

That sucks. You should probably fix it. I'm sure we could help but without any sort of details from you that's hard to do...
by requinix
Wed Dec 13, 2017 3:57 pm
Forum: PHP - Code
Topic: Is Not BigInt Or VARCHAR (40) Not Big Enough To House sha1?
Replies: 7
Views: 11234

Re: Is Not BigInt Or VARCHAR (40) Not Big Enough To House sh

Does "22d200f8670dbdb3e253a90eee5098477c95c23d" look like an integer to you? A number? It doesn't look like a number to me, but then again I might have more common sense than you do so who knows. So you changed the type of column to a VARCHAR(40). Good. You at least know how to count. But ...