Jump to content

crf121359

New Members
  • Posts

    7
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

crf121359's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Yes, I know how to enter data and read data from a database. I just don't understand what timstamp is and how to store it and then read it etc!?
  2. As much as I appreciate your reply but I didn't understand how its done to be honest. any chance you could show me an example code? something simple for my newbie brain? cheers
  3. Hi, I am new to PHP world!! I am just trying to find a way to disable a button after its been clicked for lets say 5 minutes. I have searched google and haven't found what I am looking for. I just dont want the users to be able to refresh the page and the button becomes enabled again. any code examples with explanation or a simple tutorial will be much appreciated. Thanks
  4. Hello, its a bit difficult to explain the issue that I have but I will try my best. I have this small code $message = $_POST['message1']; in my php code and message1 is the name of a textarea in my page. i also have another textarea called message2 in my page. what I need to do is to use the message1 and message2 in the $message = $_POST function. For example: $message = $_POST['message1'] + $_POST['message2'] or anything that is acceptable in PHP coding and works in PHP. I hope I havent confused you guys and you undersstood what I mean... Thanks
  5. OMG smerny, You are my God... you don't know how long I've been trying to resolve this issue!! Thank you sooooo much. works like a charm now. Now, just to pick your brains again, can you tell me how I can show the texts randomly? for example I have 10 columns in my mysql table with different texts in each of them. how can i randomly show the contents of each columns in the same textarea?
  6. Hello, I am trying to display the texts that is stored in mysql in a textarea on a random basis. here is my code: <?php mysql_connect("localhost", "myusername", "mypass") or die("Connection Failed"); mysql_select_db("mydatabase")or die("Connection Failed"); $query1 = ("SELECT name FROM advertising"); $result1 = @mysql_query ($query1) or die (mysql_error()); $data = mysql_fetch_assoc($result1); while($row = mysql_fetch_array($query)){ $name = $row["name"]; } but when I run the above code I get this error and also the textarea doesn't show anything and its blank: Warning: mysql_fetch_array() expects parameter 1 to be resource, null given in /home/path.../public_html/display.php on line 9 could someone please help me? Thanks
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.