Jump to content

simpson_121919

Members
  • Posts

    30
  • Joined

  • Last visited

Profile Information

  • Gender
    Not Telling

simpson_121919's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. I have a alphabet link list that is inline, this list consists of all the 26 letters of the alphabet. I don't want spaces in between each character. The problem is that when I use carriage returns in my code(so that it is readable and not one long line) I get spaces in between the letters in my alphabet link list. Not sure how to fix this, any help would awesome, thanks.
  2. That was it, I looked at that code for awhile and did not see that. I think I have been at this too long and need to give my eyes a rest. Thank you for the advice and help.
  3. I am trying to use a SELECT count(*) to check if a given record exists but its not working and always returns FALSE. I am stumped. At the very least I would think it would return 0. I have checked the SELECT statement in myphpAdmn to make sure that was not the issue. Here is my code - $Qchoice = "SELECT count(*) FROM collect_temp_table WHERE user_ID=:userID AND gID=:gID AND rID=:rid"; $QchoicePreped = $dbh->prepare($Qchoice); $QchoicePreped->bindParam(':userID',$userID,PDO::PARAM_STR,75); $QchoicePreped->bindParam(':gID',$gID,PDO::PARAM_STR,; $QchoicePreped->bindParam(':rID',$rID,PDO::PARAM_STR,3); $QchoicePreped->execute(); $QchoiceResult = $QchoicePreped->fetch(PDO::FETCH_NUM); Any help would be appreciated, thanks.
  4. Thank you very much, that solved my problem. I never thought to "textarea[<?php echo $databaseId; ?>]" This makes my textarea identifiable because I know where in the array it will be stored. Thanks again.
  5. I have a web application that has about 700 rows, each rows has a html textarea for the user to add personal notes. I would like to pass text of some sort along with what the user typed typed into the textarea box. I want it to be hidden from the user. Any ideas? Any help would be appreciated, I've been stuck on this one for awhile. Thanks
  6. Thanks that did the job. I had spelled my database table name wrong. I think Im going to realy like those functions. Thanks again I really appreciate it.
  7. Here is the code I have been using - <?php $first_name = $_POST['firstname']; $last_name = $_POST['lastname']; $when_it_happened = $_POST['whenithappened']; $how_long = $_POST['howlong']; $how_many = $_POST['howmany']; $alien_description = $_POST['aliendescription']; $what_they_did = $_POST['whattheydid']; $fang_spotted = $_POST['fangspotted']; $email = $_POST['email']; $other = $_POST['other']; $dbc = mysqli_connect('localhost', 'root', 'x', 'aliendatabase') or die('Error connecting to MySQL server.'); $query = "INSERT INTO aliens_abduction (first_name, last_name, when_it_happened, how_long, " . "how_many, alien_description, what_they_did, fang_spotted, other, email) " . "VALUES ('$first_name', '$last_name', '$when_it_happened', '$how_long', '$how_many', " . "'$alien_description', '$what_they_did', '$fang_spotted', '$other', '$email')"; $result = mysqli_query($dbc, $query) or die('Error querying database.'); mysqli_close($dbc); echo 'Thanks for submitting the form.<br />'; echo 'You were abducted ' . $when_it_happened; echo ' and were gone for ' . $how_long . '<br />'; echo 'Number of aliens: ' . $how_many . '<br />'; echo 'Describe them: ' . $alien_description . '<br />'; echo 'The aliens did this: ' . $what_they_did . '<br />'; echo 'Was Fang there? ' . $fang_spotted . '<br />'; echo 'Other comments: ' . $other . '<br />'; echo 'Your email address is ' . $email; ?> I keep getting the die function read out 'Error querying database' I'm wondering if Im using the right username. How do I check to make sure I have the right username.
  8. I have been trying to insert data into my database thru php script with no luck. I think its has to do with not being able access my database. My question is when I use MySQL command client and enter the password and get mysql> does that mean I can use that password to access my databases as long as I point to the correct database with the mysqli_connect function. I dont think I fully understand how this works. I have everything stored on my local computer and I use "localhost" in mysqli_connect function.
  9. Xampp isnt compatible with 64 bit systems. If you have a 64 bit system you should look at Wamp. It has 64 bit support. I will be downloading and installing Wamp soon myself.
  10. Ok thats what I thought, Maq had me second guessing myself. It looks like it might be a windows security issue. I'll have to look into that. Thanks for the help.
  11. I'm glad you brought that up because one of the many tutorials that I have gone thru brought that up and I made sure to do what was necessary. It is saved as php.ini Does this file need to be in C:/windows
  12. I was looking at a old tutorial and noticed that they had you edit a php.ini file that you were to put in c:\windows . Is this required on the newer versions of PHP. I'm using 5.3.5.
  13. Thanks, I checked that and it is C:\PHP\php.ini which is the filel I've been editing. I'm beginning to think it has to do with windows 7 and security issues. I guess I will have to stick with the Command Client for now. Other than the phpmyadmin being a graphical interface for easier use is there other advantages in using phpmyadmin? Also this might be tied into my problem. When I download MySQL and I get to the password part of the wizard I have to enter three passwords. The old one, the new one and the new one again to confirm. Apparently my old password is in the system from the first time I installed MySQL. I made all three passwords the same. I used Ccleaner which usually uninstalls everything so I'm not sure about this password thing.
  14. i dont have a php.ini in my bin file. I will look into this and make sure I am editing the correct php.ini file
×
×
  • 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.