Multiple rows in mysql

  • demonmaestro
  • Gold Member
  • Gold Member
  • User avatar
  • Joined: Jun 21, 2006
  • Posts: 485
  • Loc: Conroe, Texas
  • Status: Offline

Post July 21st, 2006, 4:03 am

Unknown column 'admin' in 'where clause'
SELECT picture_id, name, size FROM picture WHERE user_id=admin

that is what it gives me

and also i made it were when you sign up it collects your first and last name

how would i go about making it where a user can search for sombody by there first and last name the database field forthat is firstname, lastname, and username
Thanks, Josh --DemonMaestro
www.LilNetwork.com
Fun Website www.ShoutsCloud.com
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post July 21st, 2006, 4:03 am

  • gisele
  • Expert
  • Expert
  • User avatar
  • Joined: Nov 11, 2004
  • Posts: 583
  • Loc: Nimes (France)
  • Status: Offline

Post July 21st, 2006, 4:40 am

OK,

the error is because you changed the field as a string field so the query have to be changed (you have to add simple quote) :
$q = "SELECT picture_id, name, size FROM picture WHERE user_id=".$this->user_id;

and add simple quotes :

$q = "SELECT picture_id, name, size FROM picture WHERE user_id LIKE '".$this->user_id."'";

think about adding simple quotes in the insert query in store_picture() function.

For other kind of research
you will have to do a join query.

In the simplest way, Maybe you'll have to add functions in the class like that :
get pictures_by_first_name($first_name)
in with you select like on pictures, and users table, I don't know/remember what does users table is named and look like but the query will be something like that (put the right table and fields names) :
PHP Code: [ Select ]
//..
 
$q = "SELECT picture_id, name, size FROM picture JOIN user_table USING(username) WHERE firstname LIKE '".$first_name."'";
 
$result = mysql_query($q) or print mysql_error()."<br /";
 
 
  1. //..
  2.  
  3. $q = "SELECT picture_id, name, size FROM picture JOIN user_table USING(username) WHERE firstname LIKE '".$first_name."'";
  4.  
  5. $result = mysql_query($q) or print mysql_error()."<br /";
  6.  
  7.  

and you return $result so that you can browse the results display like I showed you in the beginning on this thread.

and
get pictures_by_first_name($first_name)

am I clear? :-)
____________________
My web site[/url] oh sh..!
  • demonmaestro
  • Gold Member
  • Gold Member
  • User avatar
  • Joined: Jun 21, 2006
  • Posts: 485
  • Loc: Conroe, Texas
  • Status: Offline

Post July 21st, 2006, 5:06 am

erm it comes up

No picture !

no more upload allowed !




and bty no i was not meaning that.. in the user table in the database i have stored all the users info like there username, profile info, firstname, ect. and i want it where a person can search for a firstname of somebody and have it go to header(location "userinfo.php?user=$username");
Thanks, Josh --DemonMaestro
www.LilNetwork.com
Fun Website www.ShoutsCloud.com
  • gisele
  • Expert
  • Expert
  • User avatar
  • Joined: Nov 11, 2004
  • Posts: 583
  • Loc: Nimes (France)
  • Status: Offline

Post July 21st, 2006, 5:37 am

well,

no picture, I guess it's pretty coherent,
Not more upload allowed, I show it in display_upload_form() function, if there is more or equal uploaded pictures files than allowed.
In your case, I think it shows that because when you call the constructor :

PHP Code: [ Select ]
 
//include the class and connects to the DB
 
$album = new album($user_id, $max_upload);
 
 
  1.  
  2. //include the class and connects to the DB
  3.  
  4. $album = new album($user_id, $max_upload);
  5.  
  6.  


$max_upload variable is probably empty.

So if you hadn't put any values for that just before you should give it.
In fact I don't know how you manage that, what does it depend on, so just while you try this script, give a value just before for example

PHP Code: [ Select ]
 
$max_upload = 5;
 
//include the class and connects to the DB
 
$album = new album($user_id, $max_upload);
 
 
  1.  
  2. $max_upload = 5;
  3.  
  4. //include the class and connects to the DB
  5.  
  6. $album = new album($user_id, $max_upload);
  7.  
  8.  
____________________
My web site[/url] oh sh..!
  • demonmaestro
  • Gold Member
  • Gold Member
  • User avatar
  • Joined: Jun 21, 2006
  • Posts: 485
  • Loc: Conroe, Texas
  • Status: Offline

