Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7894485
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T07:24:33+00:00 2026-06-03T07:24:33+00:00

The scenario is I would like to insert an record like this: Firstly, i

  • 0

The scenario is

I would like to insert an record like this:

Firstly, i have an array of what datafield i need to insert

 $field = Array ( [0] => Email [1] => Name ) 

Secondly, I have an array of mail

$mail = Array ( [0] => a@a.com [1] => foodil@g.com )

Lastly, I have an multi dimension array that has Name,

$set = Array ( [1] => Array ( [1] => leo [4] => NULL ) ) 

however, It can be more than one field,
eg. it can be also have a field of phone (and also address, geneder…whatever) , then it will be:

   $field = Array ( [0] => Email [1] => Name  [2] => Phone ) 

   $set = Array ( [1] => Array ( [1] => leo [4] => NULL )  [5] => Array ( [1] => 4343343 [4] => 3453343 )) 

The problem is , how to insert in the scenario like this? :
The query should look like this

$query="INSERT INTO subscriber (Email,Name,Phone) VALUES ($mail[] , $set[][], $set[][])";
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T07:24:35+00:00Added an answer on June 3, 2026 at 7:24 am

    why you not simply insert a single record for each subscriber?, if the fields on the databases are NOT-NULL you can insert default values instead. however, i would use json_encode() instead serialized(), this will maintain the data readble for others languages using a json parser.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have this scenario where I would like to redirect my domains using the
I have an architecture scenario and I would like to discuss to get your
I have got scenario where i would like to find where text in UILabel
Scenario A: Given the following string: <a href=# name=xy onclick=alert('hello');>test</a> ... I would like
I have a scenario like this: There are two tables table1 and table2 .
Scenario I would like to save images with alpha transparency as .png and images
I would like to know a way to implement a scenario that I am
I am learning C++ exceptions and I would like some clarification of the scenario:
Here is my scenario: I have a document, currently a FlowDocument, that I would
I have a scenario in which I think I need to lock a table

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.