Posts
 
Reputation
Joined
Last Seen
Ranked #786
Strength to Increase Rep
+6
Strength to Decrease Rep
-1
77% Quality Score
Upvotes Received
16
Posts with Upvotes
15
Upvoting Members
12
Downvotes Received
6
Posts with Downvotes
6
Downvoting Members
4
6 Commented Posts
~107.96K People Reached
Favorite Tags

396 Posted Topics

Member Avatar for veledrom

Hi, I cant check combo value below. Where is the mistake? Thanks [code] <script Language="JavaScript"> function validateR(){ var selectedCombobox=(form2.selectCombo.value); if (selectedCombobox=='All') { alert("Please select something"); return false; } return true; } </script> [/code] [code] <select name="selectCombo"> <option value="All">All</option> <option value="Other">Other</option> </select> [/code]

Member Avatar for sowmya_1
0
639
Member Avatar for veledrom

Hi, I'm about to start learning Python and want to find an IDE. For example something Visual Studio like stuff. WYSIWYG so when I write code, I should have a button somewhere to click and see the output. For free and for Windows and Linux platforms. I downloaded Komodo Edit …

Member Avatar for Tcll
0
517
Member Avatar for veledrom
Member Avatar for mike_14
0
358
Member Avatar for veledrom

Hi, I have mysql database dump xxx.sql How can i convert xxx.sql to xxx.csv? Thanks

Member Avatar for thebsv
0
443
Member Avatar for veledrom

