450 Posted Topics

Member Avatar for The Dude

Disorder | Rating Paranoid: Moderate Schizoid: High Schizotypal: Low Antisocial: Moderate Borderline: Low Histrionic: Low Narcissistic: High Avoidant: Moderate Dependent: Low Obsessive-Compulsive: Moderate

Member Avatar for GrimJack
0
232
Member Avatar for R0bb0b

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.

Member Avatar for Lardmeister
0
126
Member Avatar for sneekula

[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 …

Member Avatar for Ene Uran
0
249
Member Avatar for jencinas69

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) …

Member Avatar for jencinas69
0
179
Member Avatar for The Dude
Member Avatar for moerpheus

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]

Member Avatar for BMX322
0
123
Member Avatar for krauz2

[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 …

Member Avatar for krauz2
0
98
Member Avatar for Katherine692008

[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 …

Member Avatar for Katherine692008
0
138
Member Avatar for MDGM

[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 …

Member Avatar for MDGM
0
163
Member Avatar for andy_b42
Member Avatar for bumsfeld

[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.

Member Avatar for GrimJack
3
200
Member Avatar for maydhyam

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 …

Member Avatar for R0bb0b
0
1K
Member Avatar for Shanti C

[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.

Member Avatar for Shanti C
0
102
Member Avatar for yasmena

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 …

Member Avatar for R0bb0b
0
69
Member Avatar for sharad.kohli

[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.

Member Avatar for sharad.kohli
0
102
Member Avatar for MissPheth

[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.

Member Avatar for R0bb0b
0
191
Member Avatar for Bunhok

[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 …

Member Avatar for Bunhok
0
289
Member Avatar for Will Gresham

[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] …

Member Avatar for R0bb0b
0
269
Member Avatar for helpless_101

[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 …

Member Avatar for helpless_101
0
105
Member Avatar for GrimJack
Member Avatar for sneekula
0
254
Member Avatar for cwarn23

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 …

Member Avatar for R0bb0b
0
123
Member Avatar for antwan1986

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 …

Member Avatar for antwan1986
0
149
Member Avatar for websurfer
Member Avatar for FlashCreations

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 …

Member Avatar for R0bb0b
0
111
Member Avatar for MVied

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?

Member Avatar for MVied
0
181
Member Avatar for duttydea

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 …

Member Avatar for duttydea
0
92
Member Avatar for schowhan

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 …

Member Avatar for schowhan
0
111
Member Avatar for corrola

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

Member Avatar for scru
0
156
Member Avatar for R0bb0b

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. …

Member Avatar for R0bb0b
0
192
Member Avatar for jackakos

[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]

Member Avatar for jackakos
0
148
Member Avatar for daviddoria

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 …

Member Avatar for daviddoria
0
156
Member Avatar for yasmena

[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: …

Member Avatar for R0bb0b
0
84
Member Avatar for neil82

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 …

Member Avatar for R0bb0b
0
130
Member Avatar for Maverick2608

[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 …

Member Avatar for R0bb0b
0
119
Member Avatar for msi_333

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]

Member Avatar for msi_333
0
674
Member Avatar for Shanti C

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]

Member Avatar for R0bb0b
-1
207
Member Avatar for jees

[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 …

Member Avatar for R0bb0b
0
90
Member Avatar for ithelp

[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?

Member Avatar for R0bb0b
0
75
Member Avatar for architact

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 …

Member Avatar for R0bb0b
0
161
Member Avatar for Zack2008

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]

Member Avatar for Zack2008
0
103
Member Avatar for Obeledeveloper

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 …

Member Avatar for Obeledeveloper
0
153
Member Avatar for jyotiu

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); } …

Member Avatar for R0bb0b
0
122
Member Avatar for anish.anick

[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 …

Member Avatar for Troy III
0
370
Member Avatar for Ayobami

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.

Member Avatar for nikesh.yadav
0
112
Member Avatar for sahdev86

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 …

Member Avatar for sahdev86
0
113
Member Avatar for forwardlookguy

[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 …

Member Avatar for forwardlookguy
0
161
Member Avatar for mrcniceguy

or you could select it this way [CODE=sql] select date_format(date '%d/%m/%Y') as formatted_date from tablename; [/CODE]

Member Avatar for mrcniceguy
0
138
Member Avatar for zeroth
Member Avatar for MiloMan

copy the url from the address bar and post it and I'll tell you what is wrong.

Member Avatar for antwan1986
0
150
Member Avatar for naju

[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 …

Member Avatar for R0bb0b
0
81

The End.