0

my problem is why sql doesn't let me make an insert into for a row with more than 20 column everythings works fine but when it reaches its limit()

$statement=$connection->prepare("INSERT INTO post
        ( id, short_name, title, fecha, author_id, 
          platform, general, size, type, views, 
          about, spain, english, japanese, italian, 
          french, other, genre, tutorial)
 VALUES ( :id, :short_name, :title, :fecha, :author_id, 
          :platform, :general, :size, :type, :views, 
          :about, :spain, :english, :japanese, :italian, 
          :french, :other, :genre, :tutorial)");

 $statement->execute(array(
               ':id'=>$null,
               ':short_name'=>$short_title,
               ':title'=>$title,
               ':fecha'=>$date,
               ':author_id'=>$mineid,
               ':platform'=>$platform,
               ':general'=>$general,
               ':size'=>$size,
               ':type'=>$type,
               ':views'=>$o,
               ':about'=>$about,
               ':spain'=>$spanish,
               ':english'=>$english,
               ':japanese'=>$japanese,
               ':italian'=>$italian,
               ':french'=>$french,
               ':other'=>$other,
               ':genre'=>$genre,
               ':tutorial'=>$videotutorial
              ));

When i try to add another column it just does not insert the data without telling me any error "IS THE PDO METHOD" i really need your help

RiggsFolly
  • 93,638
  • 21
  • 103
  • 149
Jouhn code
  • 61
  • 9

0 Answers0