Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
93% Quality Score
Upvotes Received
14
Posts with Upvotes
13
Upvoting Members
14
Downvotes Received
1
Posts with Downvotes
1
Downvoting Members
1
1 Commented Post
0 Endorsements
Ranked #607
~57.6K People Reached
Favorite Tags
Member Avatar for kaungzaythu

In creating dropdown in my project encounters problems(errors). I'm very new to codeigniter. Please check and advise what is wrong with with my code? **Model** Public function get_region() { $return = array(); $query = $this->db->get('region')->result_array(); if( is_array( $query ) && count( $query ) > 0 ) { $return[''] = 'please …

Member Avatar for cereal
0
5K
Member Avatar for praba_web
Member Avatar for cereal
0
11K
Member Avatar for fheppell

I have some code that takes a URL and downloads it using CURL. Here's the code: $url= $row['loc']; $path = 'tmp/'; $path .= rand(100,999); $path .= $row['name']; $fp = fopen($path, 'w'); $ch = curl_init($url); curl_setopt($ch, CURLOPT_FILE, $fp); $data = curl_exec($ch); curl_close($ch); fclose($fp); $downloadarray[] = array($path, $row['name']); However the file is …

Member Avatar for Isaac_4
0
287
Member Avatar for justin22

<?php session_start(); include 'connect.php'; <?php session_start(); include 'connect.php'; if(isset($_POST['submit'])) { //$username = $_POST['username']; $password = md5($_POST['currentpassword']); $newpassword = md5($_POST['newpassword']); $confirmnewpassword = md5($_POST['newpassword1']); $user_id = $_SESSION['user_id']; var_dump($user_id); $sql = "SELECT * FROM user WHERE user_id=$user_id "; var_dump($sql); mysql_select_db($dbname) or die(mysql_error()); $result = mysql_query($sql); //mysql_fetch_assoc($result); while($data = mysql_fetch_assoc($result) ){ $userPassword = $data['password']; …

Member Avatar for Mike_danvers
0
191
Member Avatar for chrisschristou

hello Dany web friends how to use cookies session in php, how to insert cookie in database table to rember user, i would like to rember what page a user viewed on my website... and i think i can use cookie for SESSION but i don't know how to use.

Member Avatar for chrisschristou
0
1K
Member Avatar for erum.saeed.75
Member Avatar for pelle12
0
169
Member Avatar for Simunji

Hello bretheren and programming Gurus? Am new and blank about php and just trying to experiment to get things as i want. Am using the code below but it does not validate data input and also does not redirect to the index page specified in it.I want if the fileds …

Member Avatar for eTechZambia
0
194
Member Avatar for varunvashista

<?php /*~ class.phpmailer.php .---------------------------------------------------------------------------. | Software: PHPMailer - PHP email class | | Version: 5.1 | | Contact: via sourceforge.net support pages (also www.worxware.com) | | Info: http://phpmailer.sourceforge.net | | Support: http://sourceforge.net/projects/phpmailer/ | | ------------------------------------------------------------------------- | | Admin: Andy Prevost (project admininistrator) | | Authors: Andy Prevost (codeworxtech) codeworxtech@users.sourceforge.net | …

Member Avatar for varunvashista
0
613
Member Avatar for davidjennings

Hi All, I am trying to connect to a Network drive remotely using authentication data(\\drive_name)(T:). I will need to upload and download documents. If possible can you give me some pointers. If you require any additional information please let me know Thanks in advance David

Member Avatar for davidjennings
0
465
Member Avatar for davidjennings

Hi All, I am getting an undefined error in the following code Undefined variable: Settings in C:\wamp\www\sessions\index.php on line 14(last line) Any help would be appreciated Thanks in advance David class SiteSettings { var $Settings; function SettingValues() { $Settings['WS-Filepath'] = "/wamp/crud/view.php/"; $Settings['WS-HTTPpath'] = "http://localhost/crud/view.php/"; $Settings['DB-Hostname'] = "localhost"; $Settings['DB-Username'] = "root"; …

Member Avatar for davidjennings
0
865
Member Avatar for luckyuser

I have the cookies and subdomain selection for header: <script type="text/javascript" src="/static/js/jquery-1.3.2.min.js"></script> <script type="text/javascript"> $(function(){ var city = readCookie('city'); if(city !=null && city !=''){ window.location.href = 'http://' + city + '.example.com'; } $('#citygo').change(function(){ var city = $(this).val(); window.location.href = 'http://' + city + '.example.com'; }); }); function createCookie(name,value,days) { if …

Member Avatar for luckyuser
0
2K
Member Avatar for amit.chaudhari.71

i have create the report.txt on serverside, now i want to print that file on client side , without open for user (to avoid alteration/ammenent in original report) i.e send that file to local printer. plz send the sampal code in php for it

Member Avatar for Lsmjudoka
0
649
Member Avatar for hemanshurpatel

Hello Friends, I have a table which says stores 4 values id,publisher name,bookname,time I am firing query like SELECT * from table where time>='sometime' group by `publisher name` order by time DESC What I want is to select results in DESC order of time with unique publisher name. When I …

Member Avatar for Lsmjudoka
0
211
Member Avatar for shealtiel

I'm building a web application for a small office, to run their daily business. The employees will be logged in and working in the system thorugh the whole day. My client is located in Israel, and I'm shopping for a hosting cloud provider for him to host the application that …

Member Avatar for Lsmjudoka
0
199
Member Avatar for ollicadyan

programmers help me i have a problem for my study issue, if i ask you to develop a program that contain a database and using php scripting language how much it will cost for the whole development. also it is an online system. example Nutrition Information System. i hope that …

Member Avatar for Lsmjudoka
0
91
Member Avatar for timetraveller1992

I am trying to write a multiline string into a text file but it does not appear as multi-line text. Here's my code $hostname = "localhost"; $username = "root"; $password = "sample"; $dbname = "code"; $code = <<< THECODE ; This is the main configuration file for your web app …

Member Avatar for Lsmjudoka
0
256
Member Avatar for tony75

Hi I would like my markup look like this demo bu I got wrong!!! I will be grateful for your help http://puu.sh/5tYXV.jpg This is my php code. <div id="container" style="text-align: center"> <header style="text-align: center">Header</header> <nav>nav</nav> <aside>aside</aside> <section id="content"> section id="content" <br> <article >article</article> <br> <article>article</article> <br> <article>article</article> <br> </section> <footer>footer</footer> …

Member Avatar for ingolfsson
0
155
Member Avatar for TIM_M_91

OK so I have already created many pages with my paging all working correctly however I have just created a new paging page that allows the user to use a search criteria. With the paging and search when you click on page 2 it dosen't load and dosen't display any …

Member Avatar for diafol
0
222
Member Avatar for AAAA23

Hi , Using my search_page.php, I want to know how to search from diffrerent online libraries,databases and websites. How to creat a form to search from Online medical libraries,for example.I use Wordpress as CMS for my website. Any ideas or suggestions are appreciated.

Member Avatar for AAAA23
0
125
Member Avatar for seanboy50

Hi all, I'm working with a PHP mail form and so far all is working well. It is returning everything from the form except the checkbox results. For them, it just says 'array'. I've searched high and low for a fix but I can't seem to get it working using …

Member Avatar for Lsmjudoka
0
2K
Member Avatar for Izzah_1

I have a login page that uses email and password and also an admin checkbox. i have already created the coding for email and password login but not the coding if checkbox is checked it will direct admin.php coz well im not sure how. normal users will be directed to …

Member Avatar for Izzah_1
0
306
Member Avatar for david.roun.7_1

I have a webiste and would like to send an email to someone, and myself, when they request their lost password. For some reason, I can't get the mail() function to work, no matter what I do. I unsuccessfully tried to model it after the listserv I created and am …

Member Avatar for david.roun.7_1
0
167
Member Avatar for Izzah_1

i want to ask is my coding correct or not.. ive been trying for many times and cant find the errors. thanks in advance if you guys help me with this problem. <!-- ubah.php --> <!-- Interface of update data. --> <?php include("db.php"); $idURL = $_GET['id']; $query = "SELECT * …

Member Avatar for Lsmjudoka
0
211
Member Avatar for Linddha

i want to show the notification of my posting. but my script cann't working i have 4 table - user, group, article, comment user : id_user username 1 | user1 2 | user2 3 | user3 group : id_group name content 1 | Script 2 | Math article : id_news …

Member Avatar for Lsmjudoka
0
229
Member Avatar for urbanthistleuk

Hello All, Having a few problems with the code below and wondered if someone could shed some light on it, I have a php script running from a cron that runs every 15 mins the error I am getting tom the cron is `PHP Notice: Undefined variable: rows in /var/www/vhosts/server.com/migration_tracker/staff/5th_email.php …

Member Avatar for urbanthistleuk
0
282
Member Avatar for Iikeloa

Hi edit_order.php <?php session_start(); if(!isset($_SESSION['admin'])){ echo "Only the admin can see this page"; header("Refresh: 3;url=login.php"); }else{ require("inc/config.php"); require("inc/header.php"); $id = $_GET['id']; $sql = "SELECT * FROM serv WHERE id=$id"; $query = mysql_query($sql); while($serv = mysql_fetch_object($query)){ $title = $serv->title; $describtion = $serv->describtion; $url = $serv->url; $status = $serv->status; } ?> <center> …

Member Avatar for Iikeloa
0
263
Member Avatar for erminasrcutp

Hi everyone , below is my update.php code , however , I am seeking for code to update specific user . For example Search Id : _______________________ [search] if user want to search id details for id : 11 the update.php will show open a page that can update that …

Member Avatar for Lsmjudoka
0
316
Member Avatar for isaac.iji.5

hello guys am creating site were all users can post for there friends to see ans coment just like facebook where am having problem is how to make sure only a users friends can see there post not the whole site members i have table in my database called post …

Member Avatar for isaac.iji.5
0
271
Member Avatar for nadiam

So i have a table and a calculate button. the calculate button is responsible to selecting data from specific tables and then the selected data will be displayed and added together along with the calculation. but something is wrong with the process because it is not calculating correctly. table & …

Member Avatar for Lsmjudoka
0
347
Member Avatar for Indians

index.php coding <td><input type="text" name="slno[]" value="" size="2"></td> <td><input type="text" size="10" name="date[]" id="SelectedDate" onClick="GetDate(this);" readonly="readonly"/></td> <td><input size="24" type="text" name="particulars[]" value="" placeholder="Description"></td> <td><select name="noofnights[]" value="0"> <option value="empty"></option> <option value="1">1</option> <option value="2">2</option> <option value="3">3</option> <option value="4">4</option> <option value="5">5</option> <option value="6">6</option> <option value="7">7</option> <option value="8">8</option> <option value="9">9</option> <option value="10">10</option> <option value="11">11</option> <option value="12">12</option> <option …

Member Avatar for Lsmjudoka
0
6K