Jump to content


Member Since 06 May 2003
Offline Last Active Feb 25 2015 02:42 PM

Posts I've Made

In Topic: Need help with PHP / MSQL

25 February 2015 - 10:53 AM

So you identified the problems already?  If that's the case why don't you point those out.  Seems like at present you're just asking us to do your assignment for you.

In Topic: Parse error: syntax error, unexpected T_FUNCTION, expecting ')' in /

05 February 2015 - 11:32 AM

What version of php are you working with?


30 January 2015 - 02:47 AM

$_SERVER['REMOTE_ADDR'] will not return the remote user IP when there is a load balancer or proxy in front of the server, which is what it sounds like they have in place at your ISP.
Check and see if the $_SERVER['HTTP_X_FORWARDED_FOR'] variable is filled.  That will be the client IP that formerly was in REMOTE_ADDR.
It's a bit more complicated, because it's possible this will be a list of IP's when people come through a proxy, but that really depends on the behavior of the load balancer and what it's passing on.  In other words, you may have to explode the variable on commas, and take the first or last ip in the list.

In Topic: Confused

04 December 2014 - 03:16 PM

When you do a query, you fetch the results in your server side script.  Each row is going to have an id column, correct?  


Your script returns output in the form of html.


It is up to you to determine what the form of that output would be.  For something like this, a typical response would be in the form of a table with different columns.  Often people will include a column with one or more buttons like "ban", "edit", "password".  The buttons can be simple url's of the type Cronix just described.


You simply need to write the scripts for each of the functions, or perhaps a master script that took multiple parameters like:




In Topic: Can you read in an image from a file into html without refreshing a webpage?

04 December 2014 - 03:11 PM

Hey greenace,


I saw you got some great advice already.  


It would really help you in getting answers if you were to try and boil down your problems concisely.  You provide a lot of detail and superfluous info that has nothing to do with your problems at hand. 


Try to make a mockup or other visual representation, or provide something as a point in reference if you can.  It would really help.


Javascript is a complicated language with huge differences from php, and the DOM and cross browser details make things exceedingly confusing in comparison.


With that said, I agree that the fastest way to get solutions to what you're trying to do visually is to use jQuery and one of the many compatible classes out there that will handle the animations you originally wanted.


There are probably hundreds of different slideshow libraries out there.  


Trying to do a pure css slideshow is still exceedingly difficult and limited, even with css3, which of course means it will not work in older browsers.  This article shows that it's possible, but there's a lot to it:  http://www.smashingm...ling-slideshow/


As to your original question, already answered:


For dynamic loading of content -- when a page is loaded, the connection to the server is ended.  Each individual component of that page will be loaded separately by the browser once it has gotten the html, however, eventually when all the components (html, javascript, css, images, flash etc) have been fetched by the browser, everything is completely client-side in the user's browser.  


The only options at that point are javascript or object embed techs like flash, which are again running on the user's computer in their browser.


The way to go beyond the basic HTTP request/response architecture involves using javascript to make dynamic requests (Ajax or the newer web sockets).


So at this point, you really have to get into javascript to get a rich multimedia experience with dynamic updates to content.  


I don't really know from your description whether or not you even need dynamic updates to the DOM based on your original objective.  You can generate a list of 'n' images randomly for each page view and provide enough so that your slideshow can work, and of course that would all be pre-determined when the page was originally server side in your php code.

Cheap Linux VPS from $5
SSD Storage, 30 day Guarantee
1 TB of BW, 100% Network Uptime