39,326 Topics

Member Avatar for
Member Avatar for phphp

Sir I have these codes [PHP] <form name="form1" action="<?php $_PHP_SELF ?>" method="post" enctype="multipart/form-data"> <p<Photo</p> <p><input type="file" name="file" id="file" value="<?php echo $myphoto; ?>"></p> <p><input type="submit" value="photo" name="save"></p> </form>[/PHP] and these are codes for submit button [PHP]if(isset($_POST['save'])) { if(isset($_FILES["file"])){ $myphoto=$_FILES["file"]["name"]; echo $myphoto; }else{ echo 'Error'; } } [/PHP] When I press save …

Member Avatar for Dani
0
433
Member Avatar for kings

hi please do tell me how to convert a microsoft word to html document. In my appln the user will browse the microsoft word document,when a registered user tries to view the application loaded by the users of the website...it should display in html format....

Member Avatar for diafol
0
3K
Member Avatar for Furkan_2

hi I am a newbie in PHP and is validating a form in PHP. I have an issue in this validation. The issue is that form validation is not working properly to the all of field.? // And thats my connection code <?php $conn = mysqli_connect("localhost","root","","alkame");//procedural connection // Check connection …

Member Avatar for cereal
0
460
Member Avatar for phphp

Sir I am using these codes on login.php session_start(); $query="select * from w_log where email ='".$muser."' and pass='".$mypass."'"; $result=sqlsrv_query($con,$query)or die ("Error". sqlsrv_errors($con)) ; while($res = sqlsrv_fetch_array($result)) { $_SESSION['id']=($res['id']); $_SESSION['sno']=($res['usno']); $_SESSION['user']=($res['name']); $_SESSION['status']=($res['status']); } //header("location:../index.php"); //exit(); echo $_SESSION['status']; $_SESSION['status'] is equal to GENERAL But when I call this variable at the top …

Member Avatar for ahmad.albab.87
0
372
Member Avatar for Sarbjit
Member Avatar for diafol
0
343
Member Avatar for SimonIoa

Hello i made a search box and i want to make a link what will pass the search word that the user put in the search box. e.g. http://localhost/myproject/allSearches.php?searchword=aa **aa** is what the user put for search. Now i want to get that, sort it and return the data. I …

Member Avatar for SimonIoa
0
299
Member Avatar for double_cola

