peranha
Members-
Posts
878 -
Joined
-
Last visited
Everything posted by peranha
-
Are these right?? $sql_host,$sql_user,$sql_pass Also your require for the header.php needs ()
-
I believe that i means that something else is using port 80. you can try this change "Listen 80" to "Listen 127.0.0.1:80" or to your IP address or what ever port you want to use in your httpd.conf file. if you are using skype, it uses port 80. you will then have to change the port you use for apache, or disable this in skype. The above info is from http://forums.devarticles.com/programming-tools-11/os-10048t-11921.html
-
This what what I was reffering to, he said he tried his password, and it didnt work. I have vista on a laptop, and there must be somethigngwith it that the admin password is not your password. I had to use the program to be able to install things, and even search Documents and Settings folder for sessions to work on my laptop for development.
-
[SOLVED] reading and writing to a mysql database
peranha replied to westie101's topic in PHP Coding Help
cant you just set the order_no to auto increment in your mysql database?? So when you insert something, it will automatically select the next highest value. -
I had the same problem, you can go and download this program to change the admin password in windows Vista. http://home.eunet.no/pnordahl/ntpasswd/ Or you can go here http://www.loginrecovery.com/
-
Are the ads at the bottom supposed to be aligned to the left of the page?? [attachment deleted by admin]
-
I agree with this, looking at these, is how I tought myself, I am not good at thinking of things, but when ideas come up, I may be interested in trying to make them and so work at making it. It is a way for me to get more in depth with programming.
-
you dont need to unless you want users to stay logged in even after they close their browser.
-
Yes you have to. then you can add info to the session as needed anywhere in the script.
-
Put this line at the very top of the page and delete it from where it is now. session_start(); // Begin the session Sessions need to be started before anything is outputed. The only line you need to change is the session_start() line
-
you would just put <a href="page.php?id=<?php echo $row[0];?>"></a> the row is the database row, and then on the next page, use $id = $_GET['id']; with some checks to make sure it is what you are expecting.
-
You will need to use join statements. SELECT D.name, D.description, P.prices, P.caseweight, P.caseqty FROM Products D INNER JOIN Prices P ON D.itemnumber = P.itemnumber WHERE P.itemnumber = "11004NA" AND D.itemnumber = "11004NA" Something like that should work, or get you started anyway.
-
[SOLVED] grouping and selecting like results.
peranha replied to vomitbomb's topic in PHP Coding Help
If 2 people have the same last name, you will have to have a second search such as first name to identify between the 2. -
yes, you can do that team-roster.php?sort=height and then on the page it will be $sort = $_GET['sort']; and the query will be Select * FROM table ORDER BY $sort;
-
Passing Data between pages without using the address bar
peranha replied to Comdemned's topic in PHP Coding Help
Yes, as stated, session_start(); has to be at the top of all pages where this will be used. Sorry, forgot to mention that. -
Passing Data between pages without using the address bar
peranha replied to Comdemned's topic in PHP Coding Help
Sessions will work $_SESSION['option'] = "something"; $_SESSION['clientid'] = "clientid"; $_SESSION['this'] = "this"; an on the page you want to call it just put $_SESSION['option']; as in echo $_SESSION['option']; -
varchar can have a maximum of 256 characters. the backticks are not needed, but can be left there, is is safe for using mysql reservered words. Here is a reference of lengths if needed char(size) Holds a fixed length string (can contain letters, numbers, and special characters). The fixed size is specified in parenthesis varchar(size) Holds a variable length string (can contain letters, numbers, and special characters). The maximum size is specified in parenthesis tinytext Holds a variable string with a maximum length of 255 characters text blob Holds a variable string with a maximum length of 65535 characters mediumtext mediumblob Holds a variable string with a maximum length of 16777215 characters longtext longblob Holds a variable string with a maximum length of 4294967295 characters
-
PHP Login Script Using Forum User Database
peranha replied to RevBlueJeans's topic in PHP Coding Help
Since you are using a PHPBB forum, they may be able to help on their forum, since they will know it the best as they built it. Or you can ask in the 3rd party board of this forum, someone there may be able to help as well. -
$query = doquery("INSERT INTO {{table}} postdate=NOW(),content='$content'", "news"); Than that will work, just dont mention it in the query.
-
in your table, set the autoincrement for column id
-
you are setting id to nothing, it needs to have an integer in it.
-
I believe it is saying that you are not inserting an integer into an integer field in the database