Post July 21st, 2006, 5:56 am

do you understand on what i was trying to do for my user thing?

and bty no i was not meaning that.. in the user table in the database i have stored all the users info like there username, profile info, firstname, ect. and i want it where a person can search for a firstname of somebody and have it go to header(location "userinfo.php?user=$username");


and ermmm


failed av1.jpg 6890 bytes : picture too heavy ! why is it doing that?
Thanks, Josh --DemonMaestro
www.LilNetwork.com
Fun Website www.ShoutsCloud.com
  • gisele
  • Expert
  • Expert
  • User avatar
  • Joined: Nov 11, 2004
  • Posts: 583
  • Loc: Nimes (France)
  • Status: Offline

Post July 21st, 2006, 6:41 am

Quote:
do you understand on what i was trying to do for my user thing?

do you want a serach enfine for the user (search by firstname, etc...)

Quote:
failed av1.jpg 6890 bytes : picture too heavy ! why is it doing that?

I show it in store_picture() in the picture is too big.
very strange, did you change album::size_limit ?
PHP Code: [ Select ]
//..
 
var $size_limit = 100000;
 
 
  1. //..
  2.  
  3. var $size_limit = 100000;
  4.  
  5.  

that allows till 100000 bytes (100kb)

By the way I realized that I print the values in store_picture() :
print "<p>".$file['name']."<br />";
print "temp :".$file['tmp_name']."<br />";
print "type :".$file['type'] ."<br />";
print "size :".$file['size'] ."<br />";
print "error :".$file['error'] ."</p>";
I should have put comment on them .

anyway keep it like that while debuugging and check what is displayed.
____________________
My web site[/url] oh sh..!
  • demonmaestro
  • Gold Member
  • Gold Member
  • User avatar
  • Joined: Jun 21, 2006
  • Posts: 485
  • Loc: Conroe, Texas
  • Status: Offline

Post July 21st, 2006, 6:58 am

yes i want it where a user can type in a name of a person and it will pull up there username


and no i did not change the file size

PHP Code: [ Select ]
<?php //...  
 
//include the class and connects to the DB  
 
$max_upload = 5;
 
$album = new album($username , $max_upload);  
 
//check if he user clicked for removing and call the delete function  
 
if($_GET["del_pict_id"])  
 
    $album->delete_picture();  
 
//check if user is uploading right now and   call the function that treat uploaded files  
 
if($_GET["up"])  
 
    $album->store_picture();  
 
//query and display the user files call ths function.  
 
$album->display_album();  
 
//this function will display the form for uploading the files  
 
$album->display_upload_form($nb_file = 1); ?>      <?php class album
 
