Login
Username: Password:
Remember me

[Sign Up] / [Recover Password]

Theme / Language

Popular
New Torrents
new name
Size: 18.40 MB
Most active
new name
S: 74 L: 3
New Posters
Upload image error
Controls ·  Search New posts · Mark unread

You are in: Forum / Forum / M-BiTsy / M-BiTsy Support

2020-08-16 18:06:32
Started getting odd behaviour on latest dimaria so post here in case anyone else has it in future

Image uploaded but not in database

In sql
`image1` text NOT NULL,
 `image2` text NOT NULL,

change to
`image1` text default NULL,
 `image2` text default NULL,

The image var is array $iname[]
then in torrents upload we use
$iname[0] and $iname[1] in big query

If one was null it would empty array
2020-08-29 12:55:09
is it good for me as such?
[ATTACH type="full"]5816[/ATTACH]
Captu22re.PNG
Captu22re.PNG

2020-08-29 13:43:30
la valeur par défaut peut être changée en null
mais cela a l'air bien, d'après mon expérience, nul ne peut être non
mieux vaut vérifier lors du téléchargement ajouter image2 miss image1

the default value can be changed to null
but it looks good in my experience null can not be no
better check when uploading add image2 miss image1
2020-08-29 14:45:48
"m-jay, post: 69229, member: 20288":

la valeur par défaut peut être changée en null
mais cela a l'air bien, d'après mon expérience, nul ne peut être non
mieux vaut vérifier lors du téléchargement ajouter image2 miss image1

the default value can be changed to null
but it looks good in my experience null can not be no
better check when uploading add image2 miss image1

ok super, a date a l'upload ça bien été.

Merci

-----------------------------------

ok great, a date uploaded it was good.


thank you
2020-08-30 05:14:55
VARCHAR(10) - if the image is a a ID
"m-jay, post: 69229, member: 20288":

la valeur par défaut peut être changée en null
mais cela a l'air bien, d'après mon expérience, nul ne peut être non
mieux vaut vérifier lors du téléchargement ajouter image2 miss image1

the default value can be changed to null
but it looks good in my experience null can not be no
better check when uploading add image2 miss image1


SQL way: This can be taken care of too by adding SELECT * FROM torrents IFNULL(image1, false) AS img1, IFNULL(image2, false) AS img2

Reducing extra code for a simple check.
Users online

No users online

Search



Statistics

    Torrents

  • Tracking: 3
  • Todays torrents: 0
  • Seeders: 0
  • Leechers: 0
  • Peers: 0
  • Downloaded: 89.96 GB
  • Uploaded: 9.86 GB

  • Members

  • We have: 838
  • New today: 0
  • Guest today: 9

  • Online

  • Total online: 9
  • Members: 0
  • Guests online: 9
  • Comments: 3
  • Messages: 1,728