8,966 Posted Topics

Member Avatar for prem2
Member Avatar for nschessnerd

Make sure you are joining on PK's. Since you check common=0 I'd put an index on that column too. Additional option could be to create a view to hold all the information, so you could query the view instead of all the tables.

Member Avatar for pritaeas
0
110
Member Avatar for Deey

rch1231's solution will work if table2 and table3 are exactly the same. So, if they are not, you need to make sure to change the output so they do match.

Member Avatar for drjohn
0
105
Member Avatar for Kamboodle

[QUOTE=rch1231;1163709]The other problem you are going to run into is that you are using reserved words (variable types ) as field names. timestamp and text are both variable types.[/QUOTE] As long as you keep using the backticks in your queries, this will not be an issue.

Member Avatar for pritaeas
0
117
Member Avatar for dandixon

You can use the trackPageview() method to record what you want. What exactly do you want ?

Member Avatar for pritaeas
0
78
Member Avatar for WoW Me Web Girl

If this code is in a default smarty template then the curly brackets (from the stylesheet) denote a template variable. Either change the curly brackets, use {literal} or put the CSS in a separate file. Note that using javascript in a smarty template has the same issue.

Member Avatar for WoW Me Web Girl
0
375K
Member Avatar for benqus
Member Avatar for Graphix
0
139
Member Avatar for dreinzy

You are missing a dot between mysql_error and your string to concatenate them. [code] $result=mysql_query($connect, $sql) or die(mysql_error() . "Query FAIL."); [/code]

Member Avatar for dreinzy
0
2K
Member Avatar for cwarn23

I like InnoDB. Use it to contain several booking websites' data. It got very large, although not millions per day. Never had any corrupt data issues. With databases with these sizes I prefer to switch to postgres, oracle or mssql (depending on the customer of course).

Member Avatar for cwarn23
0
111
Member Avatar for khr2003

