dclamp
-
Posts
102 -
Joined
-
Last visited
Never
Posts posted by dclamp
-
-
anti-virus
-
Every form value is always "set" per say. Try checking if the value is equal to nothing:
if(isset($_POST['incoming_data'])) { if($_POST['director']=="" || $_POST['class']=="" || $_POST['description']=="") { echo "Error! All fields must be filled out!"; } else { $director = $_POST['director']; $room = $_POST['room']; $class = $_POST['class']; $description = $_POST['description']; //do a mail() call } }
-
please edit your post using PHP tags. It makes it easy to read your code.
-
Popups are normally disabled. An alternative would be to have the Yes No question on your first page, and redirect to the other pages.
-
When you go to develop the .net part, http://www.vbforums.com/ is a great resource. i am a member there... although i only post in chit chat and PHP forum
-
Umm, what do you mean by table setup?
I think the point of the question is to determine whether a subcategory is associated with a specific category, because you may be able to execute a single SQL query to retrieve data from both tables in one go
Yeah thats what i was getting at...
-
ah i see what you want to do.
How is your table setup?
-
there is something wrong with your query, not the php.
try "SELECT * FROM `links` WHERE 1"
-
Here is how i set up my tables for messaging:
messages (msgID, folderID, toID, fromID, subject, body, timestamp, status)
folders (folderID, userID, foldername)
Im assuming you already have a users table.
-
Multidimensional array is not what your looking for. You just want 2 array merged together...
try using array_merge()
-
Well this would be the wrong forum to ask how. Your going to need to know how to do VERY low level programming. For the average person, yes this is close to impossible.
-
Neither of your solutions will work as lets say someone has a birthday of 2 Jan 1987
I would use 2 Jan 2009 and I'd do that by checking current year and adding it onto day "2 Jan $year"
But what if it was december 30th 2009, there next birthday would show as "2 Jan $year" which would be "2 Jan 2009" hence its in the past when it needed to be "2 Jan 2010"
Thats the problem, its not as simple as date - date = second remaining
Thats not our problem. Our scripts bother give the seconds remaining given the birthday is AFTER todays date. My script Will tell you if it is past or not.
-
try using strtotime()
$birthday = "20th January 2009"; $bts = strtotime($birthday); $ts = time(); if ($bts > $ts) { // checks if birthday is AFTER todays date $remaining = $bts - $ts; echo "Seconds: " . $remaining; // Will output in seconds echo "Days: " . ($remaining / 86400); // Outputs days remaining } else { echo "Birthday Already Passed!"; }
-
You cant do that with PHP. It is a javascript thing, and im pretty sure it only works with Popups.
-
I think its spelled pedofile
pedophile
-
If you know basic PHP and MySQL then this should be easy.
$firstname = mysql_real_escape_string($_POST['firstname']); $lastname = mysql_real_escape_string($_POST['lastname']); $studentid = mysql_real_escape_string($_POST['studentid']); $query = mysql_query("SELECT * FROM `students` WHERE firstname='{$firstname}' AND lastname='{$lastname}' AND studentid='{$studentid}'"); $num = mysql_num_rows($query); if ($num == 1) { // is a student } else { // not a student }
-
If you don't know where to get the parts, I can assure you you will not find this at all easy, and most likely, imposable.
Chris
You can find parts easily online. There are not too many different types. Capacitors, resistors, diodes, wires.
While this project isnt impossible it would be rather hard.
Maybe this will help you
http://www.engadget.com/2006/12/19/how-to-make-your-own-mp3-player/
-
Do you actually know how to code in PHP with MySQL? Let alone the skills of programming?
Sorry to come off as, mean, but a social network is a very large task.
-
The words "Gold" and "Webmaster" are gold, From the theme of the site, but at first i thought they were hyperlinks, kind of misleading.
Also there is no link back to the homepage.
-
$row is not a class. It is an array.
-
It is very narrow. It is even small on a 800x600 res screen. I have 1440x990 res and it is tiny. Make it wider.
-
remove the quotes, should work fine.
include($page . ".php");
-
i am assuming your selecting all of the fields (or most of them) use something like this:
SELECT * FROM `mytable` WHERE 1
this selects everything from your table.
-
im not quite sure...
Painter and Decorator Website
in Website Critique
Posted
looks like a generic website. Nothing that pops out...