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 9023775
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T05:50:33+00:00 2026-06-16T05:50:33+00:00

Believe it or not I can not find an answer anywhere, it must be

  • 0

Believe it or not I can not find an answer anywhere, it must be very simple…

I installed composer and imported in my project active record in my Test App.

Now i am trying to create a table dynamically from my script, something like

  • The user register
  • username and password get stored into user table
  • a new table for this user needs to be created

with plain php i would send a raw query(CREATE TABLE 'john_doe'...) with PDO

Is there a way to do it with Active Record?


Thanks, I tried using a model for an already existing table to create new tables and it worked, not sure yet about create a Connection object.

The documentation of this active record is not really for beginners, i am to use to the example of php.net, wish all the documentation were like that.

  • 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-16T05:50:34+00:00Added an answer on June 16, 2026 at 5:50 am

    You can send a raw query using phpactiverecord using the Connection::query('CREATE TABLE 'john doe'...) method.

    If you using activerecord in your models, you can use the Model::query('blah'); method.

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

Sidebar

Related Questions

Believe it or not, I can't find the answer to what I would think
I really can't believe I couldn't find a clear answer to this... How do
I can't believe that I can't find the answer to this question but I
I can't believe I'm asking this, but can't find a clear answer about it.
Am not sure how to put this, and I couldn't find the answer because
This seems like a simple question, but for some reason I can't find the
I've look at the questions on here but can't find an answer that specifically
ok, I believe that this is so common but I can't seem to find
I've spent some time researching this and simply can't find a definitive answer. Here
I can't find a definite answer to this question in the documentation. If a

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.