39,323 Topics
| |
here i want to display images according to the numbers given here is my view page <div class="limiter hidden-xs"> <label>Show</label> <select> <option selected="selected" value="">9</option> <option value="">12</option> <option value="">24</option> <option value="">36</option> </select> per page </div> my controler section is this public function look_book() { $data['active_mn']='look_book'; $config['base_url'] = base_url().'roxcontrol/look_book'; $config['per_page'] = 9; … | |
please i need to query 2 tables at once and display the content in table. here is the code: <?php include 'database.php'; $pdo = Database::connect(); $sql = 'SELECT producs.*,validation_superviseur.* FROM products ORDER BY product_id DESC ,validation_superviseur ORDER BY id DESC'; foreach ($pdo->query($sql) as $row) { echo '<tr>'; echo '<td>'. $row['cat_id'] … | |
Hello, I have been searching far and wide but am yet to find a solution, my php mail sends email to all addresses except hotmail (not weven junk). Code: $message = "Welcome to Sky Crew, Your personal account for the Skye Crew has been created! Your personal login ID and … | |
Hi Everton one, I have the following search statement that works great, But what I would like to do is expand this to include multiple LIKE '%$search%' $STM = $dbh->prepare('SELECT * FROM tblname WHERE col=:lsecure'); $STM->bindParam(':lsecure', $search); $STM->execute(); $count = $STM->rowCount(); $results = $STM->fetchAll(PDO::FETCH_ASSOC); What I would like to do … | |
Hello,I need help in updating user image in form. I have form of around 10 fields in there is options for updating images(images which have been uploaded at time of reg)** Max 5 images is allowed **now i am successful in saving data to database and at time of updating … | |
how to create a waiting list for an appointment in php with codeigniter...any guide please | |
I have a text area that I want a list to be entered. I am trying to seperate each list item and put it into a seperate sql entry. Could some one tell me what I am dong wrong? error_reporting(E_ALL); ini_set('display_errors',1); $textarray = explode("\n",$textarea);if(isset($_POST['textarea'])){ $textarea= $_POST['textarea']; $q = "INSERT INTO … | |
Hello. How can I config django (python framework) with mysql? How can i use phpmyadmin to manage my database while i'm coding in django? Thank you. | |
Please help....i want to save a user to my database..using wampserver... <form method="POST" action=""> <center><br> <H1>USER REGISTRATION</H1> <table> <tr> <td>User Id</td> <td><input type="text" name="userId"></td> </tr> <tr> <td>Lastname</td> <td><input type="text" name="lastname"></td> </tr> <tr> <td>Firstname</td> <td><input type="text" name="firstname"></td> </tr> <tr> <td>Middle Name</td> <td><input type="text" name="middleName"></td> </tr> <tr> <td>Suffix</td> <td><input type="text" name="suffix"></td> </tr> … | |
Hi, I know parsing json data has been discussed lots but what I want is probably a little simpler I need a little editing to the bleow php script to work as convert json data and push it into MySQL table since the script work as reading the json data … | |
Hi i want to display runtime server load using php code. I find the below code from other website but i dont know i am going on the correct way. Pleae help me. function get_server_load() { $load=array(); if (stristr(PHP_OS, 'win')) { $wmi = new COM("Winmgmts://"); $server = $wmi->execquery("SELECT LoadPercentage FROM … | |
Im making search button and i want when user is searched to give all tickets received by that user i have this code but its just showing the last record of that db table and if i try to search other users gives me `No ticket received from that user.` … | |
Export CSV TO Mysql and Import to CSV from MYsql in PHP | |
Hello, currently on one of my development servers I have SQL Server 2014 installed, the problem I HAD was that when I executed any of my PHP sites connected to various databases I was getting `SQLSTATE[HY2000][2002] Connection was activily refused...` I fixed that error by forwarding the port through the … | |
hya all i have sorted the checkbox group out and its echoing through ok but its also echoing through userid, username twice and email address when all i want is to echo options ticked any ideals of what can be causing this please php block at top of page: <?php … | |
I'm using [imgAreaSelect](http://odyniec.net/projects/imgareaselect/) to select image area. I have following values. Need Help to upload original image to "../original-images/" folder & cropped images to "../uploads/" folder. Upload cropped images with new filename "$newfilename" Plz help Thanks in advance. $x1 $y1 $x2 $y2 $w $h $filename = $_FILES["image"]["name"]; $file_basename = substr($filename, … | |
I am using html 5 for downloading php and open. but pdf file i want to display next tab. any body help me below is my code <a href="image/one.pdf" download="one.pdf" target="_blank"> <img src="image/download.jpg" style="height:50px; width:50;"> </a> | |
Hello guys, im trying to learn how to use dynamic data table, which means i want to use data table as my searching result table. but i dint know how to make it because when the search result filled in the table, the sort and other "DataTable" function is not … | |
I have created a function for displaying the shortcode within my content same as like don in wordpress not totally like it but some the thing is that when the regex becomes true will display shortcode for the given name but what happening now is it's displaying all within the … | |
My login script is displaying the following error message: Warning: Illegal string offset 'hash' on line 30. Here is the code that generates the error: <?php // configuration require("../../includes/config.php"); // if form was submitted if ($_SERVER["REQUEST_METHOD"] == "POST") { // validate submission if (empty($_POST["username"])) { adminapologize("You must provide your username."); … | |
I tried to make a custom php shortcode coverter for my own cms but the shortcodes are not converting in a proper way in the output its not displaying anything though as in replacement of corusel it should display Rollercoaster but right now I am getting output as This is … | |
I`m creating a simple social network site, I need to implement a sophisticated friend request system, one which works like facebook, this will work as follows: If James wants John to be his friend, he will click John's name. John will be notified that James has asked to be his … | |
What is used to add favicons to webpages like this page. Can the normal html php css be able to add favicons or is there a way to do it | |
Am working on an online examination system. I have ordered the question output with "ORDER BY 1 ASC" and it follows as its appears in the database. But I want the output to be randomly generated so that each time the examinee logs in, different question number comes first. | |
Hi there, I follow this tutorial for my web app. link: http://www.thesoftwareguy.in/creating-multi-user-role-based-admin-using-php-mysql-bootstrap/ Can anyone give me idea to do this same app using mysqli? Thanks. | |
Hello guys, I had to change the host of my web page , now I'm having trouble accessing the page because of problems in the connection string with the base. Error that occurs : Warning : mysql_select_db ( ) expects parameter 2 to be resource , null given in /var/www/web/Classes/AcessDatabase.php … | |
i try to use phpoffice/phpexcel to do this but i haven't an idea of do it... i have this form in html <body> <div align="center">ELENCA TABELLE PRESENTI NEL DB</div> <form action="index.php" method="post" enctype="multipart/form-data"> <table> <tr> <td> Filename: </td> <td> <input type="file" name="file" id="file"> </td> </tr> <tr> <td colspan="2" align="right"> <input … | |
I have a website that has been using background color animations for a while when all of sudden they just stopped working. I can't think of any major change I've done that would have caused it. So I created a folder to test out my jquery.min.js and jquery.ui.js files. Here … | |
anybody can help me??, if the structure form like this. <input type="file" name="image_1"> <input type="file" name="image_2"> <input type="file" name="image_3"> <input type="file" name="image_4"> i want to upload multiple image with a single action to codeigniter and save it to database, my database table image coloum : image_1, image_2, image_3, image_4, |
The End.