User Profile

Collapse

Profile Sidebar

Collapse
whitey
whitey
Last Activity: Mar 1 '08, 03:55 PM
Joined: Sep 11 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • whitey
    started a topic PHP number_format function
    in PHP

    PHP number_format function

    Hi All,

    How do i define the number_format function to display the currency. it is showing dollars, and i want pounds

    thanks
    See more | Go to post

  • whitey
    started a topic view singular, not multiple records
    in PHP

    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",
    ...
    See more | Go to post

  • whitey
    replied to forget password coding issue
    in PHP
    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
    See more | Go to post

    Leave a comment:


  • whitey
    started a topic forget password coding issue
    in PHP

    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
    ...
    See more | Go to post

  • whitey
    replied to Column count doesn't match value count at row 1
    in PHP
    aha, found it.

    So the message actually means that your mysql column count doesnt match the number of values it has to insert into db
    See more | Go to post

    Leave a comment:


  • whitey
    started a topic Column count doesn't match value count at row 1
    in PHP

    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\"
    ...
    See more | Go to post

  • whitey
    replied to set focus within a php form
    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? :-)
    See more | Go to post

    Leave a comment:


  • whitey
    started a topic set focus within a php form

    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
    See more | Go to post

  • 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?
    See more | Go to post

  • whitey
    started a topic 500 internal server error
    in PHP

    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?



    ...
    See more | Go to post
    Last edited by Atli; Nov 16 '07, 12:15 AM. Reason: Changed [code] tags to [code=php].

  • 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 fine
    See more | Go to post

    Leave 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"...
    See more | Go to post
    Last edited by Atli; Nov 12 '07, 12:21 PM. Reason: Changed [code] tags to [code=php].

  • whitey
    started a topic Why Wont My Session End
    in PHP

    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?
    See more | Go to post

  • whitey
    replied to What is wrong with this piece of code?
    in PHP
    i noticed a " was missing after the "n" on line two, but still no joy
    See more | Go to post

    Leave a comment:


  • whitey
    started a topic What is wrong with this piece of code?
    in PHP

    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...
    See more | Go to post
    Last edited by pbmods; Sep 14 '07, 12:53 PM. Reason: Added CODE tags.

  • whitey
    replied to Hotmail Picture Attachment Problems
    we both use hotmail live
    See more | Go to post

    Leave a comment:


  • whitey
    started a topic Hotmail Picture Attachment Problems

    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??
    See more | Go to post
No activity results to display
Show More
Working...