39,402 Topics

Member Avatar for
Member Avatar for AntonyRayan

how to pass id from one table to another table in php, can anyone tell me with example

Member Avatar for AntonyRayan
0
150
Member Avatar for PsychicTide

Dajia hao, daniwebians! Just a quick question, is it possible to focus on a textbox on an externally loaded website? My goal is to load an external website, focus on a textfield, auto fill it with the current date, then submit it to then run my newly created scraper tool …

Member Avatar for PsychicTide
0
2K
Member Avatar for Tom_11

I have a table made up of time slots, when the user clicks maybe one or two and presses submit, i would like the date selected and the time slots chosen to be saved in to my sql. I am working on the query but a little stuck in regards …

Member Avatar for ryantroop
0
177
Member Avatar for Sws_1

$sql = "select u.Id, u.username, u.email, (NOW()-u.authenticationTime) as authenticateTimeDifference, u.IP, f.providerId, f.requestId, f.status, u.port from friends f left join users u on u.Id = if ( f.providerId = ".$userId.", f.requestId, f.providerId ) where (f.providerId = ".$userId." and f.status=".USER_APPROVED.") or f.requestId = ".$userId." ORDER BY u.username ASC"; I don´t understand the …

Member Avatar for hericles
0
208
Member Avatar for Tom_11

I was hoping i could get some help in regards to a time slot calendar i am working on. I have created a calendar in php. I need a key for the calendar which shows what days are: Available to be book Partially booked Fully booked Closed All on a …

0
107
Member Avatar for ankita_6

how to display selected value of dropdownlist in textbox in magento? rly fast

Member Avatar for hericles
-1
45
Member Avatar for Ventech_IT

Hi there i want to create a news item that posts to my database (this works fine) but i want to be able to upload an image in the same form and submit the file path to the news table where all the other content is placed. Here is my …

Member Avatar for Ventech_IT
0
242
Member Avatar for Heanre

Our teacher tells us to add a crawl functionality that will get information from other databases online... is this legal, cause i think it's not

Member Avatar for Heanre
0
152
Member Avatar for Tom_11

The error is on this line according to the browser console Uncaught TypeError: Cannot set property 'onclick' of nullcal.php:26 (anonymous function) When the a date is clicked other than in the january, april, novemeber the form doesnt opens. the code on like 26 is from the console browser is document.getElementById('trigger0').onclick …

Member Avatar for Traevel
0
403
Member Avatar for Stefce

Hello i im confuzed with this problem, i have converted the php code into the right format `MySQLi` and i get this wierd error `Notice: Array to string conversion in C:\xampp\htdocs\Training\core.php on line 25` So i dont know where is the problem in the `login.php` or `core.php` look at the …

Member Avatar for Stefce
0
223
Member Avatar for shrutiarora

i upload a file in php and read its contents.now i want to scan the file line by line and want to store some information in database.. can anybody help me plz..

Member Avatar for shrutiarora
0
21
Member Avatar for solomon_13000

I intend to integrate single sign on (facebook login) to my php website. However I intend to do so without installing the SDK into my 3rd party web server. What is the best way to achieve this?.

Member Avatar for pritaeas
0
102
Member Avatar for Osagie_1

I've a json structure : { "Photos":{ "Photo":[ { "ID" : 111, "type" : "JPEG", "URL": "blabla" }, { "ID": 222, "type": "JPG", "URL": "blaaaaaaaaa" } ] } } Using php-jsonpath only (By stefan Goessner : http://goessner.net/articles/JsonPath), I want to insert a new data (array) into photo identified by 222 …

Member Avatar for Traevel
0
281
Member Avatar for mangel.murti

how we can display records 1-5 for 1 user. for 2nd user, we can display 2-6 for 3rd user, we can display 3-7 so on...

Member Avatar for mangel.murti
0
188
Member Avatar for riwakawd

On my view I am trying to get it so if my input link[] is next to the upload button then that link post will be inserted into the database with image I use codeigniter for a mvc frame work. I can insert the links and images fine, but the …

Member Avatar for riwakawd
0
201
Member Avatar for PulsarScript

Hi all ,how to create multiplication table,based on user input.User enters 1 value in one box,second value in second box and pressses the create table button for output? Regards

Member Avatar for pixelsoul
0
90
Member Avatar for samyakonline

ASP is a rigid language and it has tighter error checking tool than PHP has; its syntax is designed over VB. On the other side, PHP has wider range of in-built functions with better flexibility; its syntax is gained from C++. PHP is much friendlier than ASP. Which language has …

Member Avatar for JorgeM
0
133
Member Avatar for Tom_11

How would one create a hidden form on a web page and only open the form when the button is clicked?

Member Avatar for diafol
0
289
Member Avatar for Tom_11

Guys, Does anyone know how i can get the current day highlighted on the calender? ?php $monthNames = Array("January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"); ?> <?php if (!isset($_REQUEST["month"])) $_REQUEST["month"] = date("n"); if (!isset($_REQUEST["year"])) $_REQUEST["year"] = date("Y"); ?> <?php $cMonth = $_REQUEST["month"]; $cYear = $_REQUEST["year"]; …