{
 
    var $user_id;
 
    var $size_limit = 100000;
 
    var $nb_limit;
 
    var $stored_pictures;
 
    function album($user_id, $nb_limit = 5)
 
    {
 
        $this->user_id = $user_id;
 
        $this->nb_limit = $nb_limit;
 
        $this->size_limit = $size_limit;
 
    }
 
    function display_album()
 
    {
 
        $q = "SELECT picture_id, name, size FROM picture WHERE user_id LIKE '".$this->user_id."'";
 
        $this->stored_pictures = mysql_query($q) or die(mysql_error()."<br />".$q);
 
        if(mysql_num_rows($this->stored_pictures))
 
        {
 
            print "<table border=\"1\">\n<tr><td align=\"center\"><b>Name</b></td><td align=\"center\"><b>Size</b></td><td align=\"center\"><b>Picture</b></td><td align=\"center\"><b>Action</b></td></tr>\n";
 
            while($d = mysql_fetch_row($this->stored_pictures))
 
            {
 
                print "<tr><td>".$d[1]."</td><td align=\"center\">".$d[2]."</td><td align=\"center\"><img src=\"pict/".$d[1]."\" /></td>";
 
                print "<td align=\"center\"><a href=\"".$_SERVER["PHP_SELF"]."?del_pict_id=".$d[0]."\">Delete</a></td></tr>\n";
 
            }
 
            print "</table>\n";
 
        }
 
        else
 
            print "<p>No picture ! </p>\n";
 
    }
 
    function store_picture()
 
    {
 
        //$_FILE is a superglobal so you can get it from there
 
        foreach ($_FILES as $file)
 
        {
 
             print "<p>".$file['name']."<br />";
 
            print "temp :".$file['tmp_name']."<br />";  
 
            print "type :".$file['type'] ."<br />";  
 
            print "size :".$file['size'] ."<br />";
 
            print "error :".$file['error'] ."</p>";
 
            if($file['size'] >= $this->size_limit)
 
            {
 
                print "<p>failed ".$file['name']." ".$file['size']." bytes : picture too heavy !</p>";
 
                return false;
 
            }
 
            if(preg_match("#^([a-z0-9_]+[.](jpg|gif))#i", $file['name']))
 
            {
 
                $q = "INSERT INTO picture (picture_id, name, size, user_id) VALUES ('', '".$file['name']."', '".$file['size']."', ".$this->user_id.")";
 
                mysql_query($q) or die(mysql_error()."<br />".$q);
 
            }
 
            else
 
            {
 
                print "<p>failed ".$file['name']." : Wrong picture name or extention !</p>";
 
                return false;
 
            }
 
            if(file_exists("pict/".$file['name']))
 
                $file['name'] .= $this->user_id;
 
            copy($file['tmp_name'], "pict/".$file['name']);
 
        }                
 
    }
 
    function delete_picture()
 
    {
 
        $q = "SELECT name FROM picture WHERE picture_id=".$_GET["del_pict_id"];
 
        $r = mysql_query($q) or die(mysql_error()."<br />".$q);
 
        $d = mysql_fetch_row($r);
 
        $file = "pict/".$d[0];
 
        $q = "DELETE FROM Picture WHERE picture_id=".$_GET["del_pict_id"]." LIMIT 1";
 
        mysql_query($q) or die(mysql_error()."<br />".$q);
 
        if(file_exists($file))
 
            unlink($file);  
 
    }
 
    function display_upload_form($nb_file = 1)
 
    {
 
        if(!$this->nb_limit <= mysql_num_rows($this->stored_pictures))
 
        {
 
            print "<form method=\"post\" enctype=\"multipart/form-data\" action=\"".$_SERVER["PHP_SELF"]."?up=1\">\n";
 
            for($i = 0;$i < $nb_file;$i++)
 
                 print "<p>\nPicucture N°".($i + 1)." : <input type=\"file\" name=\"file".$i."\" size=\"30\"></p>";
 
             print "<input type=\"submit\" value=\"upload\" />\n";
 
        }
 
        else
 
            print "<p>no more upload allowed !</p>";
 
    }
 
} ?>
  1. <?php //...  
  2.  
  3. //include the class and connects to the DB  
  4.  
  5. $max_upload = 5;
  6.  
  7. $album = new album($username , $max_upload);  
  8.  
  9. //check if he user clicked for removing and call the delete function  
  10.  
  11. if($_GET["del_pict_id"])  
  12.  
  13.     $album->delete_picture();  
  14.  
  15. //check if user is uploading right now and   call the function that treat uploaded files  
  16.  
  17. if($_GET["up"])  
  18.  
  19.     $album->store_picture();  
  20.  
  21. //query and display the user files call ths function.  
  22.  
  23. $album->display_album();  
  24.  
  25. //this function will display the form for uploading the files  
  26.  
  27. $album->display_upload_form($nb_file = 1); ?>      <?php class album
  28.  
  29. {
  30.  
  31.     var $user_id;
  32.  
  33.     var $size_limit = 100000;
  34.  
  35.     var $nb_limit;
  36.  
  37.     var $stored_pictures;
  38.  
  39.     function album($user_id, $nb_limit = 5)
  40.  
  41.     {
  42.  
  43.         $this->user_id = $user_id;
  44.  
  45.         $this->nb_limit = $nb_limit;
  46.  
  47.         $this->size_limit = $size_limit;
  48.  
  49.     }
  50.  
  51.     function display_album()
  52.  
  53.     {
  54.  
  55.         $q = "SELECT picture_id, name, size FROM picture WHERE user_id LIKE '".$this->user_id."'";
  56.  
  57.         $this->stored_pictures = mysql_query($q) or die(mysql_error()."<br />".$q);
  58.  
  59.         if(mysql_num_rows($this->stored_pictures))
  60.  
  61.         {
  62.  
  63.             print "<table border=\"1\">\n<tr><td align=\"center\"><b>Name</b></td><td align=\"center\"><b>Size</b></td><td align=\"center\"><b>Picture</b></td><td align=\"center\"><b>Action</b></td></tr>\n";
  64.  
  65.             while($d = mysql_fetch_row($this->stored_pictures))
  66.  
  67.             {
  68.  
  69.                 print "<tr><td>".$d[1]."</td><td align=\"center\">".$d[2]."</td><td align=\"center\"><img src=\"pict/".$d[1]."\" /></td>";
  70.  
  71.                 print "<td align=\"center\"><a href=\"".$_SERVER["PHP_SELF"]."?del_pict_id=".$d[0]."\">Delete</a></td></tr>\n";
  72.  
  73.             }
  74.  
  75.             print "</table>\n";
  76.  
  77.         }
  78.  
  79.         else
  80.  
  81.             print "<p>No picture ! </p>\n";
  82.  
  83.     }
  84.  
  85.     function store_picture()
  86.  
  87.     {
  88.  
  89.         //$_FILE is a superglobal so you can get it from there
  90.  
  91.         foreach ($_FILES as $file)
  92.  
  93.         {
  94.  
  95.              print "<p>".$file['name']."<br />";
  96.  
  97.             print "temp :".$file['tmp_name']."<br />";  
  98.  
  99.             print "type :".$file['type'] ."<br />";  
  100.  
  101.             print "size :".$file['size'] ."<br />";
  102.  
  103.             print "error :".$file['error'] ."</p>";
  104.  
  105.             if($file['size'] >= $this->size_limit)
  106.  
  107.             {
  108.  
  109.                 print "<p>failed ".$file['name']." ".$file['size']." bytes : picture too heavy !</p>";
  110.  
  111.                 return false;
  112.  
  113.             }
  114.  
  115.             if(preg_match("#^([a-z0-9_]+[.](jpg|gif))#i", $file['name']))
  116.  
  117.             {
  118.  
  119.                 $q = "INSERT INTO picture (picture_id, name, size, user_id) VALUES ('', '".$file['name']."', '".$file['size']."', ".$this->user_id.")";
  120.  
  121.                 mysql_query($q) or die(mysql_error()."<br />".$q);
  122.  
  123.             }
  124.  
  125.             else
  126.  
  127.             {
  128.  
  129.                 print "<p>failed ".$file['name']." : Wrong picture name or extention !</p>";
  130.  
  131.                 return false;
  132.  
  133.             }
  134.  
  135.             if(file_exists("pict/".$file['name']))
  136.  
  137.                 $file['name'] .= $this->user_id;
  138.  
  139.             copy($file['tmp_name'], "pict/".$file['name']);
  140.  
  141.         }                
  142.  
  143.     }
  144.  
  145.     function delete_picture()
  146.  
  147.     {
  148.  
  149.         $q = "SELECT name FROM picture WHERE picture_id=".$_GET["del_pict_id"];
  150.  
  151.         $r = mysql_query($q) or die(mysql_error()."<br />".$q);
  152.  
  153.         $d = mysql_fetch_row($r);
  154.  
  155.         $file = "pict/".$d[0];
  156.  
  157.         $q = "DELETE FROM Picture WHERE picture_id=".$_GET["del_pict_id"]." LIMIT 1";
  158.  
  159.         mysql_query($q) or die(mysql_error()."<br />".$q);
  160.  
  161.         if(file_exists($file))
  162.  
  163.             unlink($file);  
  164.  
  165.     }
  166.  
  167.     function display_upload_form($nb_file = 1)
  168.  
  169.     {
  170.  
  171.         if(!$this->nb_limit <= mysql_num_rows($this->stored_pictures))
  172.  
  173.         {
  174.  
  175.             print "<form method=\"post\" enctype=\"multipart/form-data\" action=\"".$_SERVER["PHP_SELF"]."?up=1\">\n";
  176.  
  177.             for($i = 0;$i < $nb_file;$i++)
  178.  
  179.                  print "<p>\nPicucture N°".($i + 1)." : <input type=\"file\" name=\"file".$i."\" size=\"30\"></p>";
  180.  
  181.              print "<input type=\"submit\" value=\"upload\" />\n";
  182.  
  183.         }
  184.  
  185.         else
  186.  
  187.             print "<p>no more upload allowed !</p>";
  188.  
  189.     }
  190.  
  191. } ?>
