205 Posted Topics
Re: 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 … | |
Re: 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 … | |
Re: 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 … | |
Re: 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" ); | |
Re: 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. | |
Re: 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 … | |
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"*, … | |
Re: 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. | |
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 … | |
Re: 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 … | |
Re: 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 … | |
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. … | |
Re: 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) | |
Re: 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... | |
Re: 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 … | |
Re: 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, … | |
Re: > 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: ' . … | |
Re: 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 … | |
Re: 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. | |
Re: 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. | |
Re: 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 … | |
Re: 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 … | |
Re: I'm on ICS (4.0.2) and dont have any problems | |
Re: 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 … | |
Re: 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 … | |
Re: 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 … | |
Re: 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 … | |
Re: 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. | |
Re: 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. | |
Re: good catch.. also looks like there might be too many closing quotes on `'%$each%''"` | |
Re: 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 … | |
Re: 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 … | |
Re: [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] | |
Re: 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 … | |
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 … | |
Re: try something like this[CODE]UserControl.FindControl("Button1").Enabled = True[/CODE] | |
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 … ![]() | |
Re: 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 | |
Re: [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] | |
Re: Are you getting any specific error messages? | |
Re: 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 … | |
Re: 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. | |
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 … | |
Re: take a look at [URL="http://www.codeproject.com/KB/webforms/EditNestedDataGrid.aspx"]www.codeproject.com/KB/webforms/EditNestedDataGrid.aspx[/URL] | |
Re: I'd suggest maybe setup a virtual pc or something, but afik you can't go higher than your active screen resolution anyway. | |
Re: take a look at [URL="http://www.w3schools.com/jsref/event_onkeypress.asp"]onkeypress[/URL] | |
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.) … | |
Re: 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.) | |
Re: 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] |
The End.