Search found 979 matches

by Nullsig
Tue Sep 04, 2012 12:21 pm
Forum: mySQL & php coding
Topic: How to automatically refresh page every 1 minute?
Replies: 0
Views: 675

Re: How to automatically refresh page every 1 minute?

Typically the full refresh of the page is considered bulky and annoying. Instead you should only update the portion of the page that is changing. You can do this by utilizing AJAX. Even in the case where your entire page is updating, I would recommend using AJAX with some conditional checks to look ...
by Nullsig
Fri Aug 24, 2012 8:13 am
Forum: mySQL & php coding
Topic: Start using mysqli or PDO instead of mysql
Replies: 2
Views: 693

Re: Start using mysqli or PDO instead of mysql

1. Mysql will eventually be removed from PHP This is a valid point, but at the same time the user would have to update to the new version of PHP to be affected by removal. 2. Mysql does not support prepared statements, a great way of saving time Prepared statements only save time in the case where y...
by Nullsig
Fri Aug 24, 2012 8:12 am
Forum: PHP Scripts
Topic: How to access data from server through client script ?
Replies: 4
Views: 1272

Re: How to access data from server through client script ?

AJAX is really the only solution to access server side data on the client. You cannot touch the server data from the client without executing a new server-side script. That will either involve a full page refresh or an AJAX function.
by Nullsig
Fri Aug 24, 2012 8:10 am
Forum: mySQL & php coding
Topic: Using two queries in one table
Replies: 3
Views: 946

Re: Using two queries in one table

My response to your other post stands. As far as using the mysql on new code... it doesn't matter as long as the PHP build they are currently using supports it. There is no valid reason to convert to mysqli until it is necessary. Especially in the case where existing code on the server is using mysq...
by Nullsig
Thu Aug 23, 2012 8:10 am
Forum: PHP Scripts
Topic: How to access data from server through client script ?
Replies: 4
Views: 1272

Re: How to access data from server through client script ?

You cannot access server-side information using client side scripts. The closest you can get is using AJAX to issue invisible requests to the server and returning them to the currently loaded page.

You will need some way to save state, typically that will involve session variables.
by Nullsig
Thu Aug 23, 2012 8:07 am
Forum: PHP General
Topic: How to create connection class file and functions
Replies: 0
Views: 497

Re: How to create connection class file and functions

Which DML are you using? I would assume that you want SQL correct? Which SQL build will you use? MSSQL, MySQL, and other forms have different processes that you will need to use.
by Nullsig
Thu Aug 23, 2012 8:03 am
Forum: PHP coding => General
Topic: help me fix this - tiny problem
Replies: 0
Views: 269

Re: help me fix this - tiny problem

Clicking on the box should automatically bring it to focus, so you should only need the select

As far as putting the information in quotes.... why do you just put it in quotes?
<input type="text" size="50" onclick="this.focus(); this.select();" value="http://www.****/?ref=<?php echo $ref; ?>"/>
by Nullsig
Thu Aug 23, 2012 8:01 am
Forum: PHP coding => General
Topic: Writing PHP and HTML
Replies: 0
Views: 278

Re: Writing PHP and HTML

This is more of a stylistic question. The actual difference in execution won't matter too much. Personally the way I deal with it is that I keep as much PHP out of the HTML as possible. Typically that means creating all of the PHP in a separate file and then using the include function to pop it in w...
by Nullsig
Thu Aug 23, 2012 7:58 am
Forum: mySQL & php coding
Topic: PLEASE VERIFY MySQL SYNTAX
Replies: 1
Views: 598

Re: PLEASE VERIFY MySQL SYNTAX

Really you should escape out of the string when dealing with PHP variables. In this case the single quotes in your session variable are ending the quote surrounding it prematurely.

Code: Select all

$log="UPDATE log SET logouttime='" . $time . "' WHERE username='" . $_SESSION['username'] . "'";
by Nullsig
Mon Aug 20, 2012 5:59 am
Forum: mySQL & php coding
Topic: Using two queries in one table
Replies: 3
Views: 946

Re: Using two queries in one table

mysql_query is just as secure as mysqli... you just have to not be dumb when you use it.
by Nullsig
Mon Aug 20, 2012 5:57 am
Forum: Free time
Topic: Moving to Utah
Replies: 5
Views: 2514

Re: Moving to Utah

I can understand why it took so long. Unpacking after moving with just one woman takes a while... I can't even begin to wonder how much time it would take with multiple wives worth of stuff.
by Nullsig
Thu Aug 09, 2012 12:34 pm
Forum: JavaScript
Topic: Help with JavaScript code to display time from internet
Replies: 0
Views: 825

Re: Help with JavaScript code to display time from internet

You would have to use AJAX to retrieve the time from a remote site.