[/code]
Thanks, Josh --DemonMaestro
www.LilNetwork.com
Fun Website www.ShoutsCloud.com
  • gisele
  • Expert
  • Expert
  • User avatar
  • Joined: Nov 11, 2004
  • Posts: 583
  • Loc: Nimes (France)
  • Status: Offline

Post July 21st, 2006, 7:18 am

Ok I will work on a user search engine, when I've got a little time, right now I'm working at office :-).
____________________
My web site[/url] oh sh..!
  • demonmaestro
  • Gold Member
  • Gold Member
  • User avatar
  • Joined: Jun 21, 2006
  • Posts: 485
  • Loc: Conroe, Texas
  • Status: Offline

Post July 21st, 2006, 7:45 am

basically i have the users firstname in the database and i want it like this

search by firstname of user
||||||||||||||||||| submit


<? header("Location: userinfo.php?user=username");
Thanks, Josh --DemonMaestro
www.LilNetwork.com
Fun Website www.ShoutsCloud.com
  • demonmaestro
  • Gold Member
  • Gold Member
  • User avatar
  • Joined: Jun 21, 2006
  • Posts: 485
  • Loc: Conroe, Texas
  • Status: Offline

Post July 24th, 2006, 8:02 am

Hey man when do you think you can help me get the pics done?
Thanks, Josh --DemonMaestro
www.LilNetwork.com
Fun Website www.ShoutsCloud.com
  • gisele
  • Expert
  • Expert
  • User avatar
  • Joined: Nov 11, 2004
  • Posts: 583
  • Loc: Nimes (France)
  • Status: Offline

