hello
have you connected to the database?
Search found 20 matches
- Sat Nov 20, 2010 5:32 am
- Forum: PHP - Code
- Topic: Php converting an $_POST
- Replies: 6
- Views: 264
- Thu Nov 04, 2010 6:52 pm
- Forum: PHP - Code
- Topic: Forms Question
- Replies: 13
- Views: 1037
Re: Forms Question
I think it enters blank information into the database because it is running the php code at the start before you have a chance to fill out the form. In my opinion you should separate the php code that connects you to the database and only call it when you click the register button.
- Mon Feb 08, 2010 9:16 pm
- Forum: PHP - Code
- Topic: Can't connect to MySQL server
- Replies: 10
- Views: 428
Re: Can't connect to MySQL server
hi, I think you need to assign the function to a variable for example: resourceId = mysql_connect(server, username, password); and when you are selecting a database the parameters to pass are the database name and the resource returned from the above connection function. mysql_select_db(databa...
- Sat Jan 23, 2010 4:57 pm
- Forum: PHP - Code
- Topic: Troubles with PHP code - trying to post to mySQL
- Replies: 22
- Views: 926
Re: Troubles with PHP code - trying to post to mySQL
hi, don't you need to assign the function to a variable for example: resourceId = mysql_connect(server, username, password); and when you are selecting a database the parameters to pass are the database name and the resource returned from the above connection function. mysql_select_db(database...
- Wed Jan 20, 2010 3:33 am
- Forum: PHP - Code
- Topic: my login script is not working-pls help
- Replies: 1
- Views: 86
Re: my login script is not working-pls help
hello,
could you post your script please?
could you post your script please?
- Tue Dec 22, 2009 9:52 am
- Forum: PHP - Code
- Topic: How to create a secure login form?
- Replies: 3
- Views: 174
Re: How to create a secure login form?
Could you post the code you've written and explain specifically what problems you have?
- Sat Nov 07, 2009 9:34 pm
- Forum: Javascript
- Topic: newbie: isNaN
- Replies: 1
- Views: 487
newbie: isNaN
hello, basically what I want is to have a while loop that will prompt the user continuously until he/she inputs a number. I entered some test data and found that if I put for example '1a' it will except it. thank you in advance Briefly: I prompt for a value check to see if value is only two digits l...
- Sat Nov 07, 2009 12:19 am
- Forum: Javascript
- Topic: newbie: logical 'or'
- Replies: 5
- Views: 479
Re: newbie: logical 'or'
thank you, I'll look into it :)
- Fri Nov 06, 2009 4:26 am
- Forum: Javascript
- Topic: newbie: logical 'or'
- Replies: 5
- Views: 479
Re: newbie: logical 'or'
thank you thank you
I feel so dumb now
I feel so dumb now
- Thu Nov 05, 2009 7:09 pm
- Forum: Javascript
- Topic: newbie: logical 'or'
- Replies: 5
- Views: 479
newbie: logical 'or'
hello, my while loop runs forever and I can't seem to solve the problem. I think the problem is with my while condition. Just need someone to take a look and see what is wrong. thanks in advance :) var operator, num1, num2, answer;num1 = parseFloat(prompt("enter number 1", ""));...
- Thu Sep 24, 2009 11:47 pm
- Forum: PHP - Code
- Topic: Beginner: Separating a string into words
- Replies: 4
- Views: 279
Re: Beginner: Separating a string into words
@Eric!
I implemented the strtok() into my code but found that i needed the split to be made after the name of the country and name.
At the moment the script is splitting the string at every ' '(space).
I implemented the strtok() into my code but found that i needed the split to be made after the name of the country and name.
At the moment the script is splitting the string at every ' '(space).
- Tue Sep 22, 2009 9:03 pm
- Forum: PHP - Code
- Topic: newbie str_replace question
- Replies: 25
- Views: 1370
Re: newbie str_replace question
yep substr() worked a treat
- Tue Sep 22, 2009 8:08 am
- Forum: PHP - Code
- Topic: Beginner: Separating a string into words
- Replies: 4
- Views: 279
Beginner: Separating a string into words
Basically I have a text file in a similar format like below: Country Name Age ----------------------------------------- Italy Joe Hill 39 China Xiao Lin 27 What I'd like to do is to be able to read a line and write it to another text file with an added marker after each field so I could use the expl...
- Sun Sep 20, 2009 10:39 am
- Forum: PHP - Code
- Topic: newbie str_replace question
- Replies: 25
- Views: 1370
Re: newbie str_replace question
Sorry didn't reply earlier.
Just like to thank everyone for their input and to tell you I got it working.
Just like to thank everyone for their input and to tell you I got it working.
- Wed Sep 16, 2009 9:23 am
- Forum: PHP - Code
- Topic: newbie str_replace question
- Replies: 25
- Views: 1370
newbie str_replace question
Briefly what I want my code to do: Read in the text file Explode each line of text into 3 different arrays For example one line of the text file would be 'Name Company Price' I'd like to store the price into an array as a number but it would store the $ symbol as well I tried using the str_replace b...