Search Results

Showing results 1 to 38 of 38
Search took 0.01 seconds.
Search: Posts Made By: pritaeas ; Forum: Database Design and child forums
Forum: Database Design Sep 30th, 2009
Replies: 61
Views: 6,155
Posted By pritaeas
There is a working demo in the thread i posted on the previous page.
Forum: Database Design Sep 22nd, 2009
Replies: 61
Views: 6,155
Posted By pritaeas
http://www.daniweb.com/forums/thread224758.html
Forum: Database Design Sep 8th, 2009
Replies: 61
Views: 6,155
Posted By pritaeas
You can remove the require(tools), it's something from the other guys code.

You shouldn't have changed "image" into "Picture".

I have a very busy week this week, so I haven't got around to...
Forum: Database Design Sep 7th, 2009
Replies: 61
Views: 6,155
Posted By pritaeas
A blob field is just binary data, which in your code gets displayed as text. The most easy way would be to create a separate php page that retrieves your image and displays it. I have an example of...
Forum: Database Design Sep 2nd, 2009
Replies: 61
Views: 6,155
Posted By pritaeas
It would be something like this. I assume you have a column 'id' in your tables that identifies each separate record.


<table>
<?php
$db_link = @mysql_connect('localhost', 'username', 'pass')...
Forum: Database Design Sep 1st, 2009
Replies: 61
Views: 6,155
Posted By pritaeas
Something like this:


<table>
<?php
$db_link = @mysql_connect('localhost', 'username', 'pass') or die(mysql_error());
@mysql_select_db('wowtahc1_achievements') or die(mysql_error());

...
Forum: Database Design Aug 31st, 2009
Replies: 61
Views: 6,155
Posted By pritaeas
If you output your name and description like this:

<table>
<tr>
<th class="title">name</th>
</tr>
<tr>
<td class="description">description</td>
</tr>
</table>
Forum: Database Design Aug 28th, 2009
Replies: 61
Views: 6,155
Posted By pritaeas
Can you give me a specific example ?
Forum: Database Design Aug 26th, 2009
Replies: 61
Views: 6,155
Posted By pritaeas
Ow damn. it should be:


