Fork me on GitHub
Get XOOPS XOOPSXOOPS FAQFAQ ForumsForums NewsNews ThemesThemes ModulesModules
New Posts New Topics All Posts All Forums Index General Modules Themes Development International XOOPS.org

Search

Donat-O-Meter

Make donations with PayPal!
Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00

Learn XOOPS Core

Local Support

Advertisement

XOOPS Code hosted on SourceForge

Cumulus Tag Cloud

- 2 2.5 2.6 3.0 4 6 2013 Abuse adslight Android AntiHarvesting AntiMalUser AntiSpam Apple Battlefield Blocks Bootstrap Captcha cell cent chronolabs CHUNG Clicks content CĂN demo download Dresses facebook Fat floor Food for free Gateway Guide herre Home Honeypot HP html5 Human HỘ iPhone jQuery List log Loss mobile module modules Monster new newbb news NHÀ online PARK phone PHP Prevention profile project Protector publisher Rapid RESIDENCE responsive review Rights rmcommon Room security Sentry site Smartphone Smarty Smoking Spam stem Studio support tag tags tdmcreate template The Theme themes User userlog web weight xoops Xortify XPayment ZendFramework

New Users

Registering user

# 137292

annaczary123

Welcome to XOOPS!

Forum Index


Board index » All Posts (Mamba)

Bottom   Previous Topic   Next Topic

(1) 2 3 4 ... 599 »


#1 Posted on: Today 14:54 Re: Inserting multiple rows in database table
Quote:
I'm not getting any syntax error, so I'll have to use other tools to check

Very often syntax is not the issue, but the logic in our thinking....

Just set breaks in your debugger, and compare the values there with what you expect. I am sure that very quickly you'll find a bug in your logic

Top


Please support XOOPS & DONATE
Use 2.5.6 | Debugging | Requests | Bugs
Mamba
Moderator
Moderator
Joined:
2004/4/23 13:58
From Ohio, USA
Group:
Webmaster
Registered Users
Designer Group
Posts: 7836
(Show More) (Show Less)
Topic | Forum


#2 Posted on: Today 10:39 Re: Inserting multiple rows in database table
Did you try to debug it?

I am not sure I understand the code. You declare the datas as an array, but you don't populate it as an array, and then you try to use it as an array when you populate the DB

Shouldn't it be something like:

