Forum: PHP 6 Days Ago |
| Replies: 2 Views: 178 You need to connect to a database (Such as MySQL) then perform the queries in your arrays (You also need to unescape the quotes after the "tfr", it will stop the query from working).
Try something... |
Forum: PHP 6 Days Ago |
| Replies: 2 Views: 183 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 Sep 3rd, 2009 |
| Replies: 11 Views: 372 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 Aug 10th, 2009 |
| Replies: 7 Views: 417 @Dukane
You made the same error as Newbi..the correct code is below (Don't worry about it, I've made worse mistakes :D):
while($info = mysql_fetch_array($result))
The reason for this is as... |
Forum: JavaScript / DHTML / AJAX Jul 5th, 2009 |
| Replies: 6 Views: 835 That's great that you got it to work! If you don't have any more questions...would you please mark this thread as solved? |
Forum: PHP Nov 5th, 2008 |
| Replies: 3 Views: 385 You would probably want to use a MySQL table to store the emails. Then all you would have to do is write a php script that you can use to send email (Just make sure to password protect it for... |
Forum: PHP Sep 28th, 2008 |
| Replies: 8 Views: 2,203 Ok then, try this:
<?php
session_start();
if(session_is_registered('user'))
{
$user=$_SESSION['user'];
$del="DELETE FROM online WHERE user='$user'";
$result=mysql_query($del); |