39,402 Topics

Member Avatar for
Member Avatar for Xytheron

Hello all! I'm a bit confused on how to use JSON. So far I've been doing fine but now that the format includes arrays I'm hitting a wall. I'm using weather underground's API to to pull weather data. My file is http://api.wunderground.com/api/658c0f8b283e4b98/tide/q/VA/Norfolk.json This may help for visualizing if you haven't …

Member Avatar for veedeoo
0
200
Member Avatar for Squidge

Good afternoon all. I have built the below class, and seem to have a problem where nothing is being displayed: <?php include_once '../include/tableStructure.php'; include 'crud.php'; //<- class by pritaeas class navigation { public $dsn; public function __construct() { $this->dsn = new crud($username, $passwd, $tableConfig); } public function nav($table, $live, $loc) …

Member Avatar for Squidge
0
260
Member Avatar for winbala5

Hi all... gud evening.......... I want to share one link to tumblr page. How to do? And also i want to calculte the number of likes counts, share counts, post counts, follow counts.. Kindly send me examples or any reference website. Thank you.

Member Avatar for cereal
0
145
Member Avatar for imti321

i have three entries in phpmyadmin id name and image i want to upload image from the form into database and display that back into the form where from i am uploading it.I get this error PHP Warning: mysql_insert_id() expects parameter 1 to be resource, null given in D:\path\to\sitename\httpdocs\sql\uploadimage.php on …

Member Avatar for Webville312
0
454
Member Avatar for SQLpower

