- Strength to Increase Rep
- +11
- Strength to Decrease Rep
- -2
- Upvotes Received
- 51
- Posts with Upvotes
- 43
- Upvoting Members
- 29
- Downvotes Received
- 3
- Posts with Downvotes
- 3
- Downvoting Members
- 2
I survive.
- Interests
- Playing with kids, Snowboarding, Waisting time at forums when I should be working on my own stuff.
- PC Specs
- Dual boot Hack Pro/Microjunk:i7950 6GB Ram 1GB VRam 5750BTW: I have reformatted and rebuilt the M$ side…
450 Posted Topics
Re: Drinking: Long Island Iced Tea Eating: Long Island Iced Tea | |
Re: This will give you the basic functionality: [code=javascript] <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Untitled Document</title> <script language="javascript" type="text/javascript"> var timerid = 0; var images = new Array( "image1.jpg", "image2.jpg", "image3.jpg"); var countimages = 0; function startTime() { if(timerid) { … ![]() | |
Re: [QUOTE=bimaljr;704109]I tried it but it only converts ASP to PHP.. and my site is based on ASP.NET 2.0 (VB based)[/QUOTE] Yeah, I'm pretty sure that is going to be way too complicated to find a widget that will do it for you since asp.net is just the framework. The code … | |
Hello. Quick question. I have several thousand emails pulled in from several email boxes throuph php imap and I need to search each subject with an array of search terms which returns a bitmask, one bit for each index of the array. 1 = found, 0 = not found. So, … ![]() | |
Re: I have not played with it yet, I'm sure the functionality is limited, but I think you may be able to add, insert and possibly delete pages. You may be able to do more with it too, not quite sure, but check this out [URL="http://www.daniweb.com/forums/thread133021.html"]http://www.daniweb.com/forums/thread133021.html[/URL] | |
I am building a selenium test suite which pulls a list of tests to run and then forks those tests to multiple parallel processes. Each process needs its own connection to the database because of two reasons: one, when the child process ends the connection is closed and two, when … | |
Re: Unless you want to pay an hourly rate I suggest reading this: http://www.w3schools.com/php/php_forms.asp and this: http://www.w3schools.com/php/php_mysql_insert.asp . If you have any questions about the process, those go here. | |
Hi, I am a PHP developer that has been put on a Java project and am trying to apply the same principles with new ones that Java provides and am stuck. I have successfully instantiated a class with a variable class name, which contains a constructer that has one parameter. … | |
Re: [QUOTE=Shanti Chepuru;697086]"Fear of Suffering is Worst than Suffering itself "[/QUOTE] You can try to explain this to people until your face turns blue and they just don't get it. | |
Re: This is certainly not the best place to ask about desk top applications but I would probably start with something like this [URL="http://www.download3k.com/Software-Development/Components-Libraries/Download-Barcode-Reader-SDK.html"]http://www.download3k.com/Software-Development/Components-Libraries/Download-Barcode-Reader-SDK.html[/URL] | |
Re: that title's a bit deceptive huh? here is your standard join query: (by the way, try to get away from doing "select *", just gets slopy after a while) [CODE=sql] select * from table1 inner join table2 on table1.fieldname = table2.fieldname inner join table3 on table2.fieldname = table3.fieldname [/CODE] that … | |
Re: Try uninstalling it, then going into the file system and completely removing the wamp directory and then reinstalling it. Or try installing xamp or apache2triad instead. | |
Re: [QUOTE=antwan1986;702676]Hi everyone and thanks for reading! I use JavaScript to create sets of text boxes on the fly. I also have a hidden counter in a text box on the form which I also post to my PHP script. This hidden counter is how I tell PHP how many text … | |
Re: K, a few things here: first, If you have purchased a hosting account from a company, I doubt that your username is going to "root" and your servername is going to be localhost. second: this line doesn't make sense: $sql=("SELECT * FROM user WHERE username='$username' and password='$encrypted_password'") or die(mysql_query); and … | |
I am running multiple sites on one server and am tired of seeing 404s coming from missing apple-touch-icons. I am required to have 6: apple-touch-icon-57x57-precomposed.png apple-touch-icon-72x72-precomposed.png apple-touch-icon-114x114-precomposed.png apple-touch-icon-144x144-precomposed.png apple-touch-icon-precomposed.png apple-touch-icon.png Each "property" docroot I am hosting may, and probably will, have several sub-docroots all using the same apple touch icons … | |
Re: just curious, what happens when you put an exit(); after the header() call? If that doesn't solve the problem then put an exit("End"); just before the header call and then view source after you run it to see if there is any white space or characters prior to the word … ![]() | |
Re: Maybe I'm missing something but I don't see form tags surrounding your form. | |
Re: This should be done while you are filling the array not afterward, that is unless the array is auto populated through some data reading process. While you are filling the array you should be searching it for duplicate values while populating two other arrays for duped and nonduped keys. As … | |
Re: check to see if you are running php in safe mode. if not you may have allow_url_fopen turned off in your php.ini file. I believe that in order to do what you are trying to do that you need to have this option turned on. | |
Re: [QUOTE=monsterpot;700093]Apologies first if this is covered elsewhere - I searched but could not find. I am looking for a way to search the web for the presence of a JavaScript code snippet within the HTML <body> of a web page. I would specify the code snippet and send the bot … | |
Re: Here's one way [CODE=PHP]<select name="selLanguage"> <? while ($row = mysql_fetch_assoc($result)) { ?> <option <? if($row['langid'] == $userslangid) { echo 'selected="selected" '; } ?>value="<? echo $row['langid']; ?>"><? echo $row['langname']; ?></option> <? } ?> </select>[/CODE] | |
Re: I would use an ajax call to the following script. [code=php]$allowedfuncs = array([allowed function calls]) if(in_array($_get['funccall'], $allowedfuncs)) { $func = $_get['funccall']; $output = $func(); // This calls $_get['funccall']() echo $output; } else { exit(); } /* functions go here */[/code] //Or something along those lines. Don't see a need for … | |
Re: Use jquery and ajax, then on saveBroserSizeSession.php you can save the dimensions to session and use them throughout your website. [CODE=javascript] function sendBrowserSize() { var myWidth = 0, myHeight = 0; if( typeof( window.innerWidth ) == 'number' ) { //Non-IE myWidth = window.innerWidth; myHeight = window.innerHeight; } else if( document.documentElement … | |
Re: I am not a Java developer so I may be speaking out of turn here, but don't you have to install Java on the local machine in order to run it? If that's the case then can you actually classify it as a server side language? | |
I am trying to do a simple focus() on mobile. Actually I am using an iphone simulator, but from what I can tell, I am not the only one having this issue but I cannot find a solution. Is there something that I can use instead with jquery? This works … | |
Re: You are going to have to stick this part: [CODE=php] <?php if ($_POST["Submit"] == "Add") { ....inserting data in here } ?> [/CODE] at the top so that you don't leave any white space before the opening <?php tag. Then after your mysql_query use a the header() function. [CODE=php] header("location: … | |
Re: I'm reading that the way to go on this is PDFlib-PDI, I cannot give you any examples as I have only worked with pdflib, not pdi. | |
Re: Today I learned how to spell programmer: "S-C-A-P-E-G-O-A-T" | |
Re: without cron the only way would be from a page that is accessed from the web. You would probably have to keep a log of successful mail events and use an if statement in one of your more visited pages. In the if statement you would use the date() function … | |
Re: I would do something like this. It's not yet debugged. [CODE=php] <?php $arrQueryParts = array(); $arrQueryParts["age"] = ""; $arrQueryParts["sex"] = ""; $arrQueryParts["hair"] = ""; $arrQueryParts["Dress"] = ""; foreach($arrQueryParts as $key=>&$value) { $strVarName = $key . "F"; if(strtolower($$strVarName) != 'no preference') { $arrQueryParts[$key] = " " . ucwords($key) . "='" . … | |
Re: I would use jquery [URL="http://api.jquery.com/keyup/"]keyup[/URL] or [URL="http://api.jquery.com/keypress/"]keypress[/URL] for that at | |
Re: try: html [CODE=html] <DIV ID="Loading" STYLE="position:absolute;z-index:5;top:30%;left:42%;display:none;"> Please Wait.... </DIV> [/CODE] javascript [CODE=javascript] function getData() { document.getElementById('Loading').style.display = 'block'; ajaxGetData() document.getElementById('Loading').style.display = 'none'; } [/CODE] but personally I use jQuery for all this stuff now. | |
Re: This is how I usually do it: [CODE=php] <?php $querylog = "TRANSACTION STARTED<br /><br />"; $commit = "commit"; mysql_query("begin", $dbconn); $query = "insert into ..."; if(!mysql_query($query, $dbconn)) { $commit = "rollback"; $querylog .= "error in query: " . $query . " : " . mysql_error($dbconn) . "<br /><br />"; } … | |
Re: nobody is going to teach you relational databases on a forum. You need to take the time to read some tutorials and pick up a book or two. | |
Re: I'm so glad, but there are places for gloating about what you've just learned and this isn't it. | |
Re: [QUOTE=Joshua Kidd;1516005]Hello all, Is there any way that I can count the number of lines in one column in a table? Such as I want to count all the names in this column on First name: [url]http://www.globalvirtualairlines.com.../web%20app.php[/url] How would I do so? Thanks in advance![/QUOTE] that's a dead link but … | |
Re: we can start here: [CODE=php] $strMiddleColumnValue = "0"; echo trim($strMiddleColumnValue) == "0"?"NONE":$strMiddleColumnValue; [/CODE] | |
Re: use mysql_num_rows [CODE=php] if (mysql_num_rows($result) == 0) { echo "No records found"; } [/CODE] | |
Re: See my response here: [QUOTE=R0bb0b;1515792]I've never done bound a click event handler to a table row but you could try: include this in the head section: [CODE=html]<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js"></script>[/CODE] here would be your javascript [CODE=javascript] var srcTable = this.iContext.getElementById("tbody"); var tmpRow = null; var tmpCell = null; var i; var … | |
Re: I've never done bound a click event handler to a table row but you could try: include this in the head section: [CODE=html]<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js"></script>[/CODE] here would be your javascript [CODE=javascript] var srcTable = this.iContext.getElementById("tbody"); var tmpRow = null; var tmpCell = null; var i; var arrRowOnclicks = []; for(i=0; … | |
Re: use [URL="http://php.net/strtotime"]http://php.net/strtotime[/URL] in conjunction with [URL="http://php.net/date"]http://php.net/date[/URL] | |
Re: what is the most recent error in phpmailer [CODE=php]echo $objMail->ErrorInfo;[/CODE] | |
Re: try putting single quotes around the email address. Also, make sure that you are at least using mysql_real_escape_string for all human interaction into the database. | |
Re: I don't see anything wrong syntax wise but that doesn't always mean much. I've made some modifications to your code, which should shed some light on what is going on. Replace your code with this, run it and if it doesn't make the issue completely obvious then post the output. … | |
Re: I don't know if it is possible but maybe there is a little lag in the update to the database or the time that it takes the script to finish processing? If that is the case then it also maybe the case that a browser is hitting the address multiple … | |
Re: I would never send an email like that professionally. You should use something like phpmailer, which is open source and is well documented. [URL="http://phpmailer.worxware.com/"]http://phpmailer.worxware.com/[/URL] | |
| |
Re: It's ok as long as you have permission. I have actually built several like this. At work we have url wrappers turned off but generally it is turned on though. If url wrappers are turned on then you can just do a file_get_contents on the url save that to a … | |
Re: You know, a good read might do you some good. I would start with something like this: [URL="http://articles.sitepoint.com/article/ajax-jquery"]http://articles.sitepoint.com/article/ajax-jquery[/URL] BTW: Jquery is a javascript library that makes ajax much easier but if you don't want to use Jquery the same concept applies. Find a good tutorial and spend a few hours … | |
Re: ensure that you are not exceeding your max upload size. You can update the following values on your php.ini file: upload_max_filesize post_max_size Or if you don't have access to php.ini, you can also do this with .htaccess. If you are sure that this is not the case start off with … |
The End.