39,326 Topics
| |
I need help in referencing the name of each individual database attached to a MongoDB instance. I just want to connect to a database with PHP and list the names of all the databases. In the code below I can connect to MongoDB instance and find all the databases. I … | |
i want to display all related images according to the image selected here is my code... my control looks like this.. public function product_details($p_id) { $data['active_mn']='product_details'; $data['detail']=$this->roxmodel->get_related_image($p_id,4,0); var_dump($data['detail']); $this->load->view('product_details',$data); } my model looks like this public function get_related_image($p_id,$limit,$offset) { $this->db->order_by("gallery.id","desc"); $this->db->where('category_id',$p_id); $query=$this->db->get('gallery',$limit,$offset); return $query->result(); } my view page looks like … | |
hi all i have got a problem with my profile photo upload script after converting to mysqli everytime i go to upload a image i get the following error: Strict Standards: Only variables should be passed by reference in /home/matureco/public_html/registration2.php on line 11 and the code for that section is … | |
Hello im building messages page, i want to make it when the sender of the ticket is pressed to show the ticket from that sender so i have two files `messages.php` and `m.php` in messages.php are the the buttons for the senders and in m.php are the tables for the … | |
hi iam a new to this laravel framework,em getting error while running contact page. anyone having idea about this?? the code is: @extends('layout') @section('content') <h1>Contact Us.</h1> <p>Please contact us by sending a message using the form below:</p> {{ Form::open(array('url' => 'contact')) }} {{ Form::label('Subject') }} {{ Form::text('subject','Enter your subject') }} … | |
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. |
The End.