agreed with the forum clarification, but to quickly answer the question, try this:
var newdiv = document.createElement('div');
var divIdName = 'myDiv';
newdiv.setAttribute('id',divIdName);
another note is that the "mysql" library is deprecated as of PHP 5.5.0 in favor of the new "mysqli" library. You should update your code to reflect this.
Take a look:
http://www.php.net/manual/en/intro.mysql.php
Actually, session_start() is the very first function called by the master file- sorry, I didn't include that here...
and from what I can tell, it's not throwing any errors o.O
Hello,
I'm building a website which connects several reporting APIs (like google analytics) and I want to write a centralized class which does stuff like saving the authentication tokens to the database, and then each API would simply extend these features for the specifics that the api is...
I wrote a simple login script- done this many times before. for some reason, it works on the second try, but not the first. ..
Here's what happens... So I go to the login page, enter the correct usern/passw and it logs in successfully, but the session var is not saved, thus it gets kicked back...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.