$datas[$i] = array('field_mid' => $table_mid[$i],


Top


Please support XOOPS & DONATE
Use 2.5.6 | Debugging | Requests | Bugs
Mamba
Moderator
Moderator
Joined:
2004/4/23 13:58
From Ohio, USA
Group:
Webmaster
Registered Users
Designer Group
Posts: 7836
(Show More) (Show Less)
Topic | Forum


#3 Posted on: Today 7:41 Re: Inserting multiple rows in database table
Quote:
Unfortunately it does not work

What doesn't work? What errors are you getting?

Top


Please support XOOPS & DONATE
Use 2.5.6 | Debugging | Requests | Bugs
Mamba
Moderator
Moderator
Joined:
2004/4/23 13:58
From Ohio, USA
Group:
Webmaster
Registered Users
Designer Group
Posts: 7836
(Show More) (Show Less)
Topic | Forum


#4 Posted on: Today 4:50 Re: Inserting multiple rows in database table
Why? What would be the "use case" for it?

You can currently create an array, and then run a loop like "foreach" and insert each element into the DB.

Top


Please support XOOPS & DONATE
Use 2.5.6 | Debugging | Requests | Bugs
Mamba
Moderator
Moderator
Joined:
2004/4/23 13:58
From Ohio, USA
Group:
Webmaster
Registered Users
Designer Group
Posts: 7836
(Show More) (Show Less)
Topic | Forum


#5 Posted on: 4/15 15:29 Re: transfer 2.5 a 2.5.6 bug
You should be able to upgrade from XOOPS 2.5.0 to XOOPS 2.5.6 without any problems. Just follow the instructions...

If something is not clear and you have question, please ask here and we'll try to help...

Top


Please support XOOPS & DONATE
Use 2.5.6 | Debugging | Requests | Bugs
Mamba
Moderator
Moderator
Joined:
2004/4/23 13:58
From Ohio, USA
Group:
Webmaster
Registered Users
Designer Group
Posts: 7836
(Show More) (Show Less)
Topic | Forum


#6 Posted on: 4/15 15:26 Re: WF-Downloads 3.23 RC
Quote:
It is possible to add support for XOOPS 2.5.6?

I am pretty sure that WF-Downloads 3.23 will be released after XOOPS 2.5.7, so there should be no problem to first update to XOOPS 2.5.7, and then install WF-Downloads.

Top


Please support XOOPS & DONATE
Use 2.5.6 | Debugging | Requests | Bugs
Mamba
Moderator
Moderator
Joined:
2004/4/23 13:58
From Ohio, USA
Group:
Webmaster
Registered Users
Designer Group
Posts: 7836
(Show More) (Show Less)
Topic | Forum


#7 Posted on: 4/15 3:50 WF-Downloads 3.23 RC
Luciorota has added bunch of really cool features to WF-Downloads module, and did a lot of clean-up of the code! So a BIG "THANK YOU" to him for all his work there!

I have also added some changes:

Quote:
- replaced Thickbox with MagnificPopup
- fixed: source code for HTML5/CSS3
- moved module.css, and /js and /images to /assets folder
- fixed review for Admin: Admin doesn't need approval
- added: missing mp3 tag for preview
- replaced: custom uploader with XoopsMediaUploader
- added: no size limit for uploads by Admin

and placed them in a separate branch.

So while we will work on merging these changes, please help us by testing and providing feedback.

Top


Please support XOOPS & DONATE
Use 2.5.6 | Debugging | Requests | Bugs
Mamba
Moderator
Moderator
Joined:
2004/4/23 13:58
From Ohio, USA
Group:
Webmaster
Registered Users
Designer Group
Posts: 7836
(Show More) (Show Less)
Topic | Forum


#8 Posted on: 4/11 22:30 Re: XOOPS 2.6 : trouble installation and pre-required ?
Sorry, but something has to be wrong with your configuration. I never got this kind of error, unless it was my mistake (like couple of times I forgot to update the php.ini)

Top


Please support XOOPS & DONATE
Use 2.5.6 | Debugging | Requests | Bugs
Mamba
Moderator
Moderator
Joined:
2004/4/23 13:58
From Ohio, USA
Group:
Webmaster
Registered Users
Designer Group
Posts: 7836
(Show More) (Show Less)
Topic | Forum


#9 Posted on: 4/11 20:50 Re: XOOPS 2.6 : trouble installation and pre-required ?
In the php.ini, which you open from the WAMP GUI, you should have something like:

Quote:
; Directory in which the loadable extensions (modules) reside.
; http://php.net/extension-dir
; extension_dir = "./"
; On windows:
; extension_dir = "ext"
extension_dir = "s:/wamp64/bin/php/php5.5.11/ext/"

Make sure that this folder is set there correctly to whatever your directory is.


Top


Please support XOOPS & DONATE
Use 2.5.6 | Debugging | Requests | Bugs
Mamba
Moderator
Moderator
Joined:
2004/4/23 13:58
From Ohio, USA
Group:
Webmaster
Registered Users
Designer Group
Posts: 7836
(Show More) (Show Less)
Topic | Forum


#10 Posted on: 4/11 20:20 Re: XOOPS 2.6 : trouble installation and pre-required ?
Quote:
and in the php.ini :

But do you have set the correct folder for extensions in php.ini?
I forgot couple of times, so that's why I am asking

Top


Please support XOOPS & DONATE
Use 2.5.6 | Debugging | Requests | Bugs
Mamba
Moderator
Moderator
Joined:
2004/4/23 13:58
From Ohio, USA
Group:
Webmaster
Registered Users
Designer Group
Posts: 7836
(Show More) (Show Less)
Topic | Forum



Top
(1) 2 3 4 ... 599 »



[Advanced Search]