Skip to content
Advertisement

Tag: database

Laravel Database Schema, Nullable Foreign

I’ve these two database tables: User Tables Partner Tables User Tables will handle this kind of informations While Partner Tables will contains all the user meta information such as first name and last name, etc. When a user is register to the site I only want few fields which are, username, email address, password, first name and last name. These

Laravel Distinct Count

Any way to make this query work using laravel? DB::raw or Eloquent usage doesn’t matter. SELECT count(DISTINCT name) FROM tablename; Here’s what i’ve tried but cannot get the proper output: …

Broken links after moving wordpress site

I moved my wordpress site from local host to a live server. The problem is that all links from my nav won’t work as the home button. live site url: http://iulian.cablevision.ro broken link example: http://iulian.cablevision.ro/about/ this is the error that i get: I tried to use the a comand in SQL on my database to update urls: And I also

MySQL automatically updating field when inserting data

I’m making a web application to make customers order items for anything. For that I’ve made a MySQL database which has the following tables: customers orders orders-items products In the customers table is all the information about the person such as: The customer ID, for the primary key and auto increment (id) The first name (first_name) The last name (last_name)

Advertisement