• Member Avatar for Gideon_1
    Gideon_1

    Replied To a Post in How would I go about building a small basic music search engine using php a

    Yh, I will contribute to diafol's contribution. One thing you must keep in mind that storing music tracks directly in the database is a bad practice. This can slow down …
  • Member Avatar for Gideon_1
    Gideon_1

    Began Watching join tables

    Hello, I have a little problem , I am currently developing an application with PHP and MySQL , this application should show me more persons, each person must have one …
  • Member Avatar for Gideon_1
    Gideon_1

    Replied To a Post in join tables

    Since you are using a plugin, it has predefined functions upon which your application is built. 1. Your database structure is correct to achieve this results. 2. Why your results …
  • Member Avatar for Gideon_1
    Gideon_1

    Replied To a Post in PhP form submission to Sql

    @stephano, try echoing out the $phone value and see if there is an output. If yes, then in the database check the datatype of the phone column. And the coulumn …
  • Member Avatar for Gideon_1
    Gideon_1

    Replied To a Post in Create PDF and email to Customer

    Proposed your users click on a button to make a payment, you can add an event handler to that button such as onsubmit or onmousemove which will load the function …
  • Member Avatar for Gideon_1
    Gideon_1

    Began Watching Show selected value from dynamic dropdown list

    Hi, For a dropdown , I display from one table, While Editing How to show the selected value in that dropdown. <select name="dropdown"> <option value="">--Select--</option> <?php $a=mysql_query("Select * from student …
  • Member Avatar for Gideon_1
    Gideon_1

    Replied To a Post in Show selected value from dynamic dropdown list

    Please first of all mysql database connection layer is deprecated, so try to use mysqli or PDO for database connections. And, I don't actually get what you are trying to …
  • Member Avatar for Gideon_1
    Gideon_1

    Began Watching Create PDF and email to Customer

    Good Morning All, I have a question that I touched on a couple years ago, but then determined that I didn't need, so never followed up on it. Now I …
  • Member Avatar for Gideon_1
    Gideon_1

    Replied To a Post in Create PDF and email to Customer

    I don't know exactly what you are looking for, but i think jsPDF will help. Check this [http://stackoverflow.com/questions/17293135/download-a-div-in-a-html-page-as-pdf-using-javascript](http://stackoverflow.com/questions/17293135/download-a-div-in-a-html-page-as-pdf-using-javascript)
  • Member Avatar for Gideon_1
    Gideon_1

    Replied To a Post in PhP form submission to Sql

    @Stephano: not working in what sense. Is the form still submitting only three fields or not working at all.
  • Member Avatar for Gideon_1
    Gideon_1

    Began Watching PhP form submission to Sql

    Iam doing a website in wordpress and i want to send registration data of frontend users to my database. Please assit.
  • Member Avatar for Gideon_1
    Gideon_1

    Replied To a Post in PhP form submission to Sql

    in the $SQL you just gave only four fields to be INSERTED so its either 1. You delete the NULL from the VALUES so $SQL = "INSERT INTO `safaris8_wo5946`.`wp_vkfj_users` (`user_login`, …
  • Member Avatar for Gideon_1
    Gideon_1

    Began Watching Not sure how to approach what I want to do

    So I currently have a listbox which dynamically generates its members from the database. It has name and id set to "availablePets". When one of the items in the list …
  • Member Avatar for Gideon_1
    Gideon_1

    Replied To a Post in Not sure how to approach what I want to do

    In my applications I use the real ajax language i.e. new XMLHttpRequest () with the xmlhttp.onreadystatechange. so in the the xmlhttp.send () I send the necessary parameters for the database …
  • Member Avatar for Gideon_1
    Gideon_1

    Began Watching a problem with getting the value of the selected option of drop-down menu

    Hello. Is there any other way for not using the submit button? <?php $user_choice = $_POST['font_styles']; if ($user_choice == "font_style_1"){ $font = 'firstfont'; }elseif ($user_choice == "font_style_2"){ $font = 'secondfont'; …
  • Member Avatar for Gideon_1
    Gideon_1

    Replied To a Post in a problem with getting the value of the selected option of drop-down menu

    I will use ajax and php with to asynchronously to display the username if there is a match in my database
  • Member Avatar for Gideon_1
    Gideon_1

    Replied To a Post in FetchAll vs while loop

    Then Fetching is your friend
  • Member Avatar for Gideon_1
    Gideon_1

    Began Watching Variable in HTML/XSL attribute

    Hi, is it possible to put vaariable inside HTML/XSL attribute (style attribute) *Percent is the variable sample: <div class='rating' style='width:$Percent%;'>
  • Member Avatar for Gideon_1
    Gideon_1

    Replied To a Post in Variable in HTML/XSL attribute

    Naa, you must output it, with echo in PHP, document.write in Js
  • Member Avatar for Gideon_1
    Gideon_1

    Began Watching Autoload with different directory

    Hello, I'm getting problem file or directory not found when I try to load the file from another directory. Kindly help me fix this problem. Thanks you. Website -classes -core.php …
  • Member Avatar for Gideon_1
    Gideon_1

    Replied To a Post in Autoload with different directory

    To autoload classes, the standard php library which is already built in php can do this in just three lines. You have to place it in your core.inc.php or any …
  • Member Avatar for Gideon_1
    Gideon_1

    Replied To a Post in insert, view , edit, delete in a single form

    To do this, you cannot use just one form to do this. Maybe you can set up input buttons and on event such as onclick AJAX process the sql you …
  • Member Avatar for Gideon_1
    Gideon_1

    Gave Reputation to lorenzoDAlipio in php pigmy requests guidance

    you can try creating functions that will sequentially handle the steps. example, function firstStep() { /* create database here */ /* if database has been created */ /* return true; …
  • Member Avatar for Gideon_1
    Gideon_1

    Began Watching FetchAll vs while loop

    HELLO i would like to ask that fetchAll() is good choice to retrieve all user message from database or i should use while loop? I asked this question because i …
  • Member Avatar for Gideon_1
    Gideon_1

    Replied To a Post in FetchAll vs while loop

    I think fetchAll() is better since you get everything your sql returns in a single dump. Catch ya.
  • Member Avatar for Gideon_1
    Gideon_1

    Replied To a Post in insert, view , edit, delete in a single form

    Can you send me the fields you want use in creating this form
  • Member Avatar for Gideon_1
    Gideon_1

    Began Watching insert, view , edit, delete in a single form

    Hi, I need a code for inserting, viewing, editing, deleting in a single registration form in simple way.
  • Member Avatar for Gideon_1
    Gideon_1

    Replied To a Post in insert, view , edit, delete in a single form

    Really, I thought here is a forum which help solve problems but not generating codes for people. But by the way you can show us what you have done, so …
  • Member Avatar for Gideon_1
    Gideon_1

    Began Watching can you suggest for a new cool, fun or useful project in php?!!

    Hi. I'm thinking about a new project in php.... any idea of a cool and fun or useful and efficient project?!
  • Member Avatar for Gideon_1
    Gideon_1

    Replied To a Post in can you suggest for a new cool, fun or useful project in php?!!

    Hmm, this really depends on you. Or, try to figure out some solutions to problems in every day life like companies doing stuffs like writing receipts by hand. Create a …
  • Member Avatar for Gideon_1
    Gideon_1

    Replied To a Post in Mysqli error

    Yah, your dates can also be problem. use $date1 = "{$year}-{$month}-{$startday}"; $date2 = "{$year}-{$month}-{$endday}"; so try the sql `SELECT * FROM presence WHERE user_id = {$id} AND p_date BETWEEN {$date1} …
  • Member Avatar for Gideon_1
    Gideon_1

    Replied To a Post in Mysqli error

    try echoing out the mysqli_num_rows($query_get)
  • Member Avatar for Gideon_1
    Gideon_1

    Replied To a Post in Mysqli error

    You have made many mistakes of which include 1. Setting Form action to POST but using GET in PHP 2. Did not initialize mysqli connection 3. Were not sorting output …
  • Member Avatar for Gideon_1
    Gideon_1

    Began Watching Mysqli error

    function view_report($dateval1, $dateval2, $id) { global $connection; $query_get = "SELECT * FROM presence WHERE p_date BETWEEN {$dateval1} AND {$dateval2} ORDER BY DATE"; $query_confirm = mysqli_query($connection, $query_get); if(isset($_POST["show"])) { while($record = …
  • Member Avatar for Gideon_1
    Gideon_1

    Replied To a Post in Mysqli error

    Your are still using ORDER BY DATE instead of p_date. Also you can save you fetch_assoc to an array and use fetch assoc to ouput the data which will be …
  • Member Avatar for Gideon_1
    Gideon_1

    Began Watching can't figure out what is the error, getting msg "Parse error: syntax error"

    getting error "Parse error: syntax error, unexpected '$physics' (T_VARIABLE), expecting function (T_FUNCTION) in C:\xampp\htdocs\bookclass.php on line 19"need help pls help me out. <?php class Books{ /* Member variables */ public …
  • Member Avatar for Gideon_1
    Gideon_1

    Replied To a Post in can't figure out what is the error, getting msg "Parse error: syntax error"

    I don't know whether your codes are just for training purposes but for production purposes declare the state of your methods, be it, public, private or protected
  • Member Avatar for Gideon_1
    Gideon_1

    Began Watching How to get users id in php mysql

    <?php $this->user_id = $_SESSION['user_id']=$user->id; //create a database connection mysql_connect("host","user","pass") or die("Error:".mysqlerror()); //select database mysql_select_db("db"); ?> <html> <body> <link href="tab.css" rel="stylesheet" type="text/css" media="all" /> <table id="box-table-b"> <tr> <th>User ID</th> <th>Status</th> <th>I.P</th> …
  • Member Avatar for Gideon_1
    Gideon_1

    Replied To a Post in How to get users id in php mysql

    In addition, try to use mysqli or PDO since mysql extension has been deprecated since PHP 5.0.
  • Member Avatar for Gideon_1
    Gideon_1

    Began Watching Get multiple but not all rows of MySQL DB in array

    Hey everybody, I'd like to get some specific, but not all rows of a MySQL DB into an array, like those I get if I use mysql_fetch_array(). But feth_array, fetch_row, …
  • Member Avatar for Gideon_1
    Gideon_1

    Replied To a Post in Get multiple but not all rows of MySQL DB in array

    I think provided your query is correct, use a while loop to output the rows like $query = //this is your SQL statement; while ($row = $query->fetch_object()) { echo $row->id, …
  • Member Avatar for Gideon_1
    Gideon_1

    Began Watching include header php and html head

    hello danifriends. i'm developing my website with php and i want to make dynamic header, so i create i file header.php with logo and menu and the page had all …
  • Member Avatar for Gideon_1
    Gideon_1

    Replied To a Post in include header php and html head

    You can also predefine the doctype and head tags in the current page and the load the contents of the inc.php files
  • Member Avatar for Gideon_1
    Gideon_1

    Began Watching Notice: Undefined index: id

    I am getting this "Notice: Undefined index: id" error message for my login system. I have tried several things to fix this but i have had no luck, i have …
  • Member Avatar for Gideon_1
    Gideon_1

    Replied To a Post in Notice: Undefined index: id

    can i say, have you set the session.

The End.