Post July 24th, 2006, 8:38 am

Hi man,

are you talking about the size problem?

Could you echo $this->limit at the same time when I show this report, and tell me.

Just like that (in store_picture() function) :

PHP Code: [ Select ]
//...
 
function store_picture()  
 
    {  
 
        //$_FILE is a superglobal so you can get it from there  
 
        foreach ($_FILES as $file)  
 
        {  
 
             print "<p>".$file['name']."<br />";  
 
            print "temp :".$file['tmp_name']."<br />";  
 
            print "type :".$file['type'] ."<br />";  
 
            print "size :".$file['size'] ."<br />";  
 
            print "error :".$file['error'] ."</p>";  
 
            if($file['size'] >= $this->size_limit)  
 
            {
 
               /* HERE I'M ALSO ECHOING THE MAX SIZE SET! $this->size_limit */
 
                  print "<p>max size set : ".$this->size_limit."</p>";
 
                print "<p>failed ".$file['name']." ".$file['size']." bytes : picture too heavy !</p>";  
 
                return false;  
 
            }  
 
            if(preg_match("#^([a-z0-9_]+[.](jpg|gif))#i", $file['name']))  
 
            {  
 
                $q = "INSERT INTO picture (picture_id, name, size, user_id) VALUES ('', '".$file['name']."', '".$file['size']."', ".$this->user_id.")";  
 
                mysql_query($q) or die(mysql_error()."<br />".$q);  
 
            }  
 
            else  
 
            {  
 
                print "<p>failed ".$file['name']." : Wrong picture name or extention !</p>";  
 
                return false;  
 
            }  
 
            if(file_exists("pict/".$file['name']))  
 
                $file['name'] .= $this->user_id;  
 
            copy($file['tmp_name'], "pict/".$file['name']);  
 
        }                  
 
    }  
 
 
  1. //...
  2.  
  3. function store_picture()  
  4.  
  5.     {  
  6.  
  7.         //$_FILE is a superglobal so you can get it from there  
  8.  
  9.         foreach ($_FILES as $file)  
  10.  
  11.         {  
  12.  
  13.              print "<p>".$file['name']."<br />";  
  14.  
  15.             print "temp :".$file['tmp_name']."<br />";  
  16.  
  17.             print "type :".$file['type'] ."<br />";  
  18.  
  19.             print "size :".$file['size'] ."<br />";  
  20.  
  21.             print "error :".$file['error'] ."</p>";  
  22.  
  23.             if($file['size'] >= $this->size_limit)  
  24.  
  25.             {
  26.  
  27.                /* HERE I'M ALSO ECHOING THE MAX SIZE SET! $this->size_limit */
  28.  
  29.                   print "<p>max size set : ".$this->size_limit."</p>";
  30.  
  31.                 print "<p>failed ".$file['name']." ".$file['size']." bytes : picture too heavy !</p>";  
  32.  
  33.                 return false;  
  34.  
  35.             }  
  36.  
  37.             if(preg_match("#^([a-z0-9_]+[.](jpg|gif))#i", $file['name']))  
  38.  
  39.             {  
  40.  
  41.                 $q = "INSERT INTO picture (picture_id, name, size, user_id) VALUES ('', '".$file['name']."', '".$file['size']."', ".$this->user_id.")";  
  42.  
  43.                 mysql_query($q) or die(mysql_error()."<br />".$q);  
  44.  
  45.             }  
  46.  
  47.             else  
  48.  
  49.             {  
  50.  
  51.                 print "<p>failed ".$file['name']." : Wrong picture name or extention !</p>";  
  52.  
  53.                 return false;  
  54.  
  55.             }  
  56.  
  57.             if(file_exists("pict/".$file['name']))  
  58.  
  59.                 $file['name'] .= $this->user_id;  
  60.  
  61.             copy($file['tmp_name'], "pict/".$file['name']);  
  62.  
  63.         }                  
  64.  
  65.     }  
  66.  
  67.  


