126 Archived Topics

Remove Filter
Member Avatar for mattyd

I am working with a form validation script; I am testing it first and all seems to work fine except for the email validation. This is a snippet of the script dealing with the email validation: else if(! eregi("^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,3})$", $email )) { $_SESSION['reg']['email']="Please enter valid email address."; For example, if …

Member Avatar for cereal
0
236
Member Avatar for mattyd

[This is theoretical at this point - No code is written for this] On the project I am building (A forum of sorts) I will be the Admin: I will be the only person able to edit posts. Even the User, save for a 15-minute window (after posting), will **not** …

Member Avatar for iamthwee
0
98
Member Avatar for mattyd

Hello. I am having a bit of trouble with being able to submit/record the data from a selected dropdown field to my DB. Here is what I know so far: 1. Connection to DB is fine; All other data fields are submitted and recorded to DB 2. The dropdown (To …

Member Avatar for mattyd
0
249
Member Avatar for mattyd

A simple problem with a simple solution, I suppose. I have researced it but do not quite understand it. **Problem**: I have a very nice script for a dropdown that displays country names and the associated flags for each country within a form. This works very well, but... Examples of …

Member Avatar for diafol
0
301
Member Avatar for mattyd

To begin, I have not written any HTML/CSS in about 4-years, so in a sense I'm relearning. My issue at this point is this: I want my footer to span the length of the window. Simple enough; But, it is leaving an approximately 10-px gap on the left of the …

Member Avatar for kevwood
0
192
Member Avatar for mattyd

(Mods/Admin: Please move if in wrong area. Thank you) I am interested in hosting ads on my site, but I have no idea where to begin. Simply put, I want this to be a selective, semi-targeted process; Companies such as RackSpace, for example. I would not accept just anything on …

Member Avatar for Dani
0
226
Member Avatar for mattyd

(I am not sure if this is the correct area for this thread - Admin/Mods, please more if necessary. Thank you.) Hello. I write a lot of code. I save many back-ups, that is, current versions of the code in case I need to roll-back. This can be quite tedious …

Member Avatar for rch1231
0
121
Member Avatar for mattyd

Hi, I finally figured out how to take a row from a table and display it on a page. Big deal, huh? That was not exactly my main goal, though. When a User submits a form I need *that data* to display. I've struggled with this. I now figure that …

Member Avatar for iamthwee
0
253
Member Avatar for mattyd

I am using mysql_fetch_assoc to retrieve and display an array; This is what I recieve upon loading the page: *Warning: mysql_fetch_assoc() expects parameter 1 to be resource* I have researched it and do not understand it. **Snippet* while ($row = mysql_fetch_assoc('$result')) { echo $row["emp_name"]; echo $row["emp address"]; } Thank you, …

Member Avatar for mattyd
0
296
Member Avatar for mattyd

*Yes, the reoccurring issue* I have yet to solve: Posting the contents (Saved to a DB) of a form to a redirected page. Everything works except the rendering of the form data on the redirected page. I've been trying everything that I can think of. I've been researching this for …

Member Avatar for mattyd
0
143
Member Avatar for mattyd

I call it "Compartmentalization", that is, taking a long .php file and breaking it down into smaller components; Seperate .php files. This will keep everything tidier, cleaner, more organized, reusable and I believe, more secure. **Example** (Not my code - Maybe not a *perfect* example of this idea, but for …

Member Avatar for pritaeas
0
174
Member Avatar for mattyd

A simple question (One which I do not have the answer to yet). One small yet important aspect of my current project is collecting IP addresses via email registration/email confirmation. I assume seeing an IP is not difficult (User's email header?) **My question is**: *Is this IP the IP of …

Member Avatar for JorgeM
0
138
Member Avatar for mattyd

Receiving this upon run: Warning: mysql_connect(): Host 'srv26.main-hosting.com' is blocked because of many connection errors; unblock with 'mysqladmin flush-hosts' in /home/u871385583/public_html/ob_re4.php on line 32 NEIN! Host 'srv26.main-hosting.com' is blocked because of many connection errors; unblock with 'mysqladmin flush-hosts' I am not sure about how to go about *flushing the host*, …

Member Avatar for rubberman
0
209
Member Avatar for mattyd

I am still working with redirection. **This** works great, but is not exactly what I need: <?php ob_start(); ?> <h1>ob redirect test</h1> <?php $redirect_page = 'https://www.google.com'; $redirect = true; if ($redirect == true) { header("Location:$redirect_page"); } ob_end_flush(); ?> I have spent all day trying to figure out how to use …

Member Avatar for Dani
0
394
Member Avatar for mattyd

Hello. What I am planning to do for User registration in regards to agreeing to the EULA: 1)For example, there will be three conditions the User must agree to by selecting checkboxes - Only one condition displayed at a time. 2)Upon checking the first condition checkbox, the second condition appears …

Member Avatar for mattyd
0
136
Member Avatar for mattyd

I have been researching this as I am getting the distinct feeling I will have to transition my code to this soon, eventually. From your experience, can someone provide a brief overview of the benefits of MySQLi and why I should transition. Is it even necessary? I'm not sure. Any …

Member Avatar for mattyd
0
176
Member Avatar for mattyd

I am still working on the redirection issue (As noted in a previous thread here). I think I may have found a nice solution via a video tutorial on the subject. When running this test script, it should simply load google.com; The result though is a "Page not found" screen. …

Member Avatar for nauticalmac
0
193
Member Avatar for mattyd

*I apologize if this has already been asked/answered* I am have trouble with this, although I imagine the solution is rather simple: 1. User completes form and submits 2. Page either reloads displaying User-entered data *or* redirects to a *new* page displaying said data for User I have been trying …

Member Avatar for mattyd
0
278
Member Avatar for mattyd

Located in the upper, left-hand corner of the GUI window is a small "[COLOR=red][B][I]Tk [/I][/B][/COLOR]"; is it possible to get rid of this entirely? It is only a small detail, but a detail none-the-less that I wish to have control over in regards to the final product. I would also …

Member Avatar for ZZucker
0
5K
Member Avatar for mattyd

Recently my girlfriend's laptop "died", that is, it may be only the monitor but in any case, it is no longer functional. [U] My question is this[/U]: We would like to recover all data from the laptop hard drive without having to take the laptop to a shop to have …

Member Avatar for caperjack
0
179
Member Avatar for mattyd

I am working on a fairly simple site. At this point I am wanting to assemble 25 images on the [URL="http://stormtrooper.webng.com/"]homepage[/URL] which when assembled will form a [I]whole[/I] image (where each separate image will be clickable). I am only at the point of trying to getting the images arranged as …

Member Avatar for robbiegod316
0
271
Member Avatar for mattyd

**Note: I'm not sure if this is the appropriate area for this post-- please move if necessary. Hello. I am working on a small Macromedia Flash project, just learning more about Flash and getting acquainted with the Flash interface as well as Actionscript; my question is not in regards to …

Member Avatar for gusano79
0
233
Member Avatar for mattyd

Hello. I am completing work on a commerce website and have noticed a small but strange error that I cannot seem to remedy. Each page has a footer that contains text; of course, this should align the same on each page view, but the problem is as follows: Alignment is …

Member Avatar for JRM
0
134
Member Avatar for mattyd

Hello. I have been following a great tutorial that I found regarding searching a database: Tutorial: [url]http://www.phpfreaks.com/tutorial/simple-sql-search[/url] When I used this and ran it from my server (doing a search of the database), I bookmarked the page; my question relates to the next step: When I return to the page …

Member Avatar for mattyd
0
121
Member Avatar for mattyd

I have read through the FAQ sticky regarding this topic (and have also searched/read here further on this topic) but I am still receiving the following error: [B][I]Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/a4542527/public_html/index.php on line 8[/I][/B] The scripting for this is basic at …

Member Avatar for richieking
0
144
Member Avatar for mattyd

Hello. I need some direction for the following problem (I am not sure where to begin my research): I essentially, using PHP and MySQL, allow a user to enter character data into a form, submit the form, and next have this data saved to the database, then a formatted version …

Member Avatar for mattyd
0
777
Member Avatar for mattyd

Hello, I am brushing-up on SQL (using MySQL). It has been many years since I have worked with this and I'm having some trouble getting started. I have looked at a tutorial and entered the code below: [CODE]CREATE TABLE employees ( employeeNumber into(11) NOT NULL, lastName varchar(50) NOT NULL, firstName …

Member Avatar for mattyd
0
165
Member Avatar for mattyd

I have one, reoccurring issue that arises each time I run this incomplete program I am working on; I have spent much time attempting to locate the bug. I am convinced it arises from a simple error. Problem: User has made a "deposit" but when the User makes a "withdrawal", …

Member Avatar for peter_budo
0
96
Member Avatar for mattyd

I have addressed this problem sometime ago; I have either misplaced, misunderstood, or never received a response to this issue so therefore I am again attempting to deal with a Python issue: I am towards the end of a build, and I am dealing with button commands, something that was …

Member Avatar for TrustyTony
0
379
Member Avatar for mattyd

I am redesigning my girlfriends website and this time hope to use fluid layout. I have been doing research for some time now but I am not making significant progress. I am not new to web design, HTML or CSS but after my last frustrating attempt at a site (the …

Member Avatar for mattyd
0
129
Member Avatar for mattyd

This demonstration was originally proposed to be posted as a Python tutorial but with further inspection it was deemed more of a "how-to" guide, in this case, how-to create simple animation via Tkinter (Tool Kit Interface) All the necessary elements are included in the attched zip file. This includes: [LIST] …

Member Avatar for vegaseat
1
244
Member Avatar for mattyd

[COLOR=Black]** I am not sure if this is the correct area for this post-- please move to correct forum if necessary-- thanks.[/COLOR] I am redeveloping the website for the company I work for. It is going along quite well but I have a question in regards to Flash; I have …

Member Avatar for Ankitpb
0
171
Member Avatar for mattyd

I am a member of a QA/testing team for a software company in NYC. We have decided recently to begin the development of scripting tools to automate repetitive tasks used during our testing cycles. We have decided to use Ruby. Although we have admired Ruby from afar for some time …

0
117
Member Avatar for mattyd

Hi, I am developing a simple site and have (after it being recommended) been using CSS to handle the [URL="http://stormtroopr.webng.com/"]homepage[/URL] image display. The display consists of an array of 25 (95x95 px) images aligned to form one image. CSS has allowed me to display them just as I wanted (please …

Member Avatar for trudge
0
111
Member Avatar for mattyd

Hello. I am new to Java and I am easing into this new language via some basic tutorials. I am using the Borland 2005 IDE; it is powerful and I quite like it save for that it seems [I]incredibly[/I] bulky, hogs [I]all[/I] resources, freezes, tries to shut itself down, etc, …

Member Avatar for jwenting
0
582
Member Avatar for mattyd

Two good sources to learn from: [URL="http://www.rubycentral.com/"][B]Ruby Central[/B][/URL] [URL="http://en.wikipedia.org/wiki/Ruby_on_Rails"][B]ROR on Wikipedia[/B][/URL]

Member Avatar for Gary King
0
156
Member Avatar for mattyd

Hello: I am a programmer. I work professionally primarily in C, C++. Most personal programming projects I do is in either C++ or Python. I am studying Java and Ruby currently. My quetion is: How valid do you find Assembly language in a modern sense, professionally or otherwise? I ask …

Member Avatar for bootstrap
1
261
Member Avatar for mattyd

Hello: I am new to Macromedia Flash. I have been building some simple movies and games via tutorials and experimenting with Actionscript; I am looking for the method to display an image dynamically against a background upon user-input, say, via mouse selection on an element upon the screen (I have …

Member Avatar for GreenDay2001
0
157
Member Avatar for mattyd

Could some one please help me the definition of "Break apart" in reference to using Macromedia Flash; I have just begun using Macromedia Flash 6.0 and have been studying tutorials to get the basic, introductory feel of it. At one point it calls to use break apart for a JPEG …

Member Avatar for mattyd
0
125
Member Avatar for mattyd

I am rather new to Flash and I am having what I consider to be a strange result which I do not know how to address. I am building an HTML site using CSS. Last week I embedded a SWF which scrolls a simple movie over the banner\ header. This …

Member Avatar for MidiMagic
0
117
Member Avatar for mattyd

I have read that Python does [I]not[/I] have built-in support for multi-dimensional arrays-- is this still the case or has this been developed and updated in the last few years for this language? I have researched this and seen references to multi-dimensional arrays and various work-arounds: dictionaries, lists, and various …

Member Avatar for jrcagle
0
441
Member Avatar for mattyd

Hello: I have recently been studying Java; I have followed a few tutorials and building some simple apps. I am wanting to try applets. I read about them tonight and followed an included tutorial in order to get an introductory feel for doing so. My questions do not pertain to …

Member Avatar for mattyd
0
104
Member Avatar for mattyd

I am at the end of a build and am putting some minor touches on and testing; one area I suppose I took for granted (and have honestly not seen a need yet to fully deal with) is the Tkinter buttons. The buttons perform fine overall as to their function; …

Member Avatar for mattyd
0
18K
Member Avatar for mattyd

I am searching for the syntax that will allow me to arrange widget buttons in a Tkinter GUI in a specific manner; currently I have three (3) buttons that are stacked[I] vertically[/I] on top of one another. I wish to arrange the buttons so that they form a row of …

Member Avatar for mattyd
0
3K
Member Avatar for mattyd

[U][B]I have two questions regarding Tkinter GUIs[/B][/U]:[LIST=1] [*]I have three buttons in a GUI; at times it seems that the buttons "stick". By this I mean when the mouse is clicked on one it may activate or it [I]may not[/I]. They all work correctly in regards to there function(s) but …

Member Avatar for mattyd
0
188
Member Avatar for mattyd

Hello: I am interested in understanding recursivity; I have not knowingly used this much in my programming. I am reviewing certain areas of OOP in order to learn more and better about areas that I may not be[I] fully[/I] understood yet. Recursivity is one of these areas. I understand the …

Member Avatar for Infarction
0
186
Member Avatar for mattyd

Is there an option of some sort in the Dr. Python interpreter that would allow one to re-run the same output results after making adjustments to the code. Example: I run an example of source code and receive an output result. I make changes to the code. I now am …

Member Avatar for vegaseat
0
135
Member Avatar for mattyd

I am in the end part of a Python Gui game build; it is going quite well but I am finding that I underestimated one area of the logic, incorrectly coding it: The game is blackjack. One area that, although it seemed simple on the surface (and in fact it …

Member Avatar for woooee
0
108
Member Avatar for mattyd

Hello: I am new to Java and I am working on a tutorial to familiarize myself with this language. The tutorial is a walk-through in building a basic text editor. So far the build is going fine, but I have come to a point where I am unsure how to …

Member Avatar for mattyd
0
265
Member Avatar for mattyd

About one month ago or so my Dr. Python compiler (interpreter) died. I had closed Dr. Python to go and eat dinner then came back to re-open and continued where I had stopped and... nothing. This came at a terrible time as I was in the middle of some very …

Member Avatar for Ene Uran
0
200

The End.