Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
100% Quality Score
Upvotes Received
1
Posts with Upvotes
1
Upvoting Members
1
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
0 Endorsements
~11.5K People Reached
Favorite Tags
Member Avatar for pucivogel

How do i reference to a folder? I'm want the photos in folder 'gallery1' to be shown when i click on it, this htm code is in the same directory with folder gallery1 i've done this: <a href="gallery1" onclick="return false" onmousedown="ajax_json_gallery('gallery1')">Gallery 1</a><br> but nothing shows when i click on it

Member Avatar for stbuchok
0
244
Member Avatar for pucivogel

I have a script that uploads documents, it uploads them in the destination folder, but not the info about the document. Pleasa help i need this as soon as possible. No errors show. <?php $UploadDirectory = 'C:/wamp/www/agenda1/uploaddok/uploads/'; //Upload Directory, ends with slash & make sure folder exist $SuccessRedirect = 'http://localhost:8080/agenda1/index2.php'; …

Member Avatar for broj1
0
397
Member Avatar for pucivogel

How can i make an ajax request through a link, i mean when i click on link <a href=.... it sends an ajax request to a php file which shows in my case a table?

Member Avatar for JorgeM
0
382
Member Avatar for pucivogel

So, i want to display data from a table in my db (Mysql), i click the buttonto get the data, it sends request via Ajax and Ajax calls getdata.php file. The table which is supposed to return the data returns in everyfield the written code like "$head" and "$value". I …

Member Avatar for AleMonteiro
0
241
Member Avatar for pucivogel

Is there anyway to view/download binary files from a folder in my server with Ajax? If not in ajax, in php? Can you show me any tutorial or page which shows this?

Member Avatar for AleMonteiro
0
224
Member Avatar for pucivogel

I get this error Notice: A non well formed numeric value encountered in C:\wamp\www\agenda\index2.php on line 178 on th following line : echo ' <b><a href="engine/changedate.php?date=' . date("Y-m-d", $dtime) . '">' . date("Y-m-d", $dtime) . '(' . $days . ')</a>:</b><span title="' . $recordSet->fields["description"] . '">' . $recordSet->fields["title"] . '</span>'; any …

Member Avatar for pucivogel
0
154
Member Avatar for pucivogel