I use Polystyle, but it doesn't offer what you ask. But you could ask their support. It may be a feature I haven't found yet (since I don't code like that).

Member Avatar for khr2003
0
114
Member Avatar for obscured47
Member Avatar for ryy705

You see the two "bar" divs. If you make them float left it may be the effect you want.

Member Avatar for ryy705
0
83
Member Avatar for gruffy321

[url]http://cufon.shoqolate.com/generate/[/url] With Cufon you can turn your font into a javascript file and use it on any site you like. There is also Sifr and Flir, but Cufon is my favourite choice.

Member Avatar for gruffy321
0
143
Member Avatar for veledrom

Something like this, output of the code below: [url]http://www.pritaeas.net/public/php/pagination/[/url] [code] <html> <head> <style> .current { font-weight: bold; color: red; } .previous { } .next { } </style> </head> <body> <?php function createNavigation($current = 1, $total = 1, $enclose = 2, $endpoint = 2) { if ($current < 1) $current = …

Member Avatar for veledrom
0
485
Member Avatar for MickeyP123

[code] $sql = "Select * from table1 where table1.field1 not like '%$name%' "; [/code]

Member Avatar for as.bhanuprakash
0
74
Member Avatar for fayyaz

If there is really no additional description in the database, I guess you ronly solution would be to check for specific headers. All file formats have them. Perhaps you kind find a piece of code that does this for you.

Member Avatar for pritaeas
0
95
Member Avatar for noob2008
Member Avatar for JRM
Member Avatar for JRM
0
74
Member Avatar for Skywalker83

I think the problem you are facing arises from the fact that you use names (varchar) as foreign keys. In most situations you would have a PK integer field, which links all the tables together. The name would be just a column, which could then be easily changed.

Member Avatar for pritaeas
0
83
Member Avatar for joel123

You can use a UNION. Sort ASC the ones > 0 and union them with the ones that are zero.

Member Avatar for pritaeas
0
72
Member Avatar for Davife

Can you show a code sample, so we can see what you are doing ? Are you calling mysqldump or something similar ?

Member Avatar for NettSite
0
111
Member Avatar for cjmartin

There might be a better way, but this should work: [CODE] select batch_number, sum(ExpCounter) from ( select batch_number, sum(acount)/aSize as 'ExpCounter' from HMIExpCount2 where aDate >= '03/01/2010' and aDate <= '03/02/2010' and batch_number = '118705' group by batch_number, asize ) [/CODE]

Member Avatar for pritaeas
0
87
Member Avatar for cane23

I find this a strange construction: [code] if ($result1=mysql_query($w)) { echo "nice"; } else { echo "shit"; } while($row1 = mysql_fetch_assoc($result1)) { extract($row1); $first[]=$course_code; echo "<p>$course_status</p>"; } [/code] First you determine if the query has failed or not. Then you execute the while, not taking into account the return value. …

Member Avatar for pritaeas
0
129
Member Avatar for carlco9020

Meta refresh: [url]http://webdesign.about.com/od/metataglibraries/a/aa080300a.htm[/url]

Member Avatar for pritaeas
0
52
Member Avatar for lordspace

The Microsoft Platform Installer has Expression Web in it. Have used it from time to time. Works fine.

Member Avatar for pritaeas
0
111
Member Avatar for vinothkumarrvk
Member Avatar for gruffy321
Member Avatar for MxDev
Member Avatar for ChaseW

How do you create your feed ? Are you using a tool, or did you program it yourself.

Member Avatar for jeancarlo
0
123
Member Avatar for jocorok

You can always use Fiddler to see what is happening on the website.

Member Avatar for pritaeas
0
87
Member Avatar for farsen

You could sort by DAYOFWEEK() which takes a date column as input. Your output would be 1 .. 7 which you can map to the day name as you please. [url]http://dev.mysql.com/doc/refman/5.1/en/date-and-time-functions.html#function_dayofweek[/url]

Member Avatar for pritaeas
0
82
Member Avatar for ripraw
Member Avatar for peepster
Member Avatar for swapna7999

In HTML you can <embed> some types of files. However, most browser will not allow you to run an exe file because of security issues.

Member Avatar for democracy7.com
0
94
Member Avatar for hosamath

Do you just want to draw all points that you have ? Connect them by a line ? Or determine the actual circle ?

Member Avatar for pritaeas
0
250
Member Avatar for venusseo

[code] $result = mysql_query("SELECT * FROM `war` WHERE `user_name`='".$_POST['u_name']."' "); [/code]

Member Avatar for urtrivedi
0
74
Member Avatar for gandil

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 be sold due to maintenance.

Member Avatar for jram_0024
1
11K
Member Avatar for MickeyP123

You are missing the SELECT before the WHERE. See the first example here: [url]http://dev.mysql.com/doc/refman/5.1/en/insert-select.html[/url]

Member Avatar for MickeyP123
0
105
Member Avatar for MDanz
Member Avatar for andyjko

For a prototype, I think it's a nice piece of code. Hopefully you can get this project going, so it can evolve to a much mature version. Good luck.

Member Avatar for pritaeas
1
184
Member Avatar for richardtreier

If it is not at the beginning of the line, then there is at least one character in front of it. So, start with ^.+

Member Avatar for pritaeas
0
52
Member Avatar for brixton
Member Avatar for almostbob
0
900
Member Avatar for nvishwas

How do you handle the AddressableElement ? In your example there are two. Are there always two and appear both on one line ? Or are other situations possible. Anyway, start with this: [code] <xsl:template match="Transaction"> <xsl:value-of select="@TransactionID" disable-output-escaping="yes" />, <xsl:value-of select="@EventDate" disable-output-escaping="yes" />, </xsl:template> [/code]

Member Avatar for xml_looser
0
682
Member Avatar for whiteyoh

Select * tries to concatenate all the columns from all the tables, but every column has a dev_id, he cannot return that 4 times. Change it to SELECT tbl_dev_dilligence.*, tbl_dev_dilligence_business.*, tbl_dev_dilligence_director.* (I think) A lesser problem: tbl_dev_dilligence.dev_id = '115' appears twice. I'm guessing one should be tbl_dev_dilligence_business

Member Avatar for whiteyoh
0
105
Member Avatar for Simon180

Simon, it would be really hard for someone here to guess what's going on. I think your best bet at the moment is a change in the userlist. Check whether the user is already in the list before adding (you can use IndexOf).

Member Avatar for Simon180
0
120
Member Avatar for himit

[code] <xsl:variable name="URL"> <xsl:value-of select="catalog/cd"/> </xsl:variable> <a href="{$URL}"> Link to catalog </a> [/code]

Member Avatar for himit
0
164
Member Avatar for RonnyProgrammer
Member Avatar for samaru
0
124
Member Avatar for bimaljr

I think it should be this: [code] SELECT CountryName, COUNT(*) AS count FROM country c,votes v WHERE c.ID=v.CountryCode GROUP BY v.CountryCode ORDER BY count DESC LIMIT 3 [/code]

Member Avatar for pritaeas
0
124
Member Avatar for hpdp

Can you tell us where your links are in the xml and where you want them in the output ? I'm not quite sure what you are trying to achieve.

Member Avatar for pritaeas
0
165
Member Avatar for colweb
Member Avatar for colweb
0
133

The End.