switch ($type) {
case 'general': {
}
case 'quests': {
}
Forum: Database Design Aug 21st, 2009
Replies: 2
Views: 473
Posted By pritaeas
Don't know the structure of your tables, but I think you could create a join between the two, thus creating a unique_email column and a shared_email column. You can then use an IF to select the right...
Forum: Database Design Aug 21st, 2009
Replies: 61
Views: 6,155
Posted By pritaeas
Try this:


<?php
$db_link = @mysql_connect('localhost', 'username', 'pass') or die(mysql_error());
@mysql_select_db('wowtahc1_achievements') or die(mysql_error());

$type =...
Forum: Database Design Aug 19th, 2009
Replies: 61
Views: 6,155
Posted By pritaeas
basically you get the link on the side to be:

<a href="http://www.wowtah.com/achievements.php?type=general">General</a><br/>
<a...
Forum: Database Design Jul 31st, 2009
Replies: 61
Views: 6,155
Posted By pritaeas
Yes. That should be all.
Forum: Database Design Jul 31st, 2009
Replies: 61
Views: 6,155
Posted By pritaeas
Look back in this thread, there's a link to it.

It's an sql file you need to execute to create the tables you need for the example.

If you've created the tables on your server and you uploaded...
Forum: Database Design Jul 30th, 2009
Replies: 61
Views: 6,155
Posted By pritaeas
These are smarty template files. (smarty.net). Iirc I put smarty in the zipfile.

The one other thing it needs is a database, which I put in test.sql
You will need to change the username and...
Forum: Database Design Jul 15th, 2009
Replies: 3
Views: 546
Posted By pritaeas
If the software is used only in-house, I don't see the need of using a webserver (asp/asp.net/php). I'd choose the C# option.
Forum: Database Design Jul 14th, 2009
Replies: 61
Views: 6,155
Posted By pritaeas
As promised.

http://www.pritaeas.info/DaniWeb/AdminPanel.rar
http://www.pritaeas.info/DaniWeb/test.sql
Forum: Database Design Jul 14th, 2009
Replies: 61
Views: 6,155
Posted By pritaeas
I have just written code for someone, that implements an account administration panel. It has a search tab, a detail view, a notes tab and a mass e-mail tab. The detail tab is a template which gets...
Forum: Database Design Jul 13th, 2009
Replies: 61
Views: 6,155
Posted By pritaeas
Most common method would be to use mypage?id=X on an item click. The page will use id to retrieve the data from the database and display it in your template. If you have spread your data over...
Forum: Database Design Jul 10th, 2009
Replies: 61
Views: 6,155
Posted By pritaeas
I can help you with php, but as far as i can tell, the hover information and some other stuff is javascript. I don't know much about that, as I always try to avoid using it.

The detail page in the...
Forum: Database Design Jul 7th, 2009
Replies: 61
Views: 6,155
Posted By pritaeas
As far as i can tell wowhead has one large item list on a single page, where at the top they jump down to a specific part (http://ptr.wowhead.com/?new-items=3.2). Everything here is already loaded...
Forum: Database Design Jul 7th, 2009
Replies: 61
Views: 6,155
Posted By pritaeas
Doesnt matter. I can understand your frustration. Create a table containing a blob field (not varbinary, my mistake). Then you can insert data in the table. I made a screenshot so you can see:
...
Forum: Database Design Jul 6th, 2009
Replies: 61
Views: 6,155
Posted By pritaeas
Probably misunderstood, possibly because english is not my native language, but I'm trying. Uploading an image through phpMyAdmin (in cpanel) can be done by using the choose file button, when you...
Forum: Database Design Jul 5th, 2009
Replies: 61
Views: 6,155
Posted By pritaeas
http://www.daniweb.com/forums/thread111092.html
Forum: Database Design Jul 2nd, 2009
Replies: 61
Views: 6,155
Posted By pritaeas
Glad to see you got it to work.

Images can be stored in a varbinary field, or you store the image on the server as file, and put only the filename as string in the db.

I'm not quite sure what...
Forum: Database Design Jun 30th, 2009
Replies: 61
Views: 6,155
Posted By pritaeas
This will print just one column name:


while ($row = mysql_fetch_assoc($result))
{
// use your data
echo $row['column_name'] . '<br/>';
}
Forum: Database Design Jun 29th, 2009
Replies: 61
Views: 6,155
Posted By pritaeas
You'll need a language to connect to them, for example PHP, Python, Ruby.

In PHP the code would look like this:


$db_link = @mysql_connect('localhost', 'youruser', 'yourpass') or...
Forum: Database Design Feb 26th, 2009
Replies: 10
Views: 2,761
Posted By pritaeas
Absolutely true, and I agree. My point was (didn't make it clear enough I think) that the 1-1 relation does not by definition need to be made by the business logic. My preference is to enforce rules...
Forum: Database Design Feb 20th, 2009
Replies: 2
Views: 919
Posted By pritaeas
My guess is that they rely heavily on link tables. Suppose you have a dutch and american dictionary, they wouldnt be linked by using the same id (as you stated). Instead it would use a third table...
Forum: Database Design Feb 19th, 2009
Replies: 10
Views: 2,761
Posted By pritaeas
In my humble opinion, in this case you should still use the normalized version and add a unique key on the intermediate table, thus forcing one staffmember per department.

The solution with the...
Forum: Database Design Oct 14th, 2008
Replies: 7
Views: 1,074
Posted By pritaeas
You could use one int ID field and a second type field, which would indicate the type of transaction.
Forum: Database Design Sep 10th, 2008
Replies: 1
Views: 705
Posted By pritaeas
Looks like 602SQL is based on ANSI SQL which doesn't support auto increment. Best to ask this at 602SQL support.
Forum: Database Design Jun 17th, 2008
Replies: 4
Views: 3,335
Posted By pritaeas
Those are country codes, he was asking for nationalities. My country is The Netherlands but my nationality is Dutch. Also, the nationality is different in each language. This is probably the reason...
Forum: Database Design Jun 16th, 2008
Replies: 4
Views: 3,335
Posted By pritaeas
AFAIK there is no ISO table for nationalities.
Forum: Database Design Jun 4th, 2008
Replies: 1
Views: 1,242
Posted By pritaeas
Check out the new browser Kirix Strata. It is designed to gather and store information from the internet. It's quite useful. (http://www.kirix.com/) You could write a bot, but I think you can better...
Forum: Database Design Jun 18th, 2007
Replies: 8
Views: 5,661
Posted By pritaeas
Normally I'd recommend completely normalizing your tables. It would be overhead (as you stated) when you start out and may seem inefficient. However, note that maybe some day your need to extend your...
Forum: Database Design Sep 21st, 2006
Replies: 2
Views: 1,583
Posted By pritaeas
in MySql there is the LOAD DATA INFILE command. Perhaps PostGre has support for it.
Forum: Database Design Aug 3rd, 2006
Replies: 5
Views: 24,255
Posted By pritaeas
The normalization is okay at this point.

Is this going to be a live system, or just a test ? Because if you want to book rooms, you'll need to know what rooms are available. Suppose a room cannot...
Showing results 1 to 38 of 38

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC