39,326 Topics

Member Avatar for
Member Avatar for Sujan Shrestha

i used this code to upload images and display from database but not working correctly... **images.php** <?php include('header.php'); ?> <center> <form action="addimages.php" method="post" enctype="multipart/form-data"> <table border=0> <tr><td>Select Image: </td><td><input type="file" name="image"></td></tr> <tr><td>Caption: </td><td><input name="caption" type="text"></td></tr> <tr> <td colspan=2><input type="submit" name="Submit" value="Upload" ></td></tr> </table> </form> </center> Photo Gallary: <br /> <br …

Member Avatar for OsaMasw
0
355
Member Avatar for sanctifiedsantosh

<div class="carousel-inner"> <?php $category = $this->category_model->getCategories(999,0,51);?> <?php $categorynext = $this->category_model->getCategories(999,0,51);?> <div class="item active"> <div class="row-fluid"> <?php $count=0;?> <?php foreach($category as $category):?> <?php $count=$count+1;?> <div class="span2"><a href="#x" class="thumbnail"><img src="<?= base_url();?>assets/upload/category/<?= $category->image?>" alt="Image" style="max-width:100%;"></a></div> <?php if($count==6) break;?> <?php endforeach;?> </div><!--/row-fluid--> </div><!--/item--> <div class="item "> <div class="row-fluid"> <div class="span2"><a href="#x" class="thumbnail"><img src="<?= base_url();?>assets/upload/logo/computer.png" …

Member Avatar for Alberto Bucur
0
169
Member Avatar for gee,selvin1990

The below code is a profile login system update page i have created validation for fullname but fullname validation is not working I need ur help friends may i know how to create validation in php for the below code may i know where i made a mistake friends help …

Member Avatar for diafol
0
1K
Member Avatar for sanctifiedsantosh

Suppose i have 5 data which is coming from database.i have a per_page=4.then 4 data will come in 1st page and 1 data will come in next page during delete when i delete last data then page will not go previous page of that page

Member Avatar for diafol
0
41
Member Avatar for davy_yg

Hello, I am trying to download my online website: [gsaconst](www.gsa-constructionspecialist.com) offline - and set it to work offline, yet I haven't been successfull. In my offline website I receive this error message: -------------------- A Database Error Occurred Unable to connect to your database server using the provided settings. Filename: C:\xampp\htdocs\gsaconst\system\database\DB_driver.php …

Member Avatar for veedeoo
0
310
Member Avatar for joshmac

I have some code that I edited for importing csv into mysql using PDO to bind parameters. I thought it was working before, but tested it again and the issue I have is that only one line (the fourth line) of the csv file is getting imported. The first line …

Member Avatar for joshmac
0
375
Member Avatar for dukumanis

db name: orange table: Name, Position, Department, Telephone, Purpose, Startdate, Enddate, Item1, Item2 **input.php** <html> <body> <form method="post" action="conn.php"> <table width="500" border="1"> <tr> <td>Name</td> <td><input type="textbox1" name="Name[]" value=""></td> <td> </td> <td> </td> </tr> <tr> <td>Position</td> <td><input type="textbox2" name="Position[]" value=""></td> <td> </td> <td> </td> </tr> <tr> <td>Department</td> <td><input type="textbox3" name="Department[]" value=""></td> <td> </td> <td> </td> </tr> <tr> …

Member Avatar for dukumanis
0
223
Member Avatar for dukumanis

**currently arrival date and departure date format is m/d/y..can i change the date format to d/m/y??** <html> <head> <link href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery-ui.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script> <script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js"></script> <script> $(document).ready(function() { $("#datepicker").datepicker(); $("#datepicker2").datepicker(); }); </script> </head> <body> <form method="post" action="4.php"> arrival date <input type="textbox6" name="arrivaldate[]" id="datepicker"><br> departure date <input type="textbox7" name="departuredate[]" …

Member Avatar for dukumanis
0
202
Member Avatar for NoR_1

What you thinks about voting system for indie bands?? Please give your opinions

Member Avatar for diafol
0
45
Member Avatar for waqas_2

Hi All. I was searching it for many weeks I am working on Magento Store, i have 2 domain on same website/same directory i want to show different logo on each domain. In header file, logo is shown by this code <?php if ($this->getIsHomePage()):?> <h1 class="logo"><strong><?php echo $this->getLogoAlt() ?></strong><a href="<?php …

Member Avatar for cereal
0
607
Member Avatar for newbie14

I am going to develop a web based point of sales system. It is going to be based on linux and php. Users will access it via internet and using browser as the tool. Problem is if the web server is down? The user want to be still able to …

Member Avatar for newbie14
0
173
Member Avatar for Dani

# What is OAuth and why do I want to use it? If you want to write an application that caters to existing members of a service, and you want your application to be able to access private areas of your end-users' profiles, or modify their accounts on their behalf, …

Member Avatar for diafol
4
1K
Member Avatar for rambo12
Member Avatar for williamwalker
0
268
Member Avatar for davy_yg

Hello, Please cek this website: [Infracom](http://www.indonusa.net.id/infracom/) There are some errors after I move it from localhost to webserver. header.inc.php <?php if( !defined('WDS_ROOT') ) exit; $meta = array(); $meta['title'] = 'Error 404 Object Not Found'; $meta['keywords'] = $config['sitekeywords']; $meta['description'] = $config['sitename'] . ' :: The page you looking for is not …

Member Avatar for Alberto Bucur
0
127
Member Avatar for nadiam

hey guys, so im not sure if this is the right forum, sorry if its not. anyway, i have to create a webpage that can do seating arrangements graphically. it would be like those seating plan softwares out there but this would be online. users can choose tables/chairs/etc which guests …

Member Avatar for nadiam
0
505
Member Avatar for JayGeePee

I'm having issues with repopulating my input fields after being submitted if there is an error. I've tried the simple `<?php if(isset($_POST['value'])){echo $_POST['value'];} ?>` That doesn't work. And I'm thinking it's because of how I have my else statements set up. I am currently using get to repopulate my fields, …

Member Avatar for JayGeePee
0
303
Member Avatar for Ana_2

<?php $id=$_GET['memberID']; $result = mysql_query("SELECT * FROM members WHERE memberID='$id'"); while($row=mysql_fetch_array($result)){ $user=$row['userlevel']; if ($user==3){ ?> <font size="2" style="postion:relative; top:0px; left:30px; "> Hi <?php echo $row['username']; ?>! <a href="logout.php" style="text-decoration: none">Logout</a> <font style="position:relative; top:0px; right:-500px;" size="2" color="#1491C6 "> <?php }else{?> <font size="2" style="postion:relative; top:0px; left:30px; "> Hi Guest! <a href="login" style="text-decoration: …

Member Avatar for diafol
0
149
Member Avatar for tallon

Hello I'm trying to add coding to my site so that someone can visit it, see everything on the site, but get banned so that when they come back they can't see anything anymore. My guess is they have to be banned after visiting. I tried this code but it …

Member Avatar for diafol
0
2K
Member Avatar for rajendher

can anybody please tell me how to rewrite urls like http://mysite.org/myfiles/2014/-dir-/2014_02.html http://mysite.org/myfiles/-dir-/myfiles.html etc... i thought that there is a php file available at same directory ( /2014/)

Member Avatar for Bensirpent07
0
133
Member Avatar for HelenLF

I have a site where the customer makes multiple selections of clothing and these are shown together at the end of the selection. So they may select a dress, top and skirt, accessory etc. All the images are in png format with a transparent background. At the end of the …

Member Avatar for gustavo.pinent
0
267
Member Avatar for showman13

Does anybody have any magic formula (known to work) for attaching a .csv file to an email? I have been working on this most of the morning... Have tried to use several different versions of what is supposed to work from doing google searches and have yet to be successful. …

Member Avatar for showman13
0
7K
Member Avatar for baloch123

Hi I have dropdown list of domain names.Which is populated by mysql query(1st query). And when dropdown value is selected that value is used in another mysql query(2nd query). I've a submit button,when it is clicked.It is working perfectly. But i want to remove submit button and i need a …

Member Avatar for diafol
0
18K
Member Avatar for rpv_sen

Hi i am using array for uploading images but i am unable to insert it into database as well as in the folder. can anyone please help me to resolve it. $name = $_GET['name']; $gititle = $_POST['gititle']; $number_of_file_fields = 0; $number_of_uploaded_files = 0; $number_of_moved_files = 0; $uploaded_files = $_POST[$_FILES['images']['name'][$i]]; echo …

Member Avatar for Rahman_1
0
327
Member Avatar for Nilesh_2

Hello, I have two tables one for 'users' and another for 'vendor_service' in database named 'star'. In vendor_service table i've stored users id as a foreign key. Now if i try to insert values in vendor_service table it shows following error. Cannot add or update a child row: a foreign …

Member Avatar for diafol
0
1K
Member Avatar for aryanmughal

Hi, i want to add next / previous buttons in my wordpress post. example can be seen here. http://prntscr.com/2yzwnl link to website: http://funnie.st/453576/oscar-memes/2/ Please help me in this regard.

0
106
Member Avatar for mshaker
Member Avatar for mshaker
0
62
Member Avatar for ethan.david.376

How can I generate a weekly report given an end date and a start date? How should the query be? I try this one but it's returning an error. "SELECT * FROM table WHERE date >= startdate AN date<='enddate GROUP BY WEEK BETWEEN startdate AND enddate"

Member Avatar for veedeoo
0
162
Member Avatar for chaitu11

How to view our uploaded resume online with php in website <?php if($_SERVER["REQUEST_METHOD"] == "POST" && isset($_POST['submit']) == 'upload') { var_export($_POST); $allowedExts = array("pdf", "doc", "docx"); $temp = explode(".", $_FILES["file"]["name"]); $extension = end($temp); if ((($_FILES["file"]["type"] == "application/pdf") || ($_FILES["file"]["type"] == "application/msword") || ($_FILES["file"]["type"] == "application/vnd.openxmlformats-officedocument.wordprocessingml.document")) && ($_FILES["file"]["size"] < 20000) && …

Member Avatar for veedeoo
0
2K
Member Avatar for anita_86

Hi, I am working on a script where I want to select parent id for a new user and save his parent id along with parents parent ids in mysql table. $last_id = mysql_insert_id(); //select parent id of last inserted user $sel = mysql_query("SELECT * FROM tbl_new_agent WHERE new_agnt_id = …

Member Avatar for EvolutionFallen
0
409
Member Avatar for stokie-rich

hi guys hope you are all well, I'm creating my own website. I need some help, on the header that I have created with the menu links I want users to be able have access to a drop down list of associated pages to appear when you hover over a …

Member Avatar for stokie-rich
0
153

The End.