Please, help me with PHP?
967189
SQL for finding birthdays on current day:\n\nSelect * from customer where month(birthday) = month(now()) and dayofmonth(birthday) = dayofmonth(now())\n\nOn a given day:\n\nSelect * from customer where month(birthday) = <month> and dayofmonth(birthday) = <day>\n\n(Where <day> is a number you specify from 1-31 and <month> is 1-12)
86779
hm... letsee\ngoogle it's full whit that just search about php documentation the ...you will find what you need there!\nTRUST ME\n;)
53462
You need to do that using a server script language, If you want to use it on a web site.\nCGI, PERL, PHP....
978532
What you can do is create this using flash which seamlessly integrates with PHP. I personally don't have much experience in this type of web application, but I did manage to find several scripts that you could look into for creating this system.\n\nI have included the link below. I hope these serve your purposes.\n\nEnjoy!
689990
Hi,\n\nFor simplicity, you could do this in one file, but technically for a better design you need to do it in multiple files.\n\n► PROGRAMMING LANGUAGE\nPick a programming Language of your choice, like ASP / PHP / JSP / RUBY / PERL\nI will pick PHP in this example!\n\n► CREATE A CONTROLLER\n// Lets create a session\nsession_start();\n\n// set the current action\n$_action = isset($_REQUEST['action']) ? $_REQUEST['action'] : 'Login';\n\nswitch($_action) {\n    case 'LoginSubmit':\nprocessSubmit($_POST);\n        break;\n    case 'Logout':\n    processLogout();\n    break;\n    default:\n        displayLoginForm();  \n        break;   \n}\n\nNow you have to understand basic Login Syntax... first you will need to get the corresponding action... like mywebsite.com/?action=Login\nNow if you did what I said on top... It will check where the action = Login, in my case it will goto default and access the function displayLoginForm();\n\n► FUNCTION displayLoginForm()\nFor simplicity what this will do is display the form for login, like(remember do this in html):\n$output = '<form action="login.php?action=LoginSubmit" method="post">';\n$output .= '<input name="username"  type="text" />';\n$output .= '<input name="password"  type="text" />';\n$output .= '<input name="submit"  type="submit"  type="text" />';\n$output .= '</form>';\nprint $output;\n\nWhat this does, it prints the form after you access that function and onc eyou press the button it will goto the LoginSubmit action in the controller as I mentioned above\n\n► FUNCTION processSubmit($_POST);\nif($_POST['username'] == 'm0' AND $_POST['password'] == '123') {\n$_SESSION['user'] = $_POST['username'];\n} else {\nprint "Access Denied";\n}\n\nWhat that does, it checks if the user is m0 with pass 123,\n\n► FUNCTION processLogout();\nThat will just log out the user so you can just do...\nunset($_SESSION['user']);\nheader('Location: /Login.php');\n\n\n► CONCLUSION\nOkay I just did the script for you within 10 min! \nSee how simple.. Remember you can expand the processSubmit to suit your own interest, like checking the database instead...\nSELECT username FROM users WHERE username=%s AND password=%s\nAnd just compare the username to the one given.\n\nAnd remember you need to create session to save the data throught the whole session of the visting.. So in ohter pages you could do this on the first line..\nif(isset($_SESSION['user'])) {\n... Your code of that page\n} else {\nprint "access denied.. login first";\n}\n\nSee how simple... Please remember I im just showing you the concept with some code. I usually do it in a object oriented fashion and everything is independent... You should be able to grab the concept and do something fancy!\n\nI hope I helped if you need more advice you can visit my forum at university so we can help.\nhttp://www.campusinteractive.com/forum/\n\nEnjoy! and phew!! That took some time heh NOTE: there might be syntax error :p
18196
1. Read everything you can at php.net\n2. Install the Apache-PHP-MySQL trio of open source software on your PC, configured for PHP programming (go here: http://mpcon.org/apacheguide/index.php )\n3. Download sample scripts (like displaying the current date and time, etc...) to learn by example
901685
Move your query and your result to the page where you are going to use the result.\n\nconn.php:\n<?\n$hostname="dbase.sample.net";\n$username="johndoe";\n$password="acem";\n$dbname="dbse1";\nmysql_connect($hostname, $username, $password) or die("Unable to connect to database! Please try again later.");\nmysql_select_db($dbname);\n?>\n\ntest.php:\n<?\n$require_once('conn.php') or die('cannot include db connection script');\n$sql = "SELECT * FROM userstore";\n$rs = mysql_query($sql) or die('cannot get resultset; '.mysql_error());\necho "<table>";\nwhile($row = mysql_fetch_array($rs)) {\necho "<tr><td>$row[userid]</td> <td>$row[first name]</td> <td>$row[last name]</td></tr>;\n}\necho "</table>";\n?>\n\nAlso, a quick note: MySQL column names should never contain spaces and should not contain anything other than numbers and letters. Also, you should never name a column with a MySQL reserved word. See links below.
363323
don't know of ebooks but some links might help, helpd me:\nhttp://www.hotscripts.com/\nhttp://www.php-mysql-tutorial.com/\nhttp://www.php.net/manual/
586247
previous answer was b/s\n\nphp is a superior product and free (opensource)\n\nthere are lots of good resourses to get you started with php\n\nhttp://www.zend.com/zend/tut/\nhttp://ca.php.net/tut.php\nhttp://www.webmonkey.com/webmonkey/programming/php/
148215
visit http://www.php.net/ to learn...
701124
Try to place your code inside a textarea field on a form. \n\neg\n\n<form>\n<textarea>your code</textarea>\n</form>
932402
Hi I am a PHP programmer. working as a web Developer.\nI think i can help u.. no charge..\nor u can take help from http://www.w3schools.com/php/default.asp
115856
i'm sorry i don;t know much about php
99202
use cgi print or php... any of those script will do the trick
508273
Well PHP and MySQL is the Best you can get for this......\n\nhttp://www.php.net/manual/en/ and Dive into the world of PHP
886978
you can do it without any database.. use post method and you can do it. if you have more questions about php check the link
185119
There are tons of PHP scripts that will do what you need. One of the best sources I've ever found is \n\nhttp://www.scripts.com/php-scripts/community-scripts/3/\n\nHostingzoom.com also offers cheap webspace that is all set up for php hosting with applications such as drupal ,mambo and phpbb included and ready to run.