I have this code it uploads photos and deletes photos, but how can i make it to upload photos in a folder i want not in the same folder where the script is, i just can't see where can i implement the path. Here's the whole code: <?php /** * …

Member Avatar for Squidge
0
304
Member Avatar for pucivogel

i have downloaded this script , a photo gallery which creates albums, uploads photos, deletes them, i nedd to insert the path of the folder according to this instructions : $script_url=$_SERVER['PHP_SELF']; //Change this if you want to use this as an include file. $files_path="./album/"; // Where does the album start? …

Member Avatar for Squidge
0
252
Member Avatar for pucivogel

I am following this tutorial http://www.css-resources.com/code-for-php-photo-gallery.html to create php photo gallery but i get errors undefined index photos, categories and cy when i run this code, it gets the category names in a textarea and adds them in the db, in the output also says no database selected but i …

Member Avatar for michel.cote
1
301
Member Avatar for pucivogel

can anyone help me with this error? INVALID_STATE_ERR: DOM Exception 11 on this line hr.setRequestHeader("Content-type","application/x-www-form-urlencoded");

Member Avatar for gon1387
0
158
Member Avatar for pucivogel

I have this part of code <?php $showmonth=$_POST['showmonth']; $showyear=$_POST['showyear']; $showmonth=preg_replace('#[^0-9]#i','',$showmonth); $showyear=preg_replace('#[^0-9]#i','',$showyear); $day_count=cal_days_in_month(CAL_GREGORIAN,$showmonth,$showyear); $pre_days=date('w',mktime(0,0,0,$showmonth,1,$showyear)); $post_days=(6-(date('w',mktime(0,0,0,$showmonth,$day_count,$showyear)))); but i get errors like undefined index showyear,and errors on cal_days_in_month parameter 3 expected to be long, and also mktime parameter 6 expected to be long all due to the undefined index, how do i fix …

Member Avatar for riahc3
0
162
Member Avatar for pucivogel

can anyone show me how to upload a binary file using Ajax (and php of course) I mean the html and js ?

Member Avatar for stbuchok
0
3K
Member Avatar for pucivogel

I'm pretty new to AJAX so this may look like simple questions but..., so i want my file to be stored in a table in a db i have on my localhost, i'm using iframe <iframe id="upload_target" name="upload_target" src="#" style="width:0;height:0;border:0px solid #fff;"></iframe> what source do i provide, what about the …

Member Avatar for LastMitch
0
180
Member Avatar for pucivogel

I want to check for duplicates when inserting a new contact in my database, then showing a msg that the contact is already in the db. this is what i've done: function isDuplicate(names,phone,email,adresa){ var isduplicate=false; for(var i=0;i<addresslist.length; i++){ if(addresslist[i].names.toLowerCase()==names.toLowerCase() && addresslist[i].phone.toLowerCase()==phone.toLowerCase()&& addresslist[i].email.toLowerCase()==email.toLowerCase()&& addresslist[i].adresa.toLowerCase()==adresa.toLowerCase() ){ isduplicate=true; } } return isduplicate; } …

Member Avatar for stbuchok
0
185
Member Avatar for pucivogel

I have this part of code, ajax will call a function saveContact with parameters name, phone, email, address, is this code ok? $.ajax({ url: 'addressbook.php', data: 'action=saveContact()','&name='+name+'&phone='+phone+'&email='+email+'&adresa='+adresa; dataType: 'json', type: 'post'

Member Avatar for AleMonteiro
0
2K
Member Avatar for pucivogel

Can anyone explain me better the conpcept of the webservice. I'm using wamp for a school project, i'm creating an adress-book with JSON and AJAX. The Deitel's one if you have encounteered it before. I have the deitel's code and simply want to implement it in my website. It's requesting …

Member Avatar for gon1387
0
234
Member Avatar for pucivogel

<?php mysql_connect("localhost", "root", "") or die(mysql_error()); mysql_select_db("agenda") or die(mysql_error()); $q = mysql_query("INSERT INTO kontakte (emri, mbiemri,e-mail,nr,adresa,shenime) VALUES( '{$_POST['emri']}' '{$_POST['mbiemri']}', '{$_POST['e-mail']}', '{$_POST['nr']}', '{$_POST['adresa']}', '{$_POST['shenime']}') "); if (!$q) { $message = 'Invalid query: ' . mysql_error() . "\n"; $message .= 'Whole query: ' . $query; die($message); } ?> <html> <head></head> <body> <div …

Member Avatar for urtrivedi
0
138
Member Avatar for pucivogel

I'm trying to build an agenda website in php, have downloaded a free css, I have done all the necessary implementations on the index page , i mean have included som php scripts. When i load it from my browser it doesn't show the design, i mean the technical changes …

Member Avatar for DDarren
0
268
Member Avatar for pucivogel

I have created a cube in visual studio, when i want to deploy it i get the following error: Error : The project could not be deployed to the 'USER-PC\SQLEXPRESSR2' server because of the following connectivity problems : A connection cannot be made to redirector. Ensure that 'SQL Browser' service …

Member Avatar for pucivogel
0
178
Member Avatar for pucivogel

Hi everyone i'm learning linux now and i'd like to know what can be defined as a complex command on linux and how to program(apply) it on the terminal i know simple commands like ls, cd, mkdir and lots of others.Also can u tell me please how can i program …

Member Avatar for JasonHippy
0
207
Member Avatar for pucivogel

Can anyone help me out.I can't understand why am i getting this kind of error [CODE]#include <iostream> #include <string> #include<sstream> #include<iomanip> using namespace std; void getDerivative() (double [],int[]); void print_d_Array (double[]); void print_i_Array (int []); int main () { const int polynomsize=5; string sub[polynomsize]; string coefficient[polynomsize]; string exponent[polynomsize]; double coefdouble[polynomsize]; …

Member Avatar for alaa sam
0
146
Member Avatar for pucivogel

How can i store in an integer array a negative number of type string?i mean i want it to be recognized that it is a negative nr.

Member Avatar for mrnutty
0
81
Member Avatar for pucivogel

I want to get this string arrays and turn them into double arrays, but i get this : [CODE]#include <sstream> #include <cstdlib> #include <iostream> #include <string> using namespace std; int main () { string str[3]={"2.5","3","1.5"}; istringstream stm; double d[3]; for(int i=0;i<3;i++) {stm.str[i]; stm >>d[i]; cout << d[i] << endl; } …

Member Avatar for arkoenig
0
214
Member Avatar for pucivogel
Member Avatar for Moschops
0
131
Member Avatar for pucivogel

Hey there!I'm doing this symbolic differentiation program,and i have some problem with the code.The code in the "main" is ok ,but i have problems in the "to_term" function.Can you help me out to find where my mistake is?Please if you have any idea reply me now Thanks. [CODE]#include <iostream> #include …

Member Avatar for pucivogel
0
148
Member Avatar for pucivogel

Hi there,i have to create a program that shows the symbolic derivative of a polynomial function, and my teacher told that it is all about string manipulation,but i cant find find any valid tutorial or something that shows me how to do it.i've checked but what i have found is …

Member Avatar for pucivogel
0
304
Member Avatar for pucivogel

#include <iostream> #include <iomanip> using namespace std; class Derivate { public: showDerivate(); void showFunc(); }; int main() { int nr; Derivate drv; drv.showFunc(); drv.showDerivate(); std::cin.get(); return 0; } void Derivate::showFunc() { cout<<"Nr"<<setw(20)<<"Function"<<endl; cout<<"1"<<setw(20)<<"x"<<endl; cout<<"2"<<setw(20)<<"cx"<<endl; cout<<"3"<<setw(20)<<"xpowc"<<endl; cout<<"4"<<setw(20)<<"1/x"<<endl; cout<<"5"<<setw(21)<<"1/xpowc"<<endl; cout<<"6"<<setw(20)<<"sqrt x"<<endl; cout<<"7"<<setw(21)<<"epowx"<<endl; cout<<"8"<<setw(20)<<"lnx"<<endl; cout<<"9"<<setw(20)<<"sinx"<<endl; cout<<"10"<<setw(20)<<"cosx"<<endl; } int Derivate::showDerivate() {cout<<"give the respective number …

Member Avatar for ravenous
0
209
Member Avatar for pucivogel

i am creating a program for hotel management,i want to get the source from JButton and JCheckBox at the same time,how do i do with actionListener? [CODE] import java.awt.*; import java.awt.event.*; import javax.swing.*; public class HotelManagementGUI extends JFrame implements ActionListener {static final String[] rommcouplesea={"1","2","3","4","5","6","7","8","9","10"}; static final String[] roomcoupleroad={"1","2","3","4","5","6","7","8","9","10"}; static final …

Member Avatar for AndreiDMS
0
85
Member Avatar for pucivogel

i have to create a n hotel management program using GUI, i hava done the gui part so far but i need help in creating the actionPerformed class,how am i supposed to do the reservation,and select rooms for 2 persons or one and rooms that overlook the sea or the …

Member Avatar for pucivogel
0
1K