Robert Cummings wrote:
On Thu, 2005-08-25 at 15:18, George B wrote:
Robert Cummings wrote:
On Thu, 2005-08-25 at 00:19, George B wrote:
Robert Cummings wrote:
On Thu, 2005-08-25 at 00:10, George B wrote:
Ok, I am doing a sort of a project right now... It is like a php chat
room
Łukasz 'nostra' Wojciechowski wrote:
W odpowiedzi na maila (21:21 - 25 sierpnia 2005):
I have written a shoutbox, and it works great, but I am wondering...
When a user posts a shout it goes below the first shout. Like the
auto_increment puts the ID up higher. I need it to go about the first
Jordan Miller wrote:
if you are using mysql, just put the "DESC" (descending) directive at
the end of your sql statement (default is no "DESC" directive, meaning
ascending). most recent records will be returned first.
Jordan
On Aug 25, 2005, at 2:21 PM, George B wrot
I have written a shoutbox, and it works great, but I am wondering...
When a user posts a shout it goes below the first shout. Like the
auto_increment puts the ID up higher. I need it to go about the first
shout, so like the auto_increment would invert. Someone told me this is
possible through P
Robert Cummings wrote:
On Thu, 2005-08-25 at 00:19, George B wrote:
Robert Cummings wrote:
On Thu, 2005-08-25 at 00:10, George B wrote:
Ok, I am doing a sort of a project right now... It is like a php chat
room that records every message into a database. Now, on the first post
I want it
Robert Cummings wrote:
On Thu, 2005-08-25 at 00:10, George B wrote:
Ok, I am doing a sort of a project right now... It is like a php chat
room that records every message into a database. Now, on the first post
I want it to like set the name, so on first post it would say Name: and
you set
Ok, I am doing a sort of a project right now... It is like a php chat
room that records every message into a database. Now, on the first post
I want it to like set the name, so on first post it would say Name: and
you set your name, then on every other message you post it just says
Posted by an
Column count doesn't match value count at row 1
What does that mean? I have an id auto_increment and it breaks everytime
because of that error. This has never happend before...
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Richard Lynch wrote:
On Tue, August 23, 2005 3:52 pm, George B wrote:
You know on forums when you make a topic right away it makes like a
new
link to your topic. How do you do that in PHP?
$_POST[new_topic]";
}
?>
http://php.net/mysql_insert_id
is probably the piece of the pu
Jasper Bryant-Greene wrote:
George B wrote:
Jasper Bryant-Greene wrote:
George B wrote:
I made a script that posts data into a database but it has a problem
whenever I enter a ' or a ". How do I bypass this problem?
If it is MySQL, use mysql_real_escape_string() [1]. If
Jasper Bryant-Greene wrote:
George B wrote:
I made a script that posts data into a database but it has a problem
whenever I enter a ' or a ". How do I bypass this problem?
If it is MySQL, use mysql_real_escape_string() [1]. If any other
database, have a look in the PHP manual [
I made a script that posts data into a database but it has a problem
whenever I enter a ' or a ". How do I bypass this problem?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
You know on forums when you make a topic right away it makes like a new
link to your topic. How do you do that in PHP?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
(I had to code a webmail application
once and I found a few free MTA servers, so I believe you'll be able
to do that to without breaking a swet :)
Good luck with your project!
On 8/17/05, George B <[EMAIL PROTECTED]> wrote:
Shaw, Chris - Accenture wrote:
yeah I can send to the
Shaw, Chris - Accenture wrote:
yeah I can send to the SMTP server of my ISP, but no where else.
If you can send to the smtp server then your ISP should deliver the email.
If you have not filled in the sendmail_from var in the php.ini correctly,
they cannot send back a mail saying there was a
Shaw, Chris - Accenture wrote:
Can you send to a smtp server provided by your isp?
-Original Message-
From: George B [mailto:[EMAIL PROTECTED]
Sent: 17 August 2005 18:11
To: php-general@lists.php.net
Subject: Re: [PHP] mail()
*
This e-mail has been
John Nichel wrote:
Jordan Miller wrote:
Did you install sendmail?
No sendmail for Windows. He either has to have a Microsoft MTA running
on localhost, or use an upstream SMTP account.
There is no "Microsoft MTA", I searched google couldnt find anything.
so.
Anyway, im screwed and I cant
André Medeiros wrote:
Do you have a mail server running?
No, how do I get a mail server running? And does it allow me to receive
e-mails, or only send?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
John Nichel wrote:
George B wrote:
Warning: mail() [function.mail]: Failed to connect to mailserver at
"localhost" port 25, verify your "SMTP" and "smtp_port" setting in
php.ini or use ini_set()
I checked php.ini and everything is open
[mail function]
; Fo
Warning: mail() [function.mail]: Failed to connect to mailserver at
"localhost" port 25, verify your "SMTP" and "smtp_port" setting in
php.ini or use ini_set()
I checked php.ini and everything is open
[mail function]
; For Win32 only.
SMTP = localhost
smtp_port = 25
; For Win32 only.
sendmail
George B wrote:
I made a left frame, then made the three pages, and all the frames show
fine. But this is not my problem! I made a "leftpane" which has code to
check if user exists (its for a login script). In the code for the login
FORM I set it to go directly to the "userpane&
I made a left frame, then made the three pages, and all the frames show
fine. But this is not my problem! I made a "leftpane" which has code to
check if user exists (its for a login script). In the code for the login
FORM I set it to go directly to the "userpane" file. It works fine! It
recogni
I am coding a message board. I am about done. I have all the forms
needed for the message. So it all works out. The user types in his name,
message title, and the message itself. Then clicks submit. The Submit
button takes him to the message check. The message check shows all the
stuff the use
Jay Blanchard wrote:
[snip]
Yeah I am using "root" which has all permissions
[/snip]
Are you sure? Did you specifically GRANT ALL to root? When you did, did
you flush the permissions? BTW, using root is a Bad Idead[tm].
[/snip]
Also, check the mysql error log
Thanks for all the help guys. It
Jay Blanchard wrote:
[snip]
Yeah I am using "root" which has all permissions
[/snip]
Are you sure? Did you specifically GRANT ALL to root? When you did, did
you flush the permissions? BTW, using root is a Bad Idead[tm].
[/snip]
Also, check the mysql error log
Never mind guys! I got it working!
Jay Blanchard wrote:
[snip]
It does not seem to be putting anything into the DB. Gives no errors,
but I check PHP My Admin, and there is nothing in the users and
passwords field. I think something isnt working hmmm
[/snip]
There is a brilliant statement if there ever was one! ROFLMMFAO!
Jim Moseby wrote:
[snip]
$query = "INSERT INTO user (name,password) VALUES
("'.$username.'","'.$password.'") ";
Try that... should work. your query syntax is mangled.
Backwards on your quotes Jay. Go home and get some sleep. ;)
[/snip]
Damn these corporate mergers!
Corrected query
$quer
Jay Blanchard wrote:
[snip]
$query = "INSERT INTO user (name,password) VALUES
($username","$password")
would do the job but, it dosent. It gives a
Parse error: syntax error, unexpected T_VARIABLE in C:\Program
Files\Apache Group\Apache2\htdocs\php\login\registration_action.php on
line 15
[/s
Ok, I got this far.
include("config.php");
$username = $_GET['name'];
$password = $_GET['pword'];
echo "Username = " . $username . "";
echo "Password = " . $password . "";
$query = "INSERT INTO user (name,password) VALUES ($username","$password")
$result = mysql_query($query)
config is just all
Jay Blanchard wrote:
[snip]
$money -= 10;
saves some chars ;)
[/snip]
This actually requires two trips to the database, once to get $money and
once to update $money. Do it in the query instead...once.
$sqlUpdate = "UPDATE `myDatabase`.`myTable` SET `myMoney` =
(`myMoney`-10) WHERE `myChara
George B wrote:
How is this possibly not working?
$money = $_GET ['money'];
$money = $money -3
echo $money;
oops nvm i forgot the ; on like 2 :D
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
How is this possibly not working?
$money = $_GET ['money'];
$money = $money -3
echo $money;
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Paul Waring wrote:
On Tue, Jul 19, 2005 at 09:50:06AM -0700, George B wrote:
My money is being stored in a database. And I want everythign to be in
PHP, no java script. And the BUY!! Button is a input button from a form. :)
Well in that case you probably want something like this (after
Paul Waring wrote:
On Tue, Jul 19, 2005 at 09:39:21AM -0700, George B wrote:
And I have 100 points. How would I make it so when I click BUY!!
My money automaticaly subtracts from 100 to 90. How do I do that?
Where is your money being stored? In a database? A text file? A cookie?
Do you want
Shaw, Chris - Accenture wrote:
Taxi for one..
-Original Message-
From: George B [mailto:[EMAIL PROTECTED]
Sent: 19 July 2005 17:39
To: php-general@lists.php.net
Subject: [PHP] My Project
Hey guys! This is gona be one of my last questions (hopefully) But here
I will include all the
Hey guys! This is gona be one of my last questions (hopefully) But here
I will include all the info about my new project.
It is going to be like a RPG Game written in PHP. There is going to be a
store where you could buy weapons etc... The thing I want to ask you
guys is this. Lets say There is
Jochem Maas wrote:
John Nichel wrote:
George B wrote:
http://us2.php.net/manual/en/index.php
:-) anyone care for a php mysql extension:
mysql_do_xml_http_request_bound_richdatagrid([string] query);
george if you want to keep asking questions on NRBS**
then you'll need to change
Hey guys how would i show a filed from a MySQL database in a php file?
Isnt it this?
SELECT * FROM `user`
But that dosent work because it comes out blank :-\
And I already am connected to the database
Code:
mysql_connect ('localhost','myaccount','mypass')
or die ("could not connect to ser
Jim Moseby wrote:
I am trying to connect to a datbase:
"
mysql_select_db ('database')
or die ("couldnt connect to databse")
"
What is wrong here?
This is the error:
Parse error: syntax error, unexpected T_STRING in file name on line 12
--
PHP General Mailing List (http://www.php.net/)
George B wrote:
I am trying to connect to a datbase:
"
mysql_select_db ('database')
or die ("couldnt connect to databse")
"
What is wrong here?
This is the error:
Parse error: syntax error, unexpected T_STRING in file name on line 12
this code works though
I am trying to connect to a datbase:
"
mysql_select_db ('database')
or die ("couldnt connect to databse")
"
What is wrong here?
This is the error:
Parse error: syntax error, unexpected T_STRING in file name on line 12
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, vis
Lets say I have a form. And when user types in the form and clicks go,
it shows output.
but.
lets say the person type in
monday
But I want the php code to change it too
MONDAY
how do I do that?
Thanks!
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/un
Matthew Weier O'Phinney wrote:
* Jasper Bryant-Greene <[EMAIL PROTECTED]> :
George B wrote:
is it possible to put in a jpg file into a database? I am trying to make
like a catalong and have all the files (including pics) and everyone can
see.
is this possible?
Sure -- if you
Ethilien wrote:
I think that would require tapping the cellphone network, which I doubt
they would let you do since it be a major violation of privacy, because
you could track the general location of anyone on their network.
Thomas wrote:
Hi there,
I was wondering if anybody has attempte
is it possible to put in a jpg file into a database? I am trying to make
like a catalong and have all the files (including pics) and everyone can
see.
is this possible?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
45 matches
Mail list logo