205 Posted Topics

Member Avatar for DaveTheSinger

It looks to me like it might be a charset configuration problem. If I view the CSS file in Chromes dev tools it shows up as Chinese text. The charset might be specified in the file itself or possibly in the web server where it is storing/delivering the file. Check …

Member Avatar for JorgeM
0
277
Member Avatar for Maha Sh.

What is the error you are getting? I don't believe you can have an actual foreign key set up on the table pointing to multiple other tables, but it shouldn't be causing an error with duplicate values unless you have specified that field as `unique` Copy your table/database structures and …

Member Avatar for Maha Sh.
0
146
Member Avatar for itisnot_me

Are you intending to trigger this process manually? If so I recommend using a database comparison utility to generate the difference scripts for you. This will also give you a chance to visually verify the updates that will occur before executing the script. There is a discussion on this topic …

Member Avatar for |-|x
0
317
Member Avatar for melaki

It looks like you are not setting `$email_to` or `$email_subject` anywhere. Check these, and verify if you can that your SMTP server is configured in the php.ini/conf file. You may need to set this via ini_set ( "SMTP", "smtp-server.example.com" );

Member Avatar for |-|x
0
187
Member Avatar for Pamilerin

Assuming the autoincrement ID's *do* match up in both tables you could use a subquery like so... ... WHERE BuyPortfolio.[STOCK ID] NOT IN (SELECT [STOCK ID] FROM Portfolio) This will return all records in the `BuyPortfolio` table which are not in the `Portfolio` table according to the ID's.

Member Avatar for Pamilerin
0
229
Member Avatar for azareth

Where you are setting Tableid, I believe you are actually redeclaring a local variable with the same name, so your global is never getting set. Try removing the `var` from line 6 and see if that solves your problem. Here is some general information on javascript variables that may also …

Member Avatar for azareth
0
243
Member Avatar for |-|x

During some recent project issues I found myself asking this very question: **Does MySQL short circuit WHERE clause statements?** After doing some research and finding that several other people and technical forums have posed this question, with several answers pertaining to be intelligent but that amount to *"i don't know"*, …

Member Avatar for |-|x
0
2K
Member Avatar for apanimesh061

What exactly do you mean by parse? Are you searching for specific values in the data? I would almost guarantee that doing these operations in an SQL script will be faster than processing manually in any programming language.

Member Avatar for |-|x
0
62
Member Avatar for |-|x

Ok, so the scenario is a database which stores customer contracts (to keep it simple) so that every time a contract is expired and renewed a new version is created in the database to reflect any changes (terms, price etc). My page needs to display a list of the latest …

Member Avatar for |-|x
0
155
Member Avatar for jbennet

Ok, I assume this is the right place to put this... bizzarly, I can't seem to access my post due to a 404 error. I got the email saying some activity on the post, clicked the link and got the error. Also get it when trying to view from the …

Member Avatar for Airshow
0
2K
Member Avatar for Wolxhound90

