Forum: PHP 8 Days Ago |
| Replies: 2 Views: 212 You can check for a search by the employee's name. Then you can check for a space. If there is a space you can split the two names with explode and then perform a query that matches first and last... |
Forum: PHP 8 Days Ago |
| Replies: 9 Views: 411 Alright then, have you replaced all your files (for this project) with one file called paycheck.php and added only my code to it. Line 10 is the end of the first if block. I tried it on my XAMPP and... |
Forum: PHP 9 Days Ago |
| Replies: 9 Views: 411 Try this, you were missing some semicolon's at the end of your lines:
paycheck.php:
<html>
<head>
<title>Paycheck Calculator</title>
</head>
<body>
<?php |
Forum: PHP Sep 3rd, 2009 |
| Replies: 11 Views: 377 I've never heard of it before and like pritaeas, thought it was some kind of templating application, but assumed you weren't using one.
At first I though the same thing, as that seems very... |
Forum: PHP Sep 3rd, 2009 |
| Replies: 11 Views: 377 Exactly..though it does need one minor fix! (But I'm sure you knew this!):
$link = array();
$result = mysql_query($sql); //<-- Semicolon
while ($row = mysql_fetch_array($res))
{
$link[] =... |
Forum: PHP Sep 3rd, 2009 |
| Replies: 11 Views: 377 The proper use of this would be declaring the $link variable as an array before you start looping through the array results of the query. Your code should look like this:
$result =... |
Forum: PHP Aug 24th, 2009 |
| Replies: 7 Views: 502 Since we have solved this issue, would you mark this thread as solved.... |
Forum: PHP Aug 17th, 2009 |
| Replies: 7 Views: 502 Ok this makes much more sense! I'll take a look and see if I can come up with something. One question: When you click submit, do you want PHP to show the background and text combined together into an... |
Forum: PHP Aug 16th, 2009 |
| Replies: 4 Views: 369 If you have no further questions, why not mark this thread as solved? |
Forum: PHP Aug 16th, 2009 |
| Replies: 7 Views: 502 It would help if you could use some clear and exact English so that we can all understand your question. First off, why are you placing DIV's inside of a table? TR's belong in a table and TD inside... |
Forum: PHP Aug 10th, 2009 |
| Replies: 10 Views: 658 Ok this makes much more sense now!! :D
Your problem is this: Everything is correct with the checkboxes. Your checkbox method does work, but your PHP script is not receiving these values correctly. I... |
Forum: PHP Aug 10th, 2009 |
| Replies: 10 Views: 658 http://www.w3schools.com/php/func_http_header.asp |
Forum: PHP Aug 10th, 2009 |
| Replies: 10 Views: 658 Matthewl beings up a good point. The only problem is that once you have placed content on a page (He has already echoed a table), neither the meta tag (which belongs in the head) nor the header()... |
Forum: PHP Aug 10th, 2009 |
| Replies: 10 Views: 658 First off, Your Welcome! :D
About that line: I didn't realize that you used that result variable so here is the corrected version with explanation.
$result = mysql_query("DELETE FROM $tbl_name... |
Forum: PHP Aug 10th, 2009 |
| Replies: 10 Views: 658 Here is your problem area:
$checkbox = $_POST[checkbox]; //Problem #1
if($_POST['delete']){ //Problem #2
echo "test"; //Nice Debugging But This Should Fix It So We'll Remove It... |
Forum: PHP Jul 3rd, 2009 |
| Replies: 6 Views: 622 Ok I didn't realize that...whoops! Anyway I believe bgeisel meant for you to get the author name first and replace the ... with the_author(). So something like this:
<?php
if... |
Forum: PHP Jul 2nd, 2009 |
| Replies: 6 Views: 622 If you use wp_list_authors(); it should by default exclude the admin account. If not you could try:
Posted By: <?php wp_list_authors('exclude_admin=true&hide_empty=true'); ?>
See The Codex... |
Forum: PHP May 25th, 2009 |
| Replies: 10 Views: 690 Here is your code for the specific user variable. You must understand that for each user you need to create a new folder with an index.php containing the same code each time.
... |
Forum: PHP May 25th, 2009 |
| Replies: 13 Views: 439 Have you started the session with session_start() elsewhere on this page? |
Forum: PHP May 25th, 2009 |
| Replies: 10 Views: 690 That is true sDJh, but wouldn't this mean that spank would have to create a folder and index.php for every user the registers? Still though, I like your solution (My other plan was using almost... |
Forum: PHP May 25th, 2009 |
| Replies: 13 Views: 439 Make sure that you have no html or other text written with echo before that or any html or text before the <?php tag. This could be something as simple as a space:
<?php //Notice the space here... |
Forum: PHP May 25th, 2009 |
| Replies: 10 Views: 690 It looks like you need htaccess code. This will make a rule on your webserver to call a server file (I'll call it user.php) with details from your url.
RewriteEngine On
RewriteRule... |
Forum: PHP Feb 7th, 2009 |
| Replies: 4 Views: 565 Sure here's a suggestion. Find a host with MySQL (or ask your host to install it for you) and create a database for your site. Then create a table and call it years. In this table create three... |