Also, right now it's 17:38, I think until 2 hours (about 19/20h here at home), after the job, I will work on the user search engine.I think it won't be very long.
____________________
My web site[/url] oh sh..!
  • gisele
  • Expert
  • Expert
  • User avatar
  • Joined: Nov 11, 2004
  • Posts: 583
  • Loc: Nimes (France)
  • Status: Offline

Post July 24th, 2006, 8:51 am

By the way, could you show all the precise fields names of the user table.

I will use this for my query.

Also do you want the user to switch on what research (firstname or lastname or etc.) or do you want the user to type something and that automatically searches on all?
____________________
My web site[/url] oh sh..!
  • demonmaestro
  • Gold Member
  • Gold Member
  • User avatar
  • Joined: Jun 21, 2006
  • Posts: 485
  • Loc: Conroe, Texas
  • Status: Offline

Post July 24th, 2006, 10:45 am

av1.jpg
temp :/tmp/phpJ6MjpD
type :image/pjpeg
size :6890
error :0

max size set :

failed av1.jpg 6890 bytes : picture too heavy !

No picture !


that is what it does

and

the field names of the users tabel is

username
age
city
state
sex
sexuality
firstname
lastname
taken -> is like if they are single or what ever
Thanks, Josh --DemonMaestro
www.LilNetwork.com
Fun Website www.ShoutsCloud.com
  • gisele
  • Expert
  • Expert
  • User avatar
  • Joined: Nov 11, 2004
  • Posts: 583
  • Loc: Nimes (France)
  • Status: Offline

Post July 24th, 2006, 1:14 pm

Ok man, I think I got the size problem :

I had f.... the size_limit set in the constructor (function album())


see I replaced
$this->size_limit = $size_limit;
by
$this->size_limit = 100000;

in fact 100000 for 100 kb max (bigger pictures won't be allowed), but if you want to allow less or more feel free to change the value right here.

So here's the correct constructor :

PHP Code: [ Select ]
 
function album($user_id, $nb_limit = 5)  
 
{  
 
        $this->user_id = $user_id;  
 
        $this->nb_limit = $nb_limit;  
 
        $this->size_limit = 100000;  
 
}
 
 
  1.  
  2. function album($user_id, $nb_limit = 5)  
  3.  
  4. {  
  5.  
  6.         $this->user_id = $user_id;  
  7.  
  8.         $this->nb_limit = $nb_limit;  
  9.  
  10.         $this->size_limit = 100000;  
  11.  
  12. }
  13.  
  14.  


Just change this function by the above and try and tell me.

right now 22:11 here , Ijust beginthe seach engine, I hope I finish before the bed:-)

I think I will just add a function called search_user($string) in one of the existing class.
____________________
My web site[/url] oh sh..!
  • demonmaestro
  • Gold Member
  • Gold Member
  • User avatar
  • Joined: Jun 21, 2006
  • Posts: 485
  • Loc: Conroe, Texas
  • Status: Offline

Post July 24th, 2006, 1:18 pm

av1.jpg
temp :/tmp/phpt2Z04s
type :image/pjpeg
size :6890
error :0

Unknown column 'admin' in 'field list'
INSERT INTO picture (picture_id, name, size, user_id) VALUES ('', 'av1.jpg', '6890', admin)

that is what i get
Thanks, Josh --DemonMaestro
www.LilNetwork.com
Fun Website www.ShoutsCloud.com
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post July 24th, 2006, 1:18 pm

Post Information

  • Total Posts in this topic: 97 posts
  • Users browsing this forum: No registered users and 125 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
cron
 

© 2011 Unmelted, LLC. Ozzu® is a registered trademark of Unmelted, LLC.