Hi All,
How do i define the number_format function to display the currency. it is showing dollars, and i want pounds
thanks
User Profile
Collapse
-
PHP number_format function
-
view singular, not multiple records
I want to change the following piece of code to only show the actual user who is logged in, and not let them see other peoples information.
What can i do. Im totally baffled.
Could the answer please include line numbers.
thank y ou so much for you help
...Code:<?php //connect to database $mysqli = mysqli_connect("localhost", "geothermal", -
i have email in tbl_email and the password in tbl_master_name .
The mysql statement should work as:
SELECT email, password FROM tbl_email, tbl_master_name
WHERE email='$email;
If you look on line 16, you will find the error message i am recieving, which im sure is whre the problem is -
forget password coding issue
Hi All,
The following script works when username(or email) and password are in 1 table. what i need to know is how to adjust the code to reflect that the email will be held in tbl_email and the password will be held in tbl_master_name .
...Code:<?php include ("conn.inc.php"); $username=$_POST["username"]; $res=mysql_query("SELECT username, email -
aha, found it.
So the message actually means that your mysql column count doesnt match the number of values it has to insert into dbLeave a comment:
-
Column count doesn't match value count at row 1
this code is producing the message BUT it is entering the data. What should i do?
...Code:<?php if (!$_POST) { //haven't seen the form, so show it $display_block = " <form method=\"post\" action=\"".$_SERVER["PHP_SELF"]."\"> <p><strong>First/Last Names:</strong><br/> <input type=\"text\" -
thats such a shame as its a really nice simple little effect.
could i embed the javascript within the php?
do you have such a script? :-)Leave a comment:
-
set focus within a php form
hi,
if i have a form within a php script which looks something like
<input type=\"text\" name =\"title\" size=\"5\" maxlength=\"6\" >
how can i have the cursor automatically flashing in the text box?
Please be aware that this is within php tags.
Thanks
Paul -
Access denied for user 'user'@'localhost' (using password: YES)
hi all,
is there any other reason for this message to be displayed? other than incorrect username, password, database name? -
500 internal server error
Hi all,
The below code should be allowing me to modify entries which i choose from the script before hand, however it give the 500 error code.
it generates ......
http://tramp-space.co.uk/edittest/te...hp?master_id=1
where 1 is the record number (which exists)
Im baffled. can anybody help me please?
... -
Hi,
That is no problem at all, i wouldnt expect it to be done for me.
The first piece of code simply is for registering an account
the second piece of code checks everything is ok with what has been entered before submitting. When i run it, it just writes the code to the screen. No issues with first piece as it is posting fineLeave a comment:
-
user authentication with SESSION and FORGOT PASSWORD script
Can anybody supply me with a script the does what is in the title above please?
I have tried so many different methods!
here is what im currently trying to get to work
SIGN IN
[code=html]
<!doctype html public "-//w3c//dtd html 3.2//en">
<html>
<head>
<body bgcolor="#fffff f" text="#000000"... -
Why Wont My Session End
I have a number of files for user authentication
The problem starts when i log in, then try and logout, then go back to enter another username.
It keep going to the "already logged in" page. Even though i have used the destroy session function
any ideas? -
i noticed a " was missing after the "n" on line two, but still no joyLeave a comment:
-
What is wrong with this piece of code?
[code=php]<?php
echo "<table style=\ "border: 1px solid black;\">\n;
for ($y=1; $y<=12; $y++) {
echo "<tr> \n";
for ($x=1; $x<=12; $x++) {
echo "<td style =\ "border: 1px solid black; width: 25px; padding: 4px;
text-align:center;\" >";
echo ($x * $y);
echo "</td> \n";
}
echo... -
-
Hotmail Picture Attachment Problems
On my pc at home when i send a picture i just attach it and send. The reciever opens the email with the files visible, but not open.
On my friends pc, if he does the same, the pictures are opened and embedded into the body of the email.
How can i change his settings to match mine??
No activity results to display
Show More
Leave a comment: