• Member Avatar for Gideon_1
    Gideon_1

    Replied To a Post in PHP Notice: Undefined variable: email_message

    @tobyITguy, I agree with pritaeas. There was no string represent `$email_message` so the first one must not be concatenated.
  • Member Avatar for Gideon_1
    Gideon_1

    Replied To a Post in PHP login error

    > $q = "SELECT user_id, fname, user_level FROM members WHERE (email='$e' AND psword=SHA1('$p'))"; Why don't you hash psword separately and try again. so `$psword = SHA1($p);` before `$q = "SELECT …
  • Member Avatar for Gideon_1
    Gideon_1

    Began Watching PHP login error

    Hi everyone! I know this problem has already been discussed but I use MYSQLI so I have different issue here. My problem is: I have coded a login page (my …
  • Member Avatar for Gideon_1
    Gideon_1

    Replied To a Post in PHP login error

    What is the real error you are having? and If not a real error echo your sessions out and see whether they are working.
  • Member Avatar for Gideon_1
    Gideon_1

    Replied To a Post in PDO database select not returning expected data

    Maybe you are reharshing the password from the database. Can you show the codes performing the hashing and verification.
  • Member Avatar for Gideon_1
    Gideon_1

    Began Watching PDO database select not returning expected data

    I have the following $subUsername = trim($_POST["user"]); $sql = "SELECT userID, username, password FROM user WHERE username = ':user')"; $q = $conn->prepare($sql); $q->bindParam(':user', $subUsername); $q->execute(); $result = $q->fetch(PDO::FETCHASSOC); print_r($result); echo …
  • Member Avatar for Gideon_1
    Gideon_1

    Replied To a Post in PDO database select not returning expected data

    Try this Mike. $subUsername = trim($_POST["user"]); $sql = "SELECT userID, username, password FROM user WHERE username = :user"; $q = $conn->prepare($sql); $q->bindParam(':user', $subUsername); $q->execute(); $result = $q->fetchAll(PDO::FETCH_ASSOC); print_r($result); echo "</p>"; …
  • Member Avatar for Gideon_1
    Gideon_1

    Began Watching Cannot update database

    I am trying to update data but i get this error. `Uncaught exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL …
  • Member Avatar for Gideon_1
    Gideon_1

    Replied To a Post in Cannot update database

    Yes I agree with pritaeas, using mysql keywords as raw text renders your sql statement invalid. For my personal preference I usually like using column names nested in back ticks. …
  • Member Avatar for Gideon_1
    Gideon_1

    Replied To a Post in Need PHP code

    You are welcome, but don't forget to mark it as solved.
  • Member Avatar for Gideon_1
    Gideon_1

    Replied To a Post in Uploading File not processing like if on server

    You are welcome, don't forget to mark discussion as solved.
  • Member Avatar for Gideon_1
    Gideon_1

    Began Watching Need PHP code

    how to split numbers in php?i need a PHP code for this input.if the input is 143,i need output as **8**(tat is sum of 143{1+4+3})
  • Member Avatar for Gideon_1
    Gideon_1

    Replied To a Post in Need PHP code

    I agree perfectly with pritaeas. I will advice you to go and learn the basis of php and programming. But since you are a beginner, I thought of refreshing myself …
  • Member Avatar for Gideon_1
    Gideon_1

    Gave Reputation to pritaeas in Page doesn't get updated - ajax/php

    > onclick='userrequest(Test One)' If you pass a string as parameter, it needs to be in quotes, e.g.: onclick="userrequest('Test One')" So try changing to: echo "<tr><td>$name</td><td>$username</td><td>$number</td><td><a href='#' value='$name' class='request' onclick='request(\"".$name."\")'>$status</a></td></tr>";
  • Member Avatar for Gideon_1
    Gideon_1

    Began Watching Page doesn't get updated - ajax/php

    Hi. Im trying to update a page with a form using AJAX but it isn't working. Nothing happens. I have a table and one of the columns has an anchor …
  • Member Avatar for Gideon_1
    Gideon_1

    Replied To a Post in Page doesn't get updated - ajax/php

    In your question you said, `in the console this appears : Uncaught SyntaxError: missing ) after argument list page.php:64`, but the codes you have posted ends on line 52. Can …
  • Member Avatar for Gideon_1
    Gideon_1

    Began Watching linked drop down list with ajax

    Hi, first, sorry for my english i am not good at all, I am trying to create a form that contains two drop-down lists , the first is related to …
  • Member Avatar for Gideon_1
    Gideon_1

    Replied To a Post in linked drop down list with ajax

    @Trabelsi, I should not be talking for everyone but it seems you have not specified the exact problem you are having. Please specify the exact difficulty you are having. It's …
  • Member Avatar for Gideon_1
    Gideon_1

    Replied To a Post in Uploading File not processing like if on server

    I think you have an issue with the uploads. try changing this `$csvFile1 = $_FILES["file1"];` to `$csvFile1 = $_FILES["file1"]["tmp_name"];`
  • Member Avatar for Gideon_1
    Gideon_1

    Began Watching Uploading File not processing like if on server

    I need to process a CSV file and create a new CSV file. In order to get a proof of concept, I placed the CSV on the server and was …
  • Member Avatar for Gideon_1
    Gideon_1

    Replied To a Post in Uploading File not processing like if on server

    Justin_14, this is a setting in php.ini file. If you have controll of the php.ini file, change memory limit form 64M or 32M to 128M(Maximum Limit). If not try overriding …
  • Member Avatar for Gideon_1
    Gideon_1

    Marked Solved Status for Frameworks Vs No Frameworks

    Hello everyone, it seems that most often many projects or let me say jobs requires PHP frameworks. But I have not used a framework before and I love coding in …
  • Member Avatar for Gideon_1
    Gideon_1

    Replied To a Post in Frameworks Vs No Frameworks

    Thanks diafol and pritaes.
  • Member Avatar for Gideon_1
    Gideon_1

    Replied To a Post in Frameworks Vs No Frameworks

    thanks pritaeas, but thinking of what diafol said, its true though. Many job requirements include at least one php framework. So how can i study all these frameworks or is …
  • Member Avatar for Gideon_1
    Gideon_1

    Replied To a Post in Frameworks Vs No Frameworks

    Thanks diafol, but can i create my own framework.
  • Member Avatar for Gideon_1
    Gideon_1

    Created Frameworks Vs No Frameworks

    Hello everyone, it seems that most often many projects or let me say jobs requires PHP frameworks. But I have not used a framework before and I love coding in …
  • Member Avatar for Gideon_1
    Gideon_1

    Began Watching Frameworks Vs No Frameworks

    Hello everyone, it seems that most often many projects or let me say jobs requires PHP frameworks. But I have not used a framework before and I love coding in …
  • Member Avatar for Gideon_1
    Gideon_1

    Replied To a Post in registration form error

    I think the <<<abc abc in the $str is causing the error. Please use this `$str = "Account is created click on the activation link <a href=\"http://abc.com/active.php?$link\">Click</a>";`
  • Member Avatar for Gideon_1
    Gideon_1

    Began Watching How to filter data from a MySQL Database Table with PHP

    I am trying to code a search box that will search though a column in my database. If the search matches the column then that record will be printed in …
  • Member Avatar for Gideon_1
    Gideon_1

    Replied To a Post in How to filter data from a MySQL Database Table with PHP

    @jollydd, you sql is not working because you are running php codes in it. Follow pritaes tutorial and run that sql in phpMyadmin. By the way mysql is deprecated try …
  • Member Avatar for Gideon_1
    Gideon_1

    Began Watching registration form error

    while executing the below program i am getting the error "Parse error: syntax error, unexpected '<<' (T_SL) in C:\xampp\htdocs\registration.php on line 5" . can i get some help ?? <?php …
  • Member Avatar for Gideon_1
    Gideon_1

    Replied To a Post in registration form error

    Please mysql is deprecated, try to get used to mysqli or PDO.
  • Member Avatar for Gideon_1
    Gideon_1

    Replied To a Post in Retain the field values after refreshing

    Any idea of?
  • Member Avatar for Gideon_1
    Gideon_1

    Gave Reputation to diafol in Retain the field values after refreshing

    @Gideon_1: He says he's using jQuery
  • Member Avatar for Gideon_1
    Gideon_1

    Replied To a Post in how to pass php array parameter into js function where i want its id to

    Eish sorry was an error.
  • Member Avatar for Gideon_1
    Gideon_1

    Began Watching how to pass php array parameter into js function where i want its id to

    I want to pass array value directly into the js fucntion which in loop and wanted to retrieve its query string id of selected employee here is code as i …
  • Member Avatar for Gideon_1
    Gideon_1

    Replied To a Post in how to pass php array parameter into js function where i want its id to

    I want to ask if you are passing only one specific value? **If YES** As ryantroop was saying your js function must accept a parameter or an argument. Your PHP …
  • Member Avatar for Gideon_1
    Gideon_1

    Began Watching How to Improve Test Program on Classes?

    I want to increase my knowledge of PHP by learning about classes. I wrote the following very simple test program. It works. But I would like to know improve it. …
  • Member Avatar for Gideon_1
    Gideon_1

    Replied To a Post in How to Improve Test Program on Classes?

    I totally agree with jkon, OOP is OOP in your style. But there are a few things you should also know which will help in your life of programming. This …
  • Member Avatar for Gideon_1
    Gideon_1

    Began Watching Retain the field values after refreshing

    Hi, In a form, I have 4 select boxes(default), and two text boxes(default). If I click the first (static values) based on that next second(new) select box will come (it …
  • Member Avatar for Gideon_1
    Gideon_1

    Replied To a Post in Retain the field values after refreshing

    I also agree on the ajax concept but let me throw light on this point. You can change the input type="submit" to input type="button" and give the form no action …
  • Member Avatar for Gideon_1
    Gideon_1

    Began Watching Database insert query not working

    Hello Experts, I hate PHP when these things comes in front of me every time when i create and insert query I stuck up by viewing everything is ok but …
  • Member Avatar for Gideon_1
    Gideon_1

    Replied To a Post in Database insert query not working

    Yes, I agree with pritaes, when executing sql in phpmyadmin and when there is an error it shows the place where the error is occuring. Example #1064 - You have …
  • Member Avatar for Gideon_1
    Gideon_1

    Replied To a Post in Generate PDF invoice PHP Mysql

    @ribrahim include the invoice->additem in the foreach or while loop
  • Member Avatar for Gideon_1
    Gideon_1

    Began Watching Generate PDF invoice PHP Mysql

    Hello, I'm using fpdf library to generate pdf invoice. I manage to view the pdf invoice for one item row only. below is the code: $qry = "SELECT invitems.itemId, invitems.invoiceId, …
  • Member Avatar for Gideon_1
    Gideon_1

    Replied To a Post in Generate PDF invoice PHP Mysql

    @ribrahim, your codes are correct is just that you must include the results in a foreach statement. So here goes the codes; while ( $rows = mysqli_fetch_assoc($result)){ $description = $rows['ChargesTitle']; …
  • Member Avatar for Gideon_1
    Gideon_1

    Replied To a Post in email

    To send a mail with attachment, I will recommend the use of PHPMailer which is more simple and easier to configure than using the default mail function.
  • Member Avatar for Gideon_1
    Gideon_1

    Gave Reputation to bnmng in PHP if statement

    Hi. I shouldn't speak for everyone but I think the reason this has lingered so long is people don't understand what you mean by changing the code. Do you want …
  • Member Avatar for Gideon_1
    Gideon_1

    Began Watching email

    i want to send email with attachment so please help me
  • Member Avatar for Gideon_1
    Gideon_1

    Replied To a Post in email

    Can you show us the codes you have so far.

The End.