Hello. So, I have 2 questions. First is: I am trying to calculate the expiration date which will be calculated as adding the current date + the option that has been select i.e. 30, 60 or 90 days. $EXday = date('d', mktime(0,0,0,0, date(d) + $_POST[exdays], 0)); $EXmonth = date('m', mktime(0,0,0, …

Member Avatar for SQLpower
0
256
Member Avatar for dshiells

Hi all, I'm trying to create my Wordpress plugin admin page using metabox's. Using add_meta_box() and do_meta_boxes() I can create the boxes and they nicely reposition, however I am struggling to find a way to save the order. I was wondering if there was a callback for when a reordering …

Member Avatar for dshiells
0
153
Member Avatar for code_rum

Hi, I have imported .csv file and column is appearing as Col 1, Col 2... and the data I want as a column name is appearing as a first row. How do I convert my first row into column name in phpmyadmin. Thanks in advance

Member Avatar for code_rum
0
1K
Member Avatar for rubai

Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'some_user'@'abcd.efgh.com' (using password: YES) in /home/some_dir/public_html/some_dir/db.php on line 1 Fatal Error: MySql connection failed.Access denied for user 'some_user'@'abcd.efgh.com' (using password: YES) Here is my code of db.php <?php $connect = mysql_connect('www.example.com','some_user','some_password'); if(!$connect) die('Fatal Error: MySql connection failed.' . mysql_error()); $connect_db = mysql_select_db('db_name'); if(!$connect_db) …

Member Avatar for pritaeas
0
363
Member Avatar for ytrobe

I am using WAMP server to code a form. The form contains 6 different pages. On the WAMP server when I go through the form it works perfectly, all session variables are brought from one page to the next, and so on. I call session_start() before each and every page …

Member Avatar for ytrobe
0
2K
Member Avatar for davidjennings

Hi all I am request the following data from the database (image_id and description). I need to put each of them in a separate arrays and then echo out contents of both arrays I have tried array_push and implode without success. Any assistance would we appreciated. Thanks in advance D …

Member Avatar for davidjennings
0
3K
Member Avatar for microlab123

Hi, please I need an code to do on my website a little upload of files(simple). Thank you!

Member Avatar for diafol
0
71
Member Avatar for NickBogi

I'm hoping the Daniweb community can help where other forums have been unable to! I am attempting to have my code count how many top level menu items there are and then determine what position each menu item is in. So, if it is the first, it will append the …

Member Avatar for NickBogi
0
187
Member Avatar for jasminjew

hello friends, What is the difference between Mysql_fetch_object and mysql_fetch_array ?

Member Avatar for veedeoo
0
379
Member Avatar for honkyno1

I have a form that I am trying to create a link to insert a new record within a dynamic table I am able to accuratly do this with a form as below using a submit button <tr> <form method="POST" action="<?php echo $editFormAction; ?>" name="submitOption" id="submitOption"> <td class="tdInvisible"><?php echo $row_allQuestionOptionUser['optionKey']; …

Member Avatar for honkyno1
0
146
Member Avatar for asharsit
Member Avatar for Fiorentino01^

Hi I am creating an hotel reservation site for a friend.I found a nice tutorial on html.it and the code runs fine from the command line, no problem. Now I need to build an interface say to insert clients's data. So I have a form.My problem is that for the …

Member Avatar for cereal
0
188
Member Avatar for ditty

Hi, I am doing a photo library which includes large size of photos. One photo size may be around 80-100mb. And also the file type may be different. Is it possible to do it using php. if yes please give me the details.Thanks

Member Avatar for Szabi Zsoldos
0
148
Member Avatar for lilwizz770

I am working on a massive application that deals with ecommerce, i am an intermediate when it comes to developing applications in php. If you are interested please reply and we can talk more on what is involved.

Member Avatar for uniecommerce
0
139
Member Avatar for Albert Pinto

Hi People, I've got a small query regarding checkboxes. I have a form, where there are input box, textarea, radio buttons and checkboxes. After form submit, Insert query gets fired and data gets inserted properly. I'm storing checkbox value as a string, I mean, the checkbox array... I'm converting it …

Member Avatar for Albert Pinto
0
2K
Member Avatar for mallows.yum

hello all. here is my code which searches all my record. <?php /** * Main.php */ include("include/session.php"); //include("viewproj.php"); ?> <html> <head> <title>Export to Excel</title> </head> <body> <form action="searchemp.php" method="post" > <?php define ('DB_NAME', 'vincegac_vince'); define ('DB_USER', 'root'); define ('DB_PASSWORD', ''); define ('DB_HOST', 'localhost'); $link = mysql_connect(DB_HOST, DB_USER, DB_PASSWORD); if (!$link) …

Member Avatar for mallows.yum
0
218
Member Avatar for shlokka

hi everyone, i run a website and the email script for some reason is sending emails to users trash/spam folder, or npt sending at all. it seems to be on most yahoo email addresses, and possibly gmail. the email script is written with php in codeigniter, and it runs on …

Member Avatar for almostbob
0
412
Member Avatar for mjsmitten

I build a code to eventually get a random item per category. Functions are working. I am just curious if the WHILE and IF are accurate. I am not sure if the first two unset() is good or do I need to drop those? And more important WHY the random …

Member Avatar for diafol
0
143
Member Avatar for divyakrishnan

Hi, I want to upload a file from one machine to another server ie application is in server A and path of the uploaded file is in server B. How can I implement this without using curl, ftp and ssh. The code which I have used is shown below. But …

Member Avatar for pritaeas
0
628
Member Avatar for kiLLer.zoh_1

$accname =$_POST['uaccountname']; $aid =$_POST['aid']; if($_SERVER['REQUEST_METHOD'] == 'POST' && $_POST['submit'] =='update account') { $qry = "UPDATE accounts SET acc_name = $accname WHERE acc_id =$aid"; mysql_query($qry) or die(mysql_error()); } it gives folling error You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for …

Member Avatar for diafol
0
317
Member Avatar for klemme

Hi all, I cant seem to find the place in developers.facebook where I can see my access token for my facebook PAGE (not app..). I need to find that, and then set permissions to manage MANAGE_PAGES. Isnt that the right way to do it, when my goal is to be …

Member Avatar for veedeoo
0
99
Member Avatar for yogesh matta

i want to make a online examination project so plz help me i want to fetch the questions randomly from database and with 4 options and when i answer this question it should match with correct answers so that i can display th result of the test plz give the …

Member Avatar for diafol
-2
161
Member Avatar for UK-1991

Hello All bellow is the code for time in which is not showing up when i login as admin. Php Code: <?php $query = "select * from presence where uid=".$uid." and date='".$date."'"; $recordset = mysql_query($query); while($record = mysql_fetch_array($recordset)) {$count = 1; //echo "<td>Your Time In :==: ",$record["timein"],"</td></tr><br></table>"; echo "<center><table><tr><td>Your Time …

Member Avatar for diafol
0
185
Member Avatar for mjsmitten

Is it possible to make a while loop for a function but in stead of just echo it's result, store it in an array??? values in database for example: one, two, three, four. In a normal way I do: While (havenumbers()) { echo havenumber(); // displays "one" etc. } In …

Member Avatar for paulkd
0
127
Member Avatar for davy_yg

Hallo All, How to add google maps on certain address with php / html script ? How to find the script ? This is what I have so far that I would like to change the address: <div class="row"> <iframe width="100%" height="350" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://maps.google.com/maps?f=q&amp;source=s_q&amp;hl=en&amp;geocode=&amp;q=Skybee+One+Building,+JL.+Kebon+Sirih+Raya,+Kavling+63,+Central+Jakarta,+DKI+Jakarta,+10340,+Indonesia&amp;aq=&amp;sll=-6.180705,106.831355&amp;sspn=0.028245,0.045447&amp;ie=UTF8&amp;hq=Skybee+One+Building,+JL.+Kebon+Sirih+Raya,+Kavling+63,+Central&amp;hnear=Jakarta+Pusat,+Jakarta+Capital+Region+10340,+Indonesia&amp;ll=-6.183313,106.82726&amp;spn=0.014122,0.022724&amp;t=m&amp;z=14&amp;iwloc=A&amp;cid=16520793013655425908&amp;output=embed"></iframe> </div> Thanks.

Member Avatar for davidkroj
0
148
Member Avatar for mjsmitten

I have a question about using variables inside a function. The first part of code is not working. It appears that the variable '$myvalue' is not being served to the function although when I echo the $myvalue it has the right text. If I however use normal text, it WORKS! …

Member Avatar for IIM
0
163
Member Avatar for geneh23

Hey everyone, Sorry for the lack of knowlege. I've tried google-ing how to imput and display images on a web page without the image showing up in weird symbols, but I've had no luck. Can anyone help me? My purpose is to simply store an image manually into a mysql …

Member Avatar for cereal
0
720
Member Avatar for php.coder

Hi; how can i show the delete and edit link to the user who has posted the comment just like in facebook only the person who has posted the comment is allowed to edit or delete the comment below is my code <?php //including the database connection file include_once("includes/settings.php"); connect(); …

Member Avatar for klemme
0
328
Member Avatar for NitsPatel

hi i m new for the webservices. i don't have knowledge about webservices. I want to make webservice for all image url retrieve from the database . i don't know what to do for that .so, give me some suggestion. My website link is : http://richmondhillgalive.com/index.php/local-deals.html from this page i …

Member Avatar for pritaeas
0
119
Member Avatar for jhonsamuel

Hai , In my database's table(table name is 'datas_disp') there are 8 coulmns , they are id, brand_name, time_period, image_path, Shop_name, shop_address, more_info, category. i want to auto-mail all these contents when they reach 30 day.and delete the product from my database, anybody know the scrpt , if yes please …

Member Avatar for jhonsamuel
0
72
Member Avatar for klemme

Hi all, I have to create a function, that lets users write a newsletter from an intranet, instantly share that on the companys Facebook page wall. The intranet stuff is made, and all fine - just need to post it on the wall too.. Anyone knows what api or plugin …

Member Avatar for klemme
0
392
Member Avatar for ditty

Can any one help me to know about the api which will give the full list of amazon categories.

Member Avatar for ditty
0
201
Member Avatar for phaea

I've spent a good few hours trying to find the answer to this, even though it seems simple. I know that this error is usually a result of a quote being wrong, but this is the first time I've used PDO and I've tried various combinations of quotes, using BindParam …

Member Avatar for phaea
0
866
Member Avatar for sgubu

-- phpMyAdmin SQL Dump -- version 3.4.5 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: May 29, 2013 at 04:31 PM -- Server version: 5.5.16 -- PHP Version: 5.3.8 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET …

Member Avatar for diafol
0
2K
Member Avatar for aadebayo

I need to display Firstname as a fixed lenght, irrespective of how long firstname is, so that the phone nunmber in front can start from the same area. I have written some code, but it does not work. I need the telephone numbers to start at the same point, irrespective …

Member Avatar for pritaeas
0
129
Member Avatar for nickp87

Hi all, most likely a basic question but i know nothing when it comes to php. Basically i have all my php files and database set up for my login and registration but i am at a loss on how to incluse it into my html website. I have tried …

Member Avatar for diafol
0
166
Member Avatar for ceeandcee

I am trying to add the Facebook Comment plugin to my site. http://www.ourhometown.ca/hockey/nhl/NHL0017.php When you visit the link in Firefox you get the above URL. If you hit refresh, you get something like: http://www.ourhometown.ca/hockey/nhl/NHL0017.php#.UbAQAth230c This lack of a static url will cause issues for the site. Does anyone know how …

Member Avatar for cereal
0
223
Member Avatar for davy_yg

Hi, I am having a problem with my ckeditor. Whenever I insert an image in ckeditor and save it the image turn to [x]. The "\" mark in the file name disappeared. I am trying to fix the code: ckeditor_php5.php [CODE] if (isset($_SERVER['SCRIPT_FILENAME'])) { $realPath = dirname($_SERVER['SCRIPT_FILENAME']); } else { …

Member Avatar for LastMitch
0
142
Member Avatar for zakmail007

I have two stored procedure but when i call two stored procedure then given error comes: "Warning (512): SQL Error: 2014: Commands out of sync; you can't run this command now [CORE/cake/libs/model/datasources/dbo_source.php, line 684]" i'm using cakephp. And my code is: $city=$this->City->query('call CityMaster_SelectCityName'); $allAgents=$this->Admin->query('call WorkForceLoginMaster_SelectLoginName(0)'); What i do any simple …

Member Avatar for LastMitch
0
156
Member Avatar for seju

hello i have one problem.. my one tabel is.. user: userid,username,usertype,email-add. 2nd table is manager:id,managerid,userid.. userid n id is primary key.. userid is foreign key in manager table..usertype:manager,sender.i want to display..sender and its related managerid..if its is match then display record or not match then display null..i hope u understand …

Member Avatar for LastMitch
0
118
Member Avatar for arjani10

Hello!Somebody can help me please how can i autolink any word i have in my webpage autolink in php ? example array $word_list = array ( 'dogs' => 'http://dogs.com', 'dog' => 'http://dogs.com', 'cat' => 'http://cats.com', 'kitten' => 'http://cats.com', 'horse' => 'http://horses.com' ) any text dogs in my website corispond to …

Member Avatar for arjani10
0
887
Member Avatar for joseph.lyons.754

Can anybody point me in the direction of a good tutorial or pre written script for mailing many users from a database. Have been searching for the last two days and have got nothing good :(. Any help will be greatly appreciated. Either through gmail smpt or through a legitamate …

Member Avatar for cereal
0
227
Member Avatar for ashlisha

i have installed xampp in C: now I want it either uninstall it or change path to D: xampp is not showing in Add/Remove programs.so, tell me simple steps explained so that i can do either of two ways...

Member Avatar for diafol
0
40
Member Avatar for Rahul47

What is wrong with this type of assignment ? $name=array('ch' => 'chester' , 'mike', 'joe'); foreach( $name as $value) { echo $value; echo "<br>"; } Thanks.

Member Avatar for diafol
0
146
Member Avatar for rahul.pragma

REF: https://en.wikipedia.org/wiki/Content_delivery_network A content delivery network or content distribution network is a system of computers where our website is stored so it’s data (images/videos) can be served from multiple locations. However I dont want to use any online paid/unpaid CDN services but would like to setup CDN on my own …

Member Avatar for Dani
0
276
Member Avatar for Rahul47

count() and sizeof() both are used for retriving size of array. Are there more jobs that these two can do ? Thanks

Member Avatar for AaryaSiddharth
0
100

The End.