JavaScript by itself is client side only. Which means that you will only be able to use the client's computer
by Nullsig
Thu Aug 09, 2012 12:33 pm
Forum: PHP coding => General
Topic: month with year in drop down
Replies: 0
Views: 322

Re: month with year in drop down

Can you elaborate?

What else is in the drop down? What is the drop down being used for?
by Nullsig
Thu Aug 09, 2012 12:31 pm
Forum: mySQL & php coding
Topic: If the id doesn't exist how to redirect to id=1?
Replies: 0
Views: 519

Re: If the id doesn't exist how to redirect to id=1?

SELECT * FROM demotivators WHERE id IN ('$id',1) ORDER BY id DESC LIMIT 1
by Nullsig
Thu Aug 09, 2012 6:39 am
Forum: CSS
Topic: CSS Problem (jsFiddle Provided)
Replies: 9
Views: 3305

Re: CSS Problem (jsFiddle Provided)

There is probably a way to do it, but it is nothing I have ever encountered.

In general you want scrolling content to look like scrolling content. Otherwise the user will be confused.

I would look into JQuery packages that can accomplish this if you are absolutely committed to it.
by Nullsig
Wed Aug 08, 2012 6:58 am
Forum: CSS
Topic: CSS Problem (jsFiddle Provided)
Replies: 9
Views: 3305

Re: CSS Problem (jsFiddle Provided)

http://jsfiddle.net/87g2X/8/

You didn't have the overflow or height attributes for #content
by Nullsig
Tue Aug 07, 2012 10:09 am
Forum: CSS
Topic: CSS Problem (jsFiddle Provided)
Replies: 9
Views: 3305

Re: CSS Problem (jsFiddle Provided)

Because of the amount of restructuring it takes and the clunky interface of JS fiddle, yes it would take a lot of time. Here is the pseudo-coded skeleton <div id='wrapper' style='width:1024px'> <div id='navigation' style='width:100%'> </div> <div id='lowersection'> <div id='leftsidebar' style='float...
by Nullsig
Tue Aug 07, 2012 4:03 am
Forum: PHP General
Topic: Login
Replies: 0
Views: 485

Re: Login

There isn't an 'rb' modifier for fopen. That means more than likely your file isn't even being opened and read. Your lack of error trapping would be why you have had difficulty finding the error. You can check this by just changing this line: $file = fopen('users.txt', 'rb'); To This: if($file = fop...
by Nullsig
Tue Aug 07, 2012 3:59 am
Forum: CSS
Topic: CSS Problem (jsFiddle Provided)
Replies: 9
Views: 3305

Re: CSS Problem (jsFiddle Provided)

The way I mentioned will keep them fixed. because you will scroll the center content using the scroll bar that is created when a division has overflow:scroll as an attribute/value combination.
by Nullsig
Mon Aug 06, 2012 1:33 pm
Forum: CSS
Topic: CSS Problem (jsFiddle Provided)
Replies: 9
Views: 3305

Re: CSS Problem (jsFiddle Provided)

2 different things you need to do. 1. Your side divs (Injury Report, Mangement Options, Add Player) need to not be fixed. They should be floating divs or part of a table to maintain the layout you are looking for. 2. Your middle section with the placeholder section should have a fixed height and use...
by Nullsig
Mon Aug 06, 2012 1:05 pm
Forum: PHP coding => General
Topic: Login session problem:(
Replies: 0
Views: 266

Re: Login session problem:(

You didn't start your session in the check.php script.
by Nullsig
Wed Aug 01, 2012 8:35 am
Forum: PHP coding => General
Topic: Newbie question, need help executing my first PHP script
Replies: 11
Views: 1388

Re: Newbie question, need help executing my first PHP script

Your user name is eddie_nygma? Do people call you Mr. E? Do the call you E. Nygma?

Do men dressed in black costumes with large flowing capes scream "WHERE IS SHE?!" at you?

Do you commonly utter the phrase "riddle me this"?
by Nullsig
Wed Aug 01, 2012 3:54 am
Forum: PHP coding => General
Topic: Sessions and IE
Replies: 7
Views: 817

Re: Sessions and IE

It is defaulted to /tmp.

Wouldn't that cause an issue with all browsers though?
by Nullsig
Tue Jul 31, 2012 8:54 am
Forum: PHP coding => General
Topic: Sessions and IE
Replies: 7
Views: 817

Re: Sessions and IE

We don't run 3rd party add-ons.
by Nullsig
Tue Jul 31, 2012 7:59 am
Forum: PHP coding => General
Topic: Sessions and IE
Replies: 7
Views: 817

Re: Sessions and IE

Printed the session array, it is empty.

It seems to be an issue with how IE deals with sessions and sending the sessionID to the browser.