[split] a database issue (tried to hijack 3.0.5 announcement) - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5) +--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24) +--- Thread: [split] a database issue (tried to hijack 3.0.5 announcement) (/showthread.php?tid=64671) |
[split] a database issue (tried to hijack 3.0.5 announcement) - yaboiiwill - 03-19-2016 Code: this is my config file below is my index.php page <div align='center'> <table border='1' cellpadding='5' cellspacing='1' id='mytable'> <tr align='center'> <th>FirstName</th> <th>LastName</th> <th>Email</th> <th>Action</th> </tr> <?php error_reporting(0); include('config.php'); $sql="select * from member"; $result=mysql_query($sql); while ($row = mysql_fetch_array($result)){ $id=$row['id']; $fname=$row['fname']; $lname=$row['lname']; $email=$row['email']; echo "<tr class='edit_tr' id='$id'> <td class='edit_td'> <span class='text' id='one_$id' >$fname</span> <input type='text' class='editbox_search' id='one_input_$id' value='$fname' > </td> <td class='edit_td'> <span class='text' id='two_$id' >$lname</span> <input type='text' class='editbox_search' id='two_input_$id' value='$lname' > </td> <td class='edit_td'> <span class='text' id='three_$id' >$email</span> <input type='text' class='editbox_search' id='three_input_$id' value='$email' > </td> <td class='edit_td' > <a href='#' class='edit_btn'>Edit</a> <a href='#' class='update' >Update</a> <a href='#' class='cancel' >Cancel</a> <a href='#' class='delete' > Delete </a> </td> </tr>"; } ?> <tr> <td><input type='text' id='fname' placeholder='firstname'/></td> <td><input type='text' id='lname' placeholder='lastname'/></td> <td><input type='text' id='email' placeholder='email'/></td> <td ><a href='#' id='add' >ADD</a></td> </tr> </table> </div> my database table is not being shown in codeigniter being run through xampp control panel phpmyadmin it should work and look like it does on my website http://www.scentedlightsllc.com/livetable RE: [split] a database issue (tried to hijack 3.0.5 announcement) - fulopm - 03-19-2016 This is not a CodeIgniter issue. Try to read the PHP documentation, and use mysqli driver instead of mysql. RE: [split] a database issue (tried to hijack 3.0.5 announcement) - InsiteFX - 03-19-2016 His Database connect is not even CodeIgniter its pure MySQL |