
waynew
Members-
Posts
2,405 -
Joined
-
Last visited
Everything posted by waynew
-
After sending, redirect back to index with a GET variable such as header('Location: index.php?sent=Y'); Then on index.php if(isset($_GET['send']) && $_GET['send'] == "Y"){ echo 'Success'; }
-
You can do this using CSS. Set the main container: <div style="width:100px; background-color:#fff; border:#eee 1px solid; height:30px;"> <div style="width:<?php echo $percent; ?>%; background-color:#eee;"> <> <>
-
You'll need to post the query you currently have and the table structure before anyone can help you out properly.
-
Lost connection to MySQL server at 'sending authentication information'
waynew replied to sotiris25s's topic in MySQL Help
Seems like a bug: http://bugs.mysql.com/bug.php?id=28359 -
If you have a column called Customer with either a N or a Y in it, then your query could look like: $query = "SELECT * FROM MyTableName WHERE Customer = 'Y'"; If the query becomes slow, you should look into indexing the Customer column. Or have I misunderstood your question? If so, please show us your table schema (structure).
-
You should really write a message system yourself. It'll be a good experience, as it's not as straight forward as it sounds.
-
You could post the email address in an image? But then again, people will probably want to copy and paste it.
-
Yes but Lightbox is a lot more neater looking. I checked that script and it didn't look as polished.
-
Where are you getting $formOK from?
-
Hmm. That function always works for me. Maybe its your server or your email client.
-
A thumbnail can be either cropped or resized (usually cropped). Look into cropping images with PHP.
-
Are you using simple_mail($from, $to, $subj, like simple_mail("[email protected]", "[email protected], "Hi", ??
-
<?php $currentDate = time();// current date $date = $currentDate - (86400 * 3); $ttldate = date('m-d-y', $date); echo $ttldate; ?>
-
What do mean by "Select Text"? As in, highlight the text? Because I can highlight the text on your site. I've noticed that some of the text is just text in an image, which would explain why you can't select it.
-
You should also check out the checkdate() function: http://php.net/manual/en/function.checkdate.php
-
Am I missing something with $_GET and typed in values?
waynew replied to linus72982's topic in PHP Coding Help
I don't think I fully understand your question. Say you redirect to blahblah.php?id=X if(isset($_GET['id']) && $_GET['id'] == "X"){ //true } else{ //false } -
mysql_query("DELETE FROM Members WHERE email='".$_SESSION['logname']."'"); ...will probably work.
-
You will need to use JavaScript to solve this problem. If you're wanting the form to change based on what the user chooses from a drop down menu (or something else etc), then you'll need to look into JavaScript.
-
Hey buddy, you could try using my function if you want. It's pretty simple stuff and I always use it on projects: function simple_mail($from, $to, $subj, $msg, $charset="UTF-8", $extraheaders=""){ $headers = "From: {$from}\n"; $headers .= "MIME-Version: 1.0\n"; $headers .= "Content-Type: text/html; charset=\"$charset\"\n"; $headers .= "Content-Transfer-Encoding: 7bit\n"; $headers .= $extraheaders; $headers .= "\n"; $msg = $msg."\n\nThank You"; @ $ret = mail ($to, $subj, $msg, $headers, "-f$from"); return $ret; }
-
It's a WordPress theme I got from Smashing Magazine. Hacked it up, made a new logo for it, integrated adsense units etc. http://novascone.com
-
Firstly - potential clients could end up viewing your site in IE. Take that into consideration. When I first landed on the splash page, I thought to myself "What now?" Maybe that page a little bit more usable by making it more obvious that the face can be clicked on? I'm not really fond of the font you used at the top for "Hi, I'm Andy". May I ask what your sexual orientation has to do with your design capabilities? If you're wanting to tell people more about yourself, why not add other pieces of information as well, instead of just focusing on that one part of your life? Just seems a bit odd to me. I like the color scheme of the site. Minimalist. Why do you have a link to your splash page on the main navigation? It's kind of pointless, don't you think? Also note that "home" and "index" are often considered to be the same thing. Don't mean to sound negative or anything but the whole ... makes you sound kind of too sarcastic. Will potential clients appreciate that? I know you have to make your site personal etc, but humor doesn't always translate well over text. Keep that in mind.
-
You're looking for streaming software?