I have a form that creats a json array from user input data. Array ( [full_name] => First Name + Last Name [company_name] => Company Name [email] => Email [free_trial] => trial (Yes/No) [quota] => quota [contract] => 0 (0/1) [per_gb] => cost per gb [per_month] => contract length in …

Member Avatar for cereal
0
1K
Member Avatar for idaryl

Hello, in a style css I have a reference to a horizontal rule background image: background: url(../wp-content/plugins/hrticulate/assets/hrs/hr-bluetooth-saw.png) repeat-x 0 0; no matter what theme I turn on (even the default WP themes) it will not display on the home page - however, it will display on any post/page/category or whatever …

Member Avatar for idaryl
0
274
Member Avatar for double_cola

Im trying to send an array using curl. I am brand new to curl. **How do I populate my array depending on form data?** I need full_name to pull data from the form. So email goes into email and company goes into company. Here is where I am right now. …

Member Avatar for double_cola
0
432
Member Avatar for bprosic

Hello, I have a problem with getting ip camera pictures in a browser from internet. IP camera is on address 192.168.4.44, port 5566 My computer is on 192.168.4.10. My router is on 192.168.4.1 and is registered on no-ip service. Also, I have port forwarded 5566 in my router. Xampp is …

Member Avatar for rubberman
0
501
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 Rajyalakshmi_1

Hi everyone.. I would like to know how to upload an image into mysql database using php. Can anyone please help me in this regards.

Member Avatar for vsmash
0
89
Member Avatar for skullscript

Hi Everyone Dont know if this is the right place to ask this but i Just wanted to consult anybody of you that might have an idea on what this core dump message means. Yesterday my website is down for almost 30 min and when i called the hosting provider …

Member Avatar for skullscript
0
552
Member Avatar for Lloyd_4

Hi Everyone, I have a very strange issue with Posting a variable to a new page and reading the variable through GET - I have used the same code many many times on different pages but for some reason, I am unable to GET the Post variable to use and …

Member Avatar for Lloyd_4
0
335
Member Avatar for phphp

Sir I have these codes <div class="menu_box image16"> <div id="small_header">Chart</div> <h4><a href="chart_qt.php" title="Close"> <img src="images/16x16/chart_bar.png" hspace="4">Qty</a> </h4> <h4><a href="chart_wt.php" title="Close"> <img src="images/16x16/server_chart.png" hspace="4">Weight</a> </h4> <h4><a href="chart_at.php" title="Close"> <img src="images/16x16/chart_pie.png" hspace="4">Amount</a> </h4> </div> ![Untitled.png](/attachments/small/4/b669e0333375da33ef1715a46ba5b601.png "align-left") when any use click on any <a></a> then his $_SESSION['id'] must save in events table Suppose: …

-1
101
Member Avatar for cwarn23

I've followed a tutorial for making php extensions in C++ and although there are no compilation errors, the extension just won't communicate with php. The tutorial is at [URL="http://www.talkphp.com/vbarticles.php?do=article&articleid=49&title=creating-custom-php-extensions"]http://www.talkphp.com/vbarticles.php?do=article&articleid=49&title=creating-custom-php-extensions[/URL] and my code is as follows: main.cpp [code=c++]#include "stdafx.h" ZEND_FUNCTION(fetch_talkphp_links); zend_function_entry talkphp_ext_functions[] = { ZEND_FE(fetch_talkphp_links, NULL) {NULL, NULL, NULL} }; zend_module_entry …

Member Avatar for Muhammad_137
0
1K
Member Avatar for phphp

Sir, I have these codes function date_getFullTimeDifference( $start, $end ) { $uts['start'] = strtotime( $start ); $uts['end'] = strtotime( $end ); if( $uts['start']!==-1 && $uts['end']!==-1 ) { if( $uts['end'] >= $uts['start'] ) { $diff = $uts['end'] - $uts['start']; if( $years=intval((floor($diff/31104000))) ) $diff = $diff % 31104000; if( $months=intval((floor($diff/2592000))) ) $diff …

Member Avatar for diafol
0
273
Member Avatar for genieuk

Hi, I wrote some code below, at the moment i'm testing so there's no database queries in the code but before i do that i'm hoping someone can help. The code below where it says `if(filesize($filename) != 0)` always goes to `else` even though the file is not 0 bytes …

Member Avatar for genieuk
0
374
Member Avatar for MERIN_1

TABLE_ROWS 13 1 8 5 2 3 5 2 7 6 3 4 3 32 my select query results a table like this .Here i want to assign each item to each variables . a=13 b=1 etc... i tried with forech but i did not get out put.Here is my …

Member Avatar for broj1
0
334
Member Avatar for omega.pi.5

Hi Please Give the tutorial or a code of **worldpay integration** in php. (Merchant Account) Thanks.

Member Avatar for Dani
-4
212
Member Avatar for joshl_1995

Hello DaniWeb Community, I'm making an online store and am wanting make a way to calculate the shipping the way I've got it at the moment is using [this](https://developers.auspost.com.au/apis/pac/getting-started). However, it isn't good for multiple items. So if one item is $10 and another (smaller) item is $5, so the …

Member Avatar for rproffitt
0
379
Member Avatar for Minune

Hi. I have a secure web page and users to access it must register. After registration and login page when they access. I would like to make a module to redirect users after logging on page after gaining access a link. Function can be used: Header ("Location: / $ directory"); …

Member Avatar for diafol
0
337
Member Avatar for Antony Rayan

Hi, I am inserting data using while onclick event in href using jquery post method, it works successfully, But in controller after insertion, I wrote $this->load->view('viewnames'); But it is not loading that viewnames.php It displays nothing

Member Avatar for Dani
0
117
Member Avatar for complete

I was installing some modules in Drupal 7. Suddenly, the helpful buttons across the top for admin mode disappeared. Can anyone tell me what happened and what I have to do? I am able to go to {website}/admin and essentially see the same buttons on the page that, I guess, …

Member Avatar for diafol
0
229
Member Avatar for phphp

Sir I have these codes $start_time=$row['start']; //2017-02-09 15:04:09.000 $stop_time=date('Y-m-d H:i:s'); //2017-02-09 16:24:22.000 $duration=$start-$starttime; // it says 2016 but i need result like this //0001:20:13 I mean I need hours in 4 digits minutes in 2 digits and second 2 digits Please help

Member Avatar for diafol
0
386
Member Avatar for cossay

I have the following class that I intend to validate by passing it in the symfony validator. <?php namespace Shop; use Symfony\Component\Validator\Mapping\ClassMetadata; use Symfony\Component\Validator\Constraints as Assert; use Shop\Validation\Constraint as ShopAssert; class Country { /** * * @var int */ public $id; /** * * @var string */ public $name; /** …

Member Avatar for cossay
0
407
Member Avatar for Shafi_2

i want to refresh multiple div value without refreshing the whole page using one function. <div class="live_update" id="a">33</div > <div class="live_update" id="b">34</div > <script src="https://code.jquery.com/jquery-3.1.1.min.js"></script> <script> function autoRefresh_div() { $('.live_update').load('Dashboard.php' + ' .live_update'); } setInterval('autoRefresh_div()', 1000); </script>

Member Avatar for Dani
0
1K
Member Avatar for gentlemedia

I'm trying to retrieve the values of checkboxes in a custom post type. My complete function: function getTeam() { global $post; $team = new WP_Query(); $team->query('post_type=coaches'); $workshops = get_field('workshops'); if ($team->found_posts > 0) { echo '<ul>'; while ($team->have_posts()) { $team->the_post(); $listTeam = '<li>'; $listTeam .= '<a href="#" class="js-modal">'; $listTeam .= …

Member Avatar for gentlemedia
0
416
Member Avatar for phphp

Sir I am using IIS Manager, as follows ![Untitled2.png](/attachments/large/4/5db38166988018ba54db4cd0600179cb.png "align-center") and I have these codes for login.php <?php error_reporting(E_ALL); ini_set('display_errors', 1); require_once("../includes/connectsql.php"); require_once("../includes/functions.php"); $error = false; $cerror=""; $cur_id=0; $cur_user=""; $cur_email=""; $mypass=""; if(isset($_POST['login'])){ $muser=clean($_POST['username']); $mpass=clean($_POST['password']); $mypass=SHA1($mpass); if (!preg_match("/^[a-zA-Z0-9]+$/",$mpass)) { $error = true; $cerror="Password must contain only alphabets and space"; } if(!filter_var($muser,FILTER_VALIDATE_EMAIL)) …

Member Avatar for Dani
0
295
Member Avatar for gentlemedia

I'm not sure why it returns Array, because as far as I know I don't retrieve the profile images from an array. See the following function. function getTeam() { global $post; $team = new WP_Query(); $team->query('post_type=coaches'); if ($team->found_posts > 0) { echo '<ul>'; while ($team->have_posts()) { $team->the_post(); $listTeam = '<li>'; …

Member Avatar for gentlemedia
0
781

The End.