line 10 is not quite right. > strFrom &= theTable you would need to access the row and field inside the table object. (sorry about this example, but can't recall exact vb syntax off hand, in c# it would be something like this...) strFrom &= theTable.rows[0].cells[0] This should grab the …

Member Avatar for Wolxhound90
0
2K
Member Avatar for Dani
Member Avatar for |-|x

I have a query in which I need to display some group function figures SUM COUNT etc from a joined table. I also need to select the latest version (by datetime) of a matching record from a separate table, which I can do using an ordered subquery in the join. …

Member Avatar for |-|x
0
214
Member Avatar for fcvolunteer

seems to me that you should check your php.ini to ensure it includes the line `extension=php_mysql.dll` uncommented, this is what tells php to load the mysql extension. (if it is not there, you should be able to simply add it)

Member Avatar for fcvolunteer
0
278
Member Avatar for Jfunch

There is a function called [LEFT](http://dev.mysql.com/doc/refman/5.5/en/string-functions.html#function_left) which can be used to grab the first letter of a field for comparison example: SELECT * FROM tblBrands WHERE LEFT(Brand,1) BETWEEN 'A' AND 'E' etc...

Member Avatar for |-|x
0
95
Member Avatar for nathmack

implode needs to be passed an array in order to work properly, what you are doing is passing a single element of an array `$result['userid']` will return the value of the userid for the first record. `$result` is in fact only the first record of the result set presented as …

Member Avatar for |-|x
1
148
Member Avatar for mobeen89

http://www.albahari.com/threading/ This was the best resource I found when starting to work with threads. If I understand your problem correctly, you either want to Sleep each thread to wait for the other to do its work, or possible create a resource lock until your data acquisition thread completes its work, …

Member Avatar for mobeen89
0
178
Member Avatar for Miss Scarlet

> else {echo '<p> "The following book was submitted: "' . $title . '</p>'; Although I am not sure this is the cause of your error, you don't actually need the double quotes inside this string unless you want them to display. echo '<p>The following book was submitted: ' . …

Member Avatar for Miss Scarlet
0
202
Member Avatar for bo0ga

I believe what you are talking about is possible, although I have not worked with Google Places specifically before. To get the form to post to an external website, you need to specify the URL in the forms action property (see more info here [more info here](http://www.w3schools.com/tags/tag_form.asp) ). To my …

Member Avatar for Biiim
0
211
Member Avatar for basketmen

try this... onchange="document.theform.showValue1.value=this.value.split(' ')[0]; document.theform.showValue2.value=this.value.split(' ')[2]"> note that if your final values in the dropdown have spaces in them you will need to adjust the split function calls accordingly.

Member Avatar for |-|x
0
117
Member Avatar for ing

line 15... > if (is1or2or3=true) needs to use the comparison double equals `==` as the single equals is for assignment, and an assignment statement will always evaluate to true.

Member Avatar for ing
0
112
Member Avatar for comcollecme

The laptop should function fine with a partitioned drive so long as there is sufficient space on the primary partition for the OS to function (create virtual memory and temporary files, expand the registry hives etc) The best way to get rid of the superfluous operating system would be to …

Member Avatar for skilly
0
264
Member Avatar for prancode

ExecuteScalar is for queries that return a single result, eg `SELECT Count(*) FROM table1` To load the data into the DataTable you will need to use `DT.Load(CMD.ExecuteReader)` or something similar. The second Execute (ExecuteNonQuery) is not needed. Also, you can leave out the DataAdaptor completely, if you are binding the …

Member Avatar for |-|x
0
107
Member Avatar for ThaniyaMirza
Member Avatar for shean1488

Thines01: that still won't increment when the initial condition is false as it will not enter the loop. shean1488: actually you can do exactly as you wished, simply add count++ to your condition statement... while(count++ > 0 && some expression && another expression) this will increment count each time the …

Member Avatar for shean1488
0
191
Member Avatar for Usmaan

I believe (and someone please correct me if I'm wrong) that you will need to do a separate replace for the space->slash. Although you could match both cases using and OR case in the Regex, I don't think there is any way to specify different replacement text for each case …

Member Avatar for thines01
0
585
Member Avatar for tez

I would also add that if it is an old TV show, it may have been released into the public domain and/or the original copyright holders no longer claim rights to the property. In such a case it would not be illegal for you to download and watch the show …

Member Avatar for tez
0
162
Member Avatar for mxadam

afik there isn't any function that will do this for you automatically, which means you will have to write one. you will need to read the lines of the file using something like File.ReadAllLines() or possibly the StreamReader ReadLine() your choice here may depend on the size of the file …

Member Avatar for Mitja Bonca
0
197
Member Avatar for Alex_student

var days(7); days(0) = "Sunday"; ... function SetDay (day) { document.GetElementById("Daybox").value = "You Selected " + days(day) + " for your delivery"; } I think the rest is the same.

Member Avatar for Alex_student
0
92
Member Avatar for nyfan68

I think String.split() requires a specified character to 'split' on. If you only need exactly the first four characters, you might be better to do a String.substring(0,3) and String.substring(4) to get the rest of the line.

Member Avatar for |-|x
0
205
Member Avatar for ashhadiqbal
Member Avatar for Lusiphur

It is possible that the page variable hAns is losing its value on postBack. You could try storing this in a Session or Viewstate variable instead. However, as the other guys have suggested, you should place a breakpoint on the line of code for the comparison and check what value …

Member Avatar for Lusiphur
0
153
Member Avatar for tukky

Assuming you are using an SQLDataSource to bind the gridview, you can add a control parameter linked to your dropdown like so [CODE]<SelectParameters> <asp:ControlParameter Name="TypeFilter" ControlID="DropDownList1" PropertyName="SelectedValue" /> </SelectParameters>[/CODE] Your select query must then include the parameter in the where clause, something like [CODE]WHERE Type = @TypeFilter[/CODE] You can set …

Member Avatar for tukky
0
149
Member Avatar for kalaban

[QUOTE][iCODE]WHERE DATE BETWEEN[/iCODE][/QUOTE] Correct me if I'm wrong but isn't [iCODE]DATE[/iCODE] a reserved word? If that's the name of your field in the [iCODE]`medicalrecords`[/iCODE] table, you may need to use backticks around it, ie: [CODE]WHERE `DATE` BETWEEN[/CODE]

Member Avatar for kalaban
0
330
Member Avatar for navp

check out PHP's [URL="http://www.php.net/manual/en/mail.configuration.php"]SMTP configuration[/URL] and check your server settings. These can be set (as your error message suggests) either hard coded in the PHP.ini file, or on the fly in code by calling [URL="http://au2.php.net/manual/en/function.ini-set.php"]ini_set()[/URL] Also, check that there is no firewall or anything blocking SMTP on your local machine …

Member Avatar for navp
0
224
Member Avatar for |-|x

Is it possible t set a control's property in the markup using server tags? Specifically in this case I need to set it from a Session value, ideally something like this: [CODE] <asp:Label ID="Label1" runat="server" Text='<%= Session["value"] %>' /> [/CODE] Of course the above simply prints as literal text, rather …

Member Avatar for kvprajapati
1
936
Member Avatar for binoy.mathew
Member Avatar for |-|x
0
60
Member Avatar for |-|x

Hi all Is anyone here familiar with coding in WolfCMS? I have been asked to add a form page to an existing website based on WolfCMS, but have little experience on the platform. For some reason my form doesn't seem to be receiving the POST data, or executing the processing …

Member Avatar for diafol
1
294
Member Avatar for @theDatagame

if you are using Windows authentication, rather than Forms (in your web.config) [CODE]<authentication mode="Windows">[/CODE] Then the [iCODE]User.Identity.Name == "DOMAIN\\UserName"[/iCODE] which you can split and use to validate via the DirectorySearcher class. Hope this helps /H

Member Avatar for |-|x
0
395
Member Avatar for teklaw

[CODE=vb.net]For Each row As GridViewRow In GridView1.Rows Dim cb As CheckBox = CType(GridView1.FindControl("ChkSelect"), CheckBox)[/CODE] I believe you should be looking for the control inside the row, not the whole grid. ie: [CODE=vb.net]For Each row As GridViewRow In GridView1.Rows Dim cb As CheckBox = CType(row.FindControl("ChkSelect"), CheckBox)[/CODE]

Member Avatar for |-|x
0
90
Member Avatar for Rohan rawat
Member Avatar for theguitarist

You are never really anonymous on the web. Hence all the browser proxy servers and vpn services available for people who wish to obfuscate their identity. All of that information can be obtained from simple analysis of your IP address, which is (as a matter of necessity) passed to the …

Member Avatar for theguitarist
0
205
Member Avatar for davy_yg

What version of IE are you using? What does it look like in other browsers like FireFox or Chrome? Are you specifying a DocType definition tag? Since you are using HTML5 tags like <figure> it will only display properly in recent browser versions that support HTML5.

Member Avatar for teedoff
0
143
Member Avatar for |-|x

I was just about to post asking how to do this when I stumbled across the solution. All my research on the web suggests that the only way is to use stored procedures with an output parameter. Unfortunately, my queries are necessarily dynamically generated, and output parameters do not work …

1
108
Member Avatar for sumit sam

take a look at [URL="http://www.codeproject.com/KB/webforms/EditNestedDataGrid.aspx"]www.codeproject.com/KB/webforms/EditNestedDataGrid.aspx[/URL]

Member Avatar for |-|x
0
208
Member Avatar for zack654

I'd suggest maybe setup a virtual pc or something, but afik you can't go higher than your active screen resolution anyway.

Member Avatar for |-|x
0
78
Member Avatar for xDancinPoptartx

take a look at [URL="http://www.w3schools.com/jsref/event_onkeypress.asp"]onkeypress[/URL]

Member Avatar for xDancinPoptartx
0
105
Member Avatar for |-|x

I originally posted this over on the [URL="http://wordpress.org/support/topic/incorrect-page-content-passed-to-plugin-in-firefox"]WordPress forums[/URL], and got no responses. Eventually I figured out what the problem was and fixed it, but thought I'd repost here in case anyone else is experiencing similar issues (I couldn't find any related articles in my initial search on the symptoms.) …

Member Avatar for cereal
2
206
Member Avatar for tqmd1

Please note that IE6 does [I]not[/I] provide native support for PNG transparency. You must use a [URL="http://support.microsoft.com/kb/294714"]special filter[/URL] provided by MicroSoft. [CODE=HTML]<DIV STYLE="filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='image.png', sizingMethod='scale');" >[/CODE] (example modified from linked MS knowledgebase article.)

Member Avatar for |-|x
0
116
Member Avatar for 650U

I can't see where your variable [ICODE]a[/ICODE] is getting defined or set, but presumably it is a java variable available in the current scope and all you need to do is build it into the sql string. [CODE] rs=statement.executeQuery("select * from customer where serialnumber like '%"+a.ToString()+"%' "); [/CODE]

Member Avatar for |-|x
0
191

The End.