Hi, I want to store the values that are in array($selected) into a single variable($result). How can i do it? Variable of $result should be 4,3,9. I get this error "Notice: Undefined variable: result in C:\wamp\www....". Thanks [code] $selected=array("0" => 4, "1" => 3, "2" => 9 ); foreach ($selected …

Member Avatar for arifmufty
0
213
Member Avatar for veledrom

Hi, I got "Fatal error: Call to undefined function printer_open() in C:\wamp\www\TEST\printer\index.php on line 3" when I run code below. [CODE]<?php $printer = "\\\\lukaka\\hp LaserJet 1320"; if($ph = printer_open($printer)) { // Get file contents $fh = fopen("testfile.txt", "rb"); $content = fread($fh, filesize("testfile.txt")); fclose($fh); // Set print mode to RAW and …

Member Avatar for crazy_chanaka
0
2K
Member Avatar for veledrom

Hi, I try to do the examples in these pages but none works. When i run, it shows "Error" word on the status bar of my browser. What do you think it doesn't run? Thanks [url]http://www.w3schools.com/PHP/php_ajax_xml.asp[/url] [url]http://www.w3schools.com/PHP/php_ajax_database.asp[/url] [url]http://www.w3schools.com/PHP/php_ajax_responsexml.asp[/url] [url]http://www.w3schools.com/PHP/php_ajax_livesearch.asp[/url]

Member Avatar for kanoy83
0
459
Member Avatar for veledrom

Hi, I want an image and text appear side by side and also text should be vertically align in the middle so it looks on line. Code below doesn't work properly. Text goes to bottom. Thanks <span style="display:inline;"><img src="image.png" alt="loader" /></span>&nbsp;<font style="display:inline;vertical-align:middle;">Title here</font>

Member Avatar for veledrom
0
108
Member Avatar for veledrom

Hi, I have a wired modem with 2 ethernet ports at the back. It doesn't provide wireless access to the Net for laptops. Is there any gadgets to turn it into wireless modem? Thanks

Member Avatar for kevin2s
0
112
Member Avatar for veledrom

Hi, I have a few XML file which have illegal chars like &, <, >, ", '. Because of that I cannot read/validate XML file to do further processings. I have no control over XML files because user's don't listen!!! Can I solve it by using DTD or XSD or …

Member Avatar for Mike Askew
0
120
Member Avatar for veledrom

Hi, I'm having problem with reading xml file because there are invalid chars like & sign. How can I evaluate this problem and read the file with simple_xml or DOM? **php** $xmlDoc=simplexml_load_file('items.xml'); $doc = new DomDocument; $doc->load('items.xml'); //Both of these don't work **xml** <?xml version="1.0" encoding="ISO-8859-1"?> <store id="AMZ-0101-STR"> <items> <item> …

Member Avatar for pritaeas
0
251
Member Avatar for veledrom

Hi, I know that we cannot use some special chars in XMl and also we can escape/declare them in DTD via ENTITY line. Can anyone help me modifing DTD code below so I have valid XML? e.g. I tried this but no luck: `<!ENTITY & "&amp;">` Thanks in advance <?xml …

0
61
Member Avatar for veledrom

Hi, Based on what learned from my readings on web and forums, I'll go for DOM with DOMDocument. "SAX is better for memory efficiency but a bit complex and chalenging." "DOM is uses loads whole xml into memory but easier and widely prefered and used." The question is, based on …

Member Avatar for veledrom
0
95
Member Avatar for veledrom

Hi, I'm looking for a free ERD Diagram designer software. When I create entities, I should also be able to create columns in them and the columns should be visible. Any software you know? I used RISE whcih doesn't work with my PC anymore. I would be happy to use …

Member Avatar for pritaeas
0
57
Member Avatar for veledrom

Hi, Code below doesn't work for a file contains HTML content? How do we solve this issue? Result must be *<span* but it dispays blank screen. Thanks in advance **Content of index.txt** <span class="mw-headline" id="Zero"><a href="/wiki/Zero" title="Zero">Zero</a></span></h2> **PHP to read the file** <?php $handler = fopen('index.txt','r'); while ($line = fgets($handler)) …

Member Avatar for veledrom
0
205
Member Avatar for veledrom

Hi, I've started learning Python and want to find out how easy is creating GUI for a software. I used to use VB6 with Visual Studio and it was all about Drag and Drop items on a form. Do we have such thing or we just have to hand code …

Member Avatar for HiHe
0
2K
Member Avatar for rrajgor

<?php function fun1($a, $b=null) { $b = $a; echo $b; } fun1(123); ?>

Member Avatar for veledrom
0
151
Member Avatar for veledrom

Hi, I want to generate a unique id but stuck at one point where I need a max 10char long output like A2987F2EWS, 234EGT56GT..... unlike SHA1 or MD5 so human can read it. Code is below but the better way is accaptable by me though. Thanks $mysql_id = 1; $mysql_id_padded …

Member Avatar for Biiim
0
247
Member Avatar for veledrom

Hi, I have a webform where users insert their personal data into db. What I want to do is to prevent duplication in PHP code. Currently I'm using query below but some users do deliberete things to go through this validation like swoping name&surname etc. I know that if the …

Member Avatar for pritaeas
0
96
Member Avatar for veledrom

Hi, I'm good at PHP and want to learn **Python 3**. Do you know any online pdf book for me to download so I can start? I'm asking to those who can say "this is good one". I found myself googling but I have no idea if they are good …

Member Avatar for Rashakil Fol
0
173
Member Avatar for veledrom

Hi, I was reading about Python and spotted "it has high signal-to-noise ratio" bit. In general, what does it really mean? I read some stuff about it but no particular explanation for programming. Tahnsk

Member Avatar for Rashakil Fol
0
165
Member Avatar for zychos

Did you try put a space after **WHERE** ? Also remove **=** mark and **OR** at the end of the query. > WHERElname > WHERE lname Should read: > SELECT fname, lname, ticket_id, nature FROM trouble_ticket WHERE lname LIKE '%paulson%'

Member Avatar for zychos
0
292
Member Avatar for veledrom

Hi, Code below works fine up to **hr**. For some reason, html code appears as is in textarea. It should first appear as notmal text. Anyone know why? Thanks <!DOCTYPE html> <html> <head> <style> p { margin:8px; font-size:20px; color:blue; cursor:pointer; } b { text-decoration:underline; } button { cursor:pointer; } </style> …

Member Avatar for veledrom
0
193
Member Avatar for veledrom

Hi, Is tere any difference between these two codes or is it just a matter of taste? Thanks var days = new Array('Sunday','Monday'); var days = Array('Sunday','Monday');

Member Avatar for veledrom
0
124
Member Avatar for veledrom

Hi, Let's say I have a textarea to collect user inputs. Someone turns up and writes a html code (eg. a table of something, or a img tag with src to naked image, a div with 10000px width and height ....) instead of plain text into it. It wouldn't be …

Member Avatar for veledrom
0
140
Member Avatar for veledrom

Hi, I want to update a column in **same table** if another column is updated but I'm getting error message. > Can't update table 'tbl' in stored function/trigger because it is already used by statement which invoked this stored function/trigger I tried two different approaches but no luck. Same error. …

Member Avatar for pritaeas
0
110
Member Avatar for veledrom

Hi, When I click on a textbox, teaxtarea etc. the border turns into a different color (orange, blue) in Chrome, Linux and in some others. How do prevent it with css? Thanks

Member Avatar for veledrom
0
78
Member Avatar for veledrom

Hi, I'm looking for a colour picker for my website but not **input** element based because when I click on **input** element, cursor focuses on it which is not good for me. I need something like img, div etc based approach. Thanks These two are input based: [http://jscolor.com/try.php](http://jscolor.com/try.php) [http://laktek.github.com/really-simple-color-picker/demo.html](http://laktek.github.com/really-simple-color-picker/demo.html)

Member Avatar for dany12
0
40
Member Avatar for veledrom

Hi, I have a few buttons to manipulate selected text in textarea but cannot work out how to do it. I mean I tried some examples on web but they are not really cross-browser compatible. If one work then another wont etc. Can anyone help me modify what I have …

Member Avatar for veledrom
0
199
Member Avatar for veledrom

Hi, I'm trying to insert incoming data from teaxarea into txt (can be without extention as well) file but the incoming data is being manipulated automatically which I don't want. I need to insert as is. How can I solve this problem? Thanks **My codes to insert:** $handle = fopen('cms/files' …

Member Avatar for veledrom
0
101
Member Avatar for veledrom

Hi, IS there any example code like this thread screen with bold, link, heading list, image adding buttons like we see above. I need to create a page similar to this screen and teaxarea to with it. Thanks

Member Avatar for dany12
0
43
Member Avatar for veledrom

Hi, I've written my own pagination but one last bit left and need help. I have the array wbelow: Array ( [First] => First [<] => < [1] => 1 [2] => 2 [3] => 3 [4] => 4 [5] => 5 [6] => 6 [7] => 7 [8] => …

Member Avatar for veledrom
0
154
Member Avatar for veledrom

Hi, I have a checkbox in my form and want to see the changes to it in next page but the problem is if I un-check a checkbox then the $_POST variable will not include it in next page so I won't be able to the changes. Any idea for …

Member Avatar for veledrom
0
76
Member Avatar for veledrom

Hi, I see some website URLs have hash values attached to them. Is this for security reasons? If so, how do we benefit from that approach? example: h-t-t-p://w-w-w.mysite.com/forums/search/results/3400faebf7f6e0b549751ca029026a61/ Thanks

Member Avatar for pritaeas
0
136
Member Avatar for veledrom

Hi, I have table (MyIsam) and want to set an index but fail to do so. Field : Varchar(10) Not Null Index Type : Unique Index Method : Hash Everytime I try, index method automatically assigned as BTree. Is this combination wrong for setting an index defined above? Thanks

Member Avatar for veledrom
0
134
Member Avatar for veledrom

Hi, Let me explain with an example. I have a postcode `NW1 5LR` and its `LATITUDE:51.546069024064 LONGITUDE:-0.235949008191785` coming from user entry. I also have many other postcodes and their Latitide&Longitide values in database. What formula should I use to get only those postcodes which are in 1 mil away maximum? …

Member Avatar for veledrom
0
99
Member Avatar for veledrom

Hi, Is there any specific URL that I can attach latitude and longitude to it and open Google Map in another page to see the location? Thanks

Member Avatar for veledrom
0
66
Member Avatar for veledrom

Hi, Code below is just to print a message. Nothing more. Question is: Whether we have the line `return $this->myname;` or not, it works fine but why some people still use `return` in such cases? Is it just a matter of taste or I'm missing something about OOP? Example below …

Member Avatar for veledrom
0
116
Member Avatar for veledrom

Hi, I have a XML file and want to put this line it but doesn't work. Is there any way of doing it? Thanks <?php header('location: goback.php'); exit; ?>

Member Avatar for vibhaJ
0
231
Member Avatar for veledrom

Hi, I am using WAMP on Win7 and my root folder is obviously `c:\wamp\www\` On same computer I use `http://localhost/project/` to run my project. The question is how do I run same project on other machine which is on same network? Also I rather use a bit human friendly naming …

Member Avatar for veledrom
0
2K
Member Avatar for veledrom

Hi, I need to pass full content of `$_FILES` to third page but fail to do so. File is selected once in first page. It might look wierd but It has to work this way. If I use session `$_SESSION['csv_file'] = $_FILES;` in page 2, I cannot read the content …

Member Avatar for veledrom
0
258
Member Avatar for veledrom

Hi, How can I read a file content without uploading it to the server? I know that we use `$handler = fopen('regular.csv', 'r');` to read an existing file on server but what if doesn't exist. Obviously `$_FILES` is used to move file to server first but I don't have any …

Member Avatar for veledrom
0
389
Member Avatar for veledrom

Hi, I'm getting `this.form undefined` error message when I submit it. Do I miss anything? Thanks function signup_scramble(uid) { alert(uid.value); return false; } <form action="do_signup" method="post" onsubmit="return signup_scramble(this.form.text_username)"> Username : <input type="text" name="text_username" value="" /><br /> Password : <input type="password" name="text_password" value="" /><br /> <input type="submit" name="submit_button" value="Signup" /> </form>

Member Avatar for veledrom
0
4K
Member Avatar for veledrom

Hi, I have an array and I want to check if the student id exists in it or not **without** looping the array. I tried `in_array` and `array_key_exists` but they didn't work. If **001122334** exist in array below then **echo exist**. Thanks in advnace Array ( [0] => Array ( …

Member Avatar for veledrom
0
159
Member Avatar for veledrom

Hi, I want to know what would be your preferences in this case. I'll have a login and sign up process and want to develop its database tables. - 1:1 version needs JOIN everytime when loging in, T-SQL when signin up new user. - Single table version doesn't need two …

Member Avatar for veledrom
0
206
Member Avatar for veledrom

Hi, I wonder what is the best way to prevent injection against user input. There are a lot of examples but one say "magic_quotes_gpc" is good but removed from PHP soon. Therefore, no point of using it. Another says "mysql_real_escape_string and addslashes" just used to clean iptuts. Etc etc. I …

Member Avatar for phplover
0
165
Member Avatar for veledrom

Hi, I'm receiving an error message but cannot solve the problem. Please give us a hand. Line 49 is -> `$record_set = $this->db_conn->query($sql);` Thanks in advance `Fatal error: Call to a member function query() on a non-object in C:\wamp\www\oop_singleton_pattern\class.db.php on line 49` <?php class DatabaseClass { CONST HOST = 'localhost'; …

Member Avatar for veledrom
0
111
Member Avatar for veledrom

I've been looking for a answer for this for some time but no luck. Does anyone know how do I check if the mysql db is full? I'll trigger an email in PHP to myself if the db is full cos I cannot check it constantly manually. Thanks

Member Avatar for veledrom
0
138
Member Avatar for veledrom

Hi, The code below always returns Fail although I send correct username and password. Can anyone spot what I do wrong? Thanks in advance [CODE]<?php $username = htmlspecialchars(trim($_POST['username'])); $password = htmlspecialchars(trim($_POST['password'])); if($username == 1 && $password == 1) { echo json_encode(array('result' => 'success', 'username' => 'myname'); } else { echo …

Member Avatar for AleMonteiro
0
141
Member Avatar for veledrom

Hi, My pages cannot show special characters from other languages. It only works for english. How can I modify it to display other characters from french, greek, turkish, arabic etc. ? Thanks [code] </div><!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" xml:lang="en" lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" …

Member Avatar for veledrom
0
123

The End.