Member Avatar for pixelsoul
0
181
Member Avatar for mf24k

looking easy way to input them in pc. i have hundres.is there a bar code machine thats hooks to pc?

Member Avatar for jhao1205
0
83
Member Avatar for superlucile

Hello ! I'm trying to build a link between an applet in java and php. My applet in Java sends data to php. And then php writes data in the database. I use json object my code in java : public static void main(String[] args) { // TODO Auto-generated method …

Member Avatar for diafol
0
339
Member Avatar for SimonIoa

i have formatted my pc i am trying to install Flash Builder again and i am getting an error. Installer User Inteface Mode not supported. The installer cannot run in this UI mode. To specify the interface mode, use the -i command line option followed by the UI mode identifier. …

Member Avatar for SimonIoa
0
163
Member Avatar for Ventech_IT

Hi guys was wondering if someone could shed some light for me on how relational tables work in codeigniter, for example if i uploaded an image to the database through a from that collects data let's say a blog post. How would i link the two tables and then retrieve …

Member Avatar for Tpojka
0
92
Member Avatar for wawahida

i have a form that contain several disabled fields for date. what i want is the date fields should not return any values when i submitted. but, it returns 1970-01-01 values everytime submit the form. what should i do? please help me T____T

Member Avatar for Tpojka
0
143
Member Avatar for Ventech_IT

Hi guys i want to know how i would store uploads(path's) in the database here is my Controller, View what should go into the Model? Controller <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); class Upload extends CI_Controller { function __construct() { parent::__construct(); $this->load->helper(array('form', 'url')); } function index() …

Member Avatar for diafol
0
232
Member Avatar for charlie.kirk.140

Hi, I could use some help passing a function or its variables to a php file. Since JS is so verbose I'm posting succinct code to demonstrate my path. Everything works except the values sent to php are zeros. Thanks in advance. (sending the form to:) <FORM name="Keypad" method="post" action="http://localhost/home/calcinsert.php"> …

Member Avatar for Traevel
0
98
Member Avatar for phfilly

Hi everyone, I'm wondering about a potential problem I might get. My problem is lets say I have 2 tables one called **speakers** and **clients**. In the client table the client has the speaker ID's of 1,5,8(SAVED in a STRING field) - *so I'm using explode() to get the values*. …

Member Avatar for phfilly
0
217
Member Avatar for santunu23

I am trying to collect data from amazon market place web service in Scratchpad i get all the values.I am downloading php client library from mws developer website and try to run the code for display those files into browser POST mws.amazonservices.com /Products/2011-10-01 AWSAccessKeyId=AKIAJP5PIHAAXLU6NLDQ&Action=ListMatchingProducts&MarketplaceId=ATVPDKIKX0DER&Query=shoes&SellerId=A2LZO1DGHI8M8V&SignatureMethod=HmacSHA256&SignatureVersion=2&Timestamp=2015-01-18T06%3A24%3A58Z&Version=2011-10-01 and according to the post we …

0
168
Member Avatar for giao.can

I have a table like code html belows I want to store value of check box and corresponding text value into 2 array in PHP For example if i check box ID_1, ID_2 the values of these check box are stored in $array_box ( 74, 75) and values of corresponding …

Member Avatar for Mashetty
0
5K
Member Avatar for riwakawd

When there should be a error it does not show. I can not seem to get the erorrs to work in the correct order How can I improve my file upload errors to work in correct order? public function upload() { $name = $_FILES['userfile']['name']; $tmp_name = $_FILES['userfile']['tmp_name']; $type = $_FILES['userfile']['type']; …

Member Avatar for riwakawd
0
388
Member Avatar for blueguy777

Unable to execute the sql query, only dispaying blank page. <?php require('fpdf.php'); $today=date('d_m_Y'); $hostname = "localhost"; $database = "developer"; $username = "root"; $password = ""; $conn = mysql_connect($hostname, $username, $password) or die(mysql_error()); mysql_select_db($database, $conn); class PDF_result extends FPDF { function __construct ($orientation = 'P', $unit = 'pt', $format = 'Letter', …

Member Avatar for pritaeas
0
201
Member Avatar for riwakawd

I would like to know if possible in my php codeigniter modelto be able to insert my file names where it matches up with the link insert post. The link post are in array i.e. <input type="text" name="link[]" /> Not sure whats best the name of the file inserts but …

Member Avatar for mtho
0
6K
Member Avatar for Simon180

Am trying to work out how to update my database for the image name I have selected with out the need of pressing any buttons just the image it self. there would select the image and it would show a preview and auto update the selected image src address to …

Member Avatar for hericles
0
75
Member Avatar for Jack_11

I've been asigned to develop a website in php. I run windows, and I want to know what IDEs are good for this.

Member Avatar for Jack_11
0
98
Member Avatar for tNicknames

My localhost is running on self-certified HTTPS and I am using Stripe API. I am getting following errors: Warning: stream_socket_client() [function.stream-socket-client]: SSL: connection timeout in D:\xampp\htdocs\edplace_live\stripe\stripe\lib\Stripe\ApiRequestor.php on line 374 Warning: stream_socket_client() [function.stream-socket-client]: Failed to enable crypto in D:\xampp\htdocs\edplace_live\stripe\stripe\lib\Stripe\ApiRequestor.php on line 374 Warning: stream_socket_client() [function.stream-socket-client]: unable to connect to ssl://api.stripe.com:443 (Unknown …

Member Avatar for Jack_11
0
414
Member Avatar for riwakawd

When I upload I can upload single files fine but, I cannot seem to upload if input is like **<input type="file" name="file[]">** I am not sure on my php upload function how to make it allow multiple files? Thanks in advance. public function upload() { $this->load->library('request'); $directory = FCPATH .'upload/'; …

Member Avatar for riwakawd
0
254
Member Avatar for SimonIoa

I am starting to use Flash Builder for php to make an app. I have started with this very good example suggested by a user. [http://files.zend.com/help/Flash-Builder-for-PHP/Getting-Started/Mobile/build_a_mobile_(php)_application.htm](http://files.zend.com/help/Flash-Builder-for-PHP/Getting-Started/Mobile/build_a_mobile_(php)_application.htm) On Step 11 running the PHPUnit i am getting this error PHPUnit_Framework_Error_Warning:mysqli_connect()[<a href='function.mysqli-connect'>function.mysqli.connect</a>]:MySQL server has gone away I am understanding that it cant connect …

Member Avatar for SimonIoa
0
357
Member Avatar for PinoyDev

Good day! I have a page let say page1.php and page2.php. In page1.php, I have build menus which names are taken from MySQL database like the code Ive made below: <ul> <?php do { ?> <li><a href="fullwidth.html"><?php echo $row_rec_tourismmenu['menuname']; ?></a></li> <?php } while ($row_rec_tourismmenu = mysql_fetch_assoc($rec_tourismmenu)); ?> </ul> I want …

Member Avatar for PinoyDev
0
140
Member Avatar for Bile

Hi Daniweb,I'm trying to modify and upgarde My codes from Native mysql to mysqli. My trail seems to be somehow good as I got My hands with the Php Manual Documentation so forth. The Only point I got stuck is where I implimented the mysql's mysql_affeted_rows() and so changed it …

Member Avatar for Bile
0
212
Member Avatar for saadi06

Hi, I am trying to load arabic forms in smarty. But whenever I copy data to a tpl file the arabic lanaguage changes to ?????. Is there any help where I can find how to load arabic forms.I have searched but could not find any help regarding loading the arabic …

Member Avatar for pritaeas
0
62
Member Avatar for php@intel

hello i want to crop my image by selecting the face and mark its coordinates but unable to find that can anyone help me out

Member Avatar for almostbob
0
51
Member Avatar for azegurb

Hi all, i have web application and login form. i would like when i exit (logout) it automatically logs out from all devices (or browsers or PC). Can anyone help me?

Member Avatar for broj1
0
264
Member Avatar for khin thida phyo
Member Avatar for khin thida phyo

I have category table and product table.I retrieved item name from category table.Product table has id,image,title,category,description.If I choose one item from category,I want to display image concern with it. This is my code.

Member Avatar for Traevel
0
39
Member Avatar for SimonIoa

I just installed ZEND STUDIO to make a mobile application out of my php files. Does anyone knows any good tutorial or examples?

Member Avatar for SimonIoa
0
352
Member Avatar for sheriffkhalid

i need this to clarify . .. // Parse error: syntax error, unexpected '=', expecting ')' in /home/dsyslabs/public_html/users/canapprove/core/test_sup_form/index.php on line 9

Member Avatar for broj1
0
38
Member Avatar for davy_yg

update_image.php if($image_width > $data2['maxwidth'] or $image_height > $data2['maxheight']) { echo '<br>'."Image is too big".'<br>'; echo $image_width.'>'.$data2['maxwidth_bn'].'<br>'; echo $image_height.'>'.$data2['maxheight_bn']; exit(); } Successfully upload pictures Image is too big 995>1000 229>240 I wonder why the condition pass? It suppose to be too small instead of too big.

Member Avatar for Traevel
-1
130
Member Avatar for Stefce

Hello i need little help overhere im confuzed getting user data from mysql database i want to update the `payCheck` column in the database but that column is located in the `receiver` or `where (in the code)` field i have this code please someone help me... <?php require 'connect.php'; require …

Member Avatar for Stefce
0
732
Member Avatar for EvolutionFallen

Hi folks, I have a situation that's most easily explained via example, I think. So here goes. Let's say I have the following URLs: 1. /page.asp?id=123 2. /page.asp?id=123&category=ABC 3. /page.asp?id=123&category=ABC&var3=X&var4=Y I need these pages redirected. Currently links 1, and 2 redirect correctly. Option 3 though can have an arbitrary number …

Member Avatar for mattster
0
418
Member Avatar for Lonestar Jack

When I remove or comment out the alert statement it fails. $(document).ready(function(){ $('#div_db, #div_tables, #div_data, #div_nav').hide(); $("#div_db").load("generic_get_dbs.php"); $('#div_db').show(); alert('line 5'); });

Member Avatar for Lonestar Jack
0
136

The End.