Jump to content


Member Since 01 Mar 2007
Offline Last Active Sep 25 2014 09:07 PM

Posts I've Made

In Topic: Should One Learn OOP First Before Getting to Learn a Framework?

25 September 2014 - 09:02 PM

I have to agree with CroNiX, but you only really need a good understanding of the basics, and a common parrern design like MVC would be a plus.

In Topic: dynamic metatags with php and mysql

04 March 2014 - 05:36 PM

As a guess you have missed the connection to mysql


as mysql_fetch_array is getting a boolean (i assume false, that is an error in the query)


try a

result=mysql_query($query) or die(mysql_error());

and see what the error is

In Topic: list all files in a directory

04 March 2014 - 05:31 PM

Try this simple example,

$dir = dirname(__FILE__)."/"; //Get the directory where this script is located

echo "This is the full path: ".$dir
echo "<br />\n";

// Open a known directory, and proceed to read its contents
if (is_dir($dir)) { //Checks its a directory
    if ($dh = opendir($dir)) { //Access the directory
        while (($file = readdir($dh)) !== false) { //read files/folder from the directory
            echo "filename: $file : filetype: " . filetype($dir . $file) . "\n"; //display the found item directory

it should give you the full of where the script is and what files and folders are inside.


The most common problem is getting the path right.


You could change dir in the above script  to

$dir = dirname(__FILE__)."/Thumbnails/"; //Get the directory where this script is located

If the script is in the Gallery directory..


Hope this helps

if not then just lets us know what happened :)

In Topic: MySql code help needed

04 March 2014 - 05:17 PM

First thing I would remove the whitespace, between the  php tags

$boxerrortext = 'No duplicate boxes';


if (isset($_POST['submit']))     {

but i think the main problem is with the array itself

$error[] = array(

should probably be

$error = array(

(no [])

In Topic: Need Help with POST array

26 April 2012 - 03:01 PM

The image field is infact a file
for that one,

as for the submit button
unset should work..
if not just skip it
for example
foreach ($_POST as $key => $value) {
if($key=='submit_mod') continue;

Hope this helps