Jump to content

psynor

Members
  • Posts

    15
  • Joined

  • Last visited

    Never

About psynor

  • Birthday 01/09/1984

Contact Methods

  • Website URL
    http://www.devnstuff.com/

Profile Information

  • Gender
    Male
  • Location
    N?tter?y, Norway

psynor's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. I'm not entierly sure I got the question, but I would try to add an empty div and populate the value inside that. You would pull the amounts from the database and place them in javascript variables or you can look into AJAX on how to populate the amounts directly from the database. I would go with AJAX if the data display can change often. Otherwise, loading it on page load is fine Hope this helped
  2. Yeah this is how I've decided to do it... Trying out Yii now and the network structure will most likely be something similar to /protected (shared by all sites) /protected/framework /protected/app (custom application handling login and other tasks that's the same on all sites) /site1 /site1/app (extension of /protected/app) /site1/config /site1/controllers /site1/models /site1/views /site2 /site2/app (extension of /protected/app) /site2/config /site2/controllers /site2/models /site2/views ..... At least this is what I'm trying out to see if it will work like expected
  3. Yeah I'm aware of that I will have to rewrite some code. There's no way to make it 100% one fits all like a CMS. That would create to many restrictions. Also, cms requires extensions to fit different purposes so But I just thought it was worth a shot and ask if someone had an idea on how to do it But like you're saying, there's too much of a difference between the content on the sites. Guess I will just do some framework research, and build a platform on it that is easily maintained when it comes to introducing it to a new structure Thanks for replying though Much appreciated!
  4. Thanks for the reply I probably explained it badly, because I'm going to use 1 database per site (all sites hosted on one dedicated server). But after creating the first site I would like to be able to just install the same platform for a new site without having to rewrite database requests etc
  5. You should read up on MySQL INSERT and MySQL SELECT. Also do a search for php login tutorials
  6. This means that the array has only one index and the script is trying to access the second index (which doesn't exist). Keep in mind, the count starts at 0 (zero)
  7. You will need to create a table to hold the username and password, and the ask the database for a row where username and password matches the user input
  8. Argh you beat me to it KevinM1
  9. So I've been planning a project for a multi purpose platform. The idea is to use the same platform for several sites which will in turn result in a network. Log in on one site, and you are logged in on all sites in the network (this part i've got sorted out). The sites will focus on different topics like, attractions, entertainment, hotels. So now I'm trying to figure out a database structure that can be used on each platform. Let's take the music site first. It will hold information like: - Artists - Name - Genre - Contact/Booking info - Labels - Contact info - Name - Releases - Title - Artist - Track list Then the site for hotels will contain info such as - Name - Address - Contact info I've been thinking that I can treat them like items, but I'm stuck on how to build a solid structure so I don't have to build every site from scratch. Any ideas are very much appreciated
  10. I'm using Sublime Text 2. It's fast, reliable, and the syntax highlighting is very easy on the eyes
  11. You should send it as multipart (html and plain text). A lot of filters marks emails as spam if they only contain one format
  12. Can you var_dump your $_SESSION['cart']
  13. Not entierly true. filter_var() doesn't handle multi-byte strings. I'm wondering why people fail to mention this. The only way to make it reliable also outside of the a-z range is to first converting the string with Punycode transcription using the idn_to_ascii() function
  14. What you can do is set the email field in your table to be unique. Doing that the query will return an error if the email already exists. By doing it like this, you also don't need to select anything first to validate. You just run the INSERT query, and check what the response from the database is
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.