450 Posted Topics
Re: Disorder | Rating Paranoid: Moderate Schizoid: High Schizotypal: Low Antisocial: Moderate Borderline: Low Histrionic: Low Narcissistic: High Avoidant: Moderate Dependent: Low Obsessive-Compulsive: Moderate | |
I am going to have to go through about 2000 lines of ajax and javascript code because IE is so special and doesn't have to do things the way everyone else does. Damn it!!! Sorry, couldn't find the venting forum. | |
Re: [QUOTE=ZZucker;702856][COLOR="Green"][B]We are Alaska:[/B][/COLOR] Our size is 586,400 Square Miles We are 2 times the size of Texas We have 29 volcanoes We have 33,000 miles of coastline! 1,400 miles North to South 2,700 miles East to West We own over 1/2 the world's Glaciers Just 55 miles east of Russia … | |
Re: this should do it. [CODE=php] <?php error_reporting(E_ALL ^ E_NOTICE); ini_set("display_errors", true); ini_set('memory_limit', '24M'); function csv2xml($file, $container = 'data') { $r = "<{$container}>\n"; $row = 0; $cols = 0; $titles = array(); $handle = @fopen($file, 'r'); if (!$handle) return $handle; while (($data = fgetcsv($handle, 1000, ',')) !== FALSE) { if (!$cols) … | |
Re: stick this at the top of the file and run it again [CODE=php] ini_set("display_errors", "1"); error_reporting (E_ALL); [/CODE] Once we can see an error, then maybe someone can better diagnose the issue. Also stick a die command after your mysql_connect() function do this [code=php] mysql_connect(blah blah blah) or die(mysql_error()); [/code] | |
Re: [QUOTE=krauz2;709127]I have tried a few different ways to get two email address to send on a case statement. How do I add to commands on same line? I am just a little off track. Thanks for your help. case 'it': $to_email = "[email protected]"; $to_email = "[email protected]"; break;[/QUOTE] Could you expand … | |
Re: [QUOTE=Katherine692008;708272]I am trying to do this problem: Create a “hit counter” for your home page i.e., exam1.php. There is a file in the exam folder called COUNTER.TXT that contains the number zero. Your PHP page should do the following steps: 1. Read the counter file 2. Add one to the … | |
Re: [QUOTE=MaxMumford;706608][code=php] mysql_query('UPDATE `web163-zavvex`.`products` SET `rating` = "'.$newnewrating.'" WHERE `products`.`pid` = "'.$pid.'" LIMIT 1'); mysql_query('UPDATE `web163-zavvex`.`products` SET `numberofrates` = "'.$numberofrates.'" WHERE `products`.`pid` = "'.$pid.'" LIMIT 1');[/CODE][/QUOTE] Why do you have to have "limit 1" on your update queries, is "pid" not your primary key. If not, maybe you are having issues … | |
Re: What you are talking about is ajax, no? | |
Re: [QUOTE=bumsfeld;704199]Out of the corner of my tearful eye I noticed that I made my post #1000! I am elated, exhilarated, jubilant, overjoyed, ecstatic and happy! Time to get that 12 year old wine out of the cellar.[/QUOTE] And you overshot by 2, guess you'll have to post another 998 times. | |
Re: Just a tip to help you bypass the frustration: Usually when I am exporting to csv, excel, pdf or anything, I always have two different modes, production mode and development mode. In production mode, of course I am outputting the desired output like normal. In development mode I am just … | |
Re: [QUOTE=Shanti Chepuru;706966]please get me some information... please.....[/QUOTE] Do you have something put together online so that we can look at it? I'm just not exactly sure if I know exactly what you are talking about. | |
Re: That depends on what you are doing though. You can make the src = a php file if on that file you are sending the image to the browser kind of like this. [CODE=php] <? $imagedata = file_get_contents("temp/" . $randstring . ".jpg"); header('Content-type: image/jpg'); echo $imagedata; exit(); ?> [/CODE] If … | |
Re: [QUOTE=sharad.kohli;706007]thanks for the reply!! any idea from where should i begin!!!!![/QUOTE] Search for one(there are several free source projects available) tear it apart and see how it works. That's the best way. | |
Re: [QUOTE=MissPheth;706465]I'm sorry, what do you mean by "escape" all of the double quotes with the backslash character? Do you mean replace? Sorry, just trying to understand.[/QUOTE] see this? [CODE]enctype = \"multipart/form-data\"[/CODE] just like that. | |
Re: [QUOTE=Bunhok;700324]Dear All, I am a new web, I would like all of you kindly help me with code of sorting column heading. Thanks in advance! Kindly regards, Bunhok[/QUOTE] I would start out with something like this. You might find some of this a little confusing, let me know if you … | |
Re: [QUOTE=xan;706151]Hi all Just a quick question, I have avoided the ternary operator type If statement a lot in my code, because personally I find it easier to read a statement like this: [code=php] if (empty($_POST['action'])) { $action = 'default'; } else { $action = $_POST['action']; } [/code] Rather than: [code=php] … | |
Re: [QUOTE=kevindougans;704079]i don't think its as easy as you think mate... On the html you need to add this: <input type="file" name="uploadFile"> And on the page that checks and stores everything int he database you'll need to add AT LEAST this: [code] move_uploaded_file ($_FILES['uploadFile'] ['tmp_name'], "../uploads/{$_FILES['uploadFile'] ['name']}") [/code] You really should … | |
Re: Well thank God that we elect people based on how well they can flap their lips. | |
Re: Another option is(I've never done it before but it should work) addresses by an article that I read about six months ago regarding php multi threading. This can be done with an <img> tag. For instance, if you want to send any number of parallel threads on their own, you … | |
Re: I usually use htmlspecialchars() on the way out of the database because they pose no threat to the database as long as you use mysql_real_escape_string() and other proper measures to ensure data security. I think this better preserves the data and eliminates possible future adjustments to the data. Another thing … | |
Re: Never mind, I was thinking something else. I'll repost in a sec. | |
Re: made some adjustments, probably not what you want to do with it but got it working. the problem was that in the beginning of your javascript function you are changing the display properties of some elements by ID, well the problem was that some of those elements were missing so … | |
Re: I don't know if round would be necessary since 10, 20, 30..., 100 are all % 10 evenly. :-/ And I don't see why this code: [QUOTE=MVied;705237][code=php]echo ($i % ($amount / 10) == 0) ? "<div class=\"load\"></div>" : "";[/code][/QUOTE] wouldn't work. :-/ Can you post the rest of your code? | |
Re: This is an extremely simple way of doing it, but I think it works for the purpose. [CODE=php] <? $lunchflag = false; //true if lunch taken $datebegin = mktime(8, 00, 00, 10, 01, 2008); //timestamp for 8:00 10/1/2008 $dateend = mktime(17, 12, 00, 10, 01, 2008); //timestamp for 5:12 10/1/2008 … | |
Re: One thing I notice, which is more than likely the problem, you are doing an old style join which is fine but you are not stating the column to join them on. for example, you need to make the following change: [code=php]$query="SELECT testable.id, testable.name, testable.wpid, wp_posts.ID, wp_posts.post_title FROM testable, wp_posts … | |
Re: Not really, Drop out of high school:considered a bum Graduated high school, no college degree:considered a burger flipper Currently in college:considered a party animal College degree:considered to be at the bottom of the list College degree/experienced:considered for the position | |
I use to use all for loops for looping through database data sets and just started using while loops with mysql_fetch_ type functions and for some reason, the second mysql_fetch loop in the file never seems to fire but does when I switch the second one to a for loop. … | |
Re: [QUOTE=jackakos;703430]Would somebody be kind enough to point out what to do to get the selected option to display in the TEXTAREA?[/QUOTE] in between the opening and closing textarea tags include this line of code [CODE=php] <? echo isset($_POST['sel_id'])?$_POST['sel_id']:""; ?> [/CODE] | |
Re: I use this script for downloading pdfs from an ftp site because they are secure files, you can just delete this part([url]ftp://username:password@servername[/url]) out and just use $docname to pull a file from the file system. Then all you need is some type of database connection which manages your statistics and … | |
Re: [QUOTE=yasmena;702271]I Need to insert a date into mysql database i dont know which is better using DATE or VARCHAR as the date field ?? im using now the DATE type but whenever i insert any date its not inserted in the DB 0000-00-00 it appears like this . the Code: … | |
Re: run this and then post your results if you can't figure it out at that point. [CODE=php] <?php /******************* parameters $details==0 if the person wants just the summary $details==1 if the person wants to see the course names and all other details for the particular person $year=year u want for … | |
Re: [QUOTE=Maverick2608;703441]Code: [<?php Mail(“[email protected]”, “This is the message subject”, “This is the message body”); ?>] Error message: "Parse error: syntax error, unexpected '@' in /home/dating8/public_html/newland/messagesent.php on line 2" The server is SMTP email-enabled and the folder on the server has permission to send SMTPmail messages. The hosting company reply: "Please ensure … | |
Re: maybe you are having the same problem as this guy: [URL="http://us.php.net/manual/en/function.imagepng.php#79150"]http://us.php.net/manual/en/function.imagepng.php#79150[/URL] [QUOTE]So instead of just imagepng($image); //DIDNT WORK--CORUPT IMAGE This worked imagepng($image,NULL,0,NULL);[/QUOTE] | |
Re: there are lots of good stuff here [URL="http://us.php.net/manual/en/ref.xml.php"]http://us.php.net/manual/en/ref.xml.php[/URL] | |
Re: [QUOTE=jees;702698]Hi, I am a webdesigner and don know much about php coz, my main stream is html and css. I used to use asp feedback forms for my websites. But my new website server is unix based. I think asp feedback forms are not supported in unix. Please tell me … | |
Re: [QUOTE=GrimJack;702355]What! Not even a thank you, f** you, or even a you are soooo wrong - pfft, see if I help with homework again.[/QUOTE] Man, where were you when I was going to school? | |
Re: Yes. On the file that is processing the request you want to make sure that you have session_start(); at the top of the file, and in the case that the form inputs are invalid or blank you use the following line of code: [CODE=php] <? $_SESSION['formfields'] = array(); foreach($_POST as … | |
Re: try this [CODE=php] $query = sprintf("select venue,count(venue) as frequency from matches WHERE Away = 'England' group by venue ORDER BY frequency DESC limit 300"); [/CODE] | |
Re: I am a developer and an analyst so I do both an have been for over two years. I would say that an analyst should have development experience to know when more details are required. The biggest problem that you are going to face is knowing when you are going … | |
Re: I say you parse it into an array, then work with that, when you are finished just overwrite it. [CODE=php] <? $columnheaders = explode("|", "BARCODE|TITLE|PRICE|CUSTOMER_FIRST_NAME|CUSTOMER_LAST_NAME|CITY|STATE|ZIP|PURCHASE DATE"); $excelfile = file("/path/to/tile.csv"); for($i = 0; $i < count($excelfile); $i++) { $row = explode("|", $excelfile[$i]); foreach($columnheaders as $columnheader) { $excelfile[$i][$columnheader] = $row[0]; array_shift($row); } … | |
Re: [QUOTE=anish.anick;698660]Hi All, Is there any way to set the focus to a table row using javascript so that subsequent key press events can iterate through the table rows.Please help me to solve this. Thanks[/QUOTE] Only things that can accept focus can receive focus, which would be form objects like text … | |
Re: And it's not necessarily the languages that you want to learn as much as it is the concept. Once you have the concept down, you can apply that to any language. | |
Re: You should start trying to use transactions, that way if there was an error, any changes that successfully went through are also rolled back. [CODE=php] <?php $debug = true; //variable to commit transaction $commit = "commit"; $errors = array(); /* fetch data from form input */ extract ($_POST); /* connect … | |
Re: [QUOTE=forwardlookguy;700072]Hey everyone, I want to use mysql to list all of the makes of vehicles and I want the user to be able to click a make and the years that make were made pop up. Is there a way to do this using PHP? I've got the makes to … | |
Re: or you could select it this way [CODE=sql] select date_format(date '%d/%m/%Y') as formatted_date from tablename; [/CODE] | |
Re: copy the url from the address bar and post it and I'll tell you what is wrong. | |
Re: [QUOTE=naju;699430]I have to access a tag from an external web. the tag is inside a frame (that frame has no name and id) when i use :window.frames[0].document.body ... is permission denied please help .. i could provide more information if u need .. { actually i am trying to grab … |
The End.