39,320 Topics

Member Avatar for
Member Avatar for 18engineer

i am learning php... i want to implement ajax with php.. can u tel me a good tutorial of implementing ajax with php? i have visited [url]www.w3schools.com[/url] but it provide a very basic intro about ajax and php... i need some implementation examples... Thanx

Member Avatar for Nick Evan
0
104
Member Avatar for cskinittest

hai iam new to this domain. iam developing online quiz contest project in php (mysql,javascript,ajax) i need Automatic session timeout/logout and also i need time counter display using php and AJAX. pls refer any website. i searching for last 2 days.. advance thanks..

Member Avatar for Stefano Mtangoo
0
1K
Member Avatar for Helinxed

Hello everyone,I need a help to back values from php to javascript... Listen: [CODE] __hasInventory = true; _iMatrix = []; $.ajax({ url: 'index.php?acao=test', dataType: 'script', type: 'post', data: {mode: 0}, success: function () {[/CODE] If is all Ok with post method,I'd like it back with results passing PHP results to …

Member Avatar for Helinxed
0
161
Member Avatar for davy_yg

product_preview.php [CODE] <h2><center>Product Preview</center></h2> <p> <form method = "post" action = "product_edit.php" > <p> <input name="tambah_produk" type="button" value="Tambah Produk" /> </p> </form> <table border="1" cellpadding="2"> <tr> <td>No </td> <td>Nama Produk</td> <td>Harga</td> <td>Tgl Masuk</td> <td>Aksi </td> </tr> <?php include ("includes/koneksi.php"); $i = 1; $output = mysql_query("SELECT * FROM produk") or die(mysql_error()); …

Member Avatar for Stefano Mtangoo
0
278
Member Avatar for asif49

Here's a simple version of my problem: [CODE] <?php $words = "hEllO wOrLD"; //the input (is usually always different each time) $phrase = "I made a program which prints Hello World"; $result = str_ireplace("$words", "<b>$words</b>", "$phrase"); //str_ireplace(search_for, replace_with, apply_to) echo $result; ?> [/CODE] This would produce the output "I made …

Member Avatar for diafol
0
238
Member Avatar for Sorcher

Hello! I am fetching some names from MySQL and i want to remove duplicated strings. Currently got this code: [CODE]function get_PublicAlbums(){ $sql = "SELECT * FROM `ue-userfile` WHERE public=1"; $result = mysql_query($sql); $html = ""; while($row = mysql_fetch_array($result)) { $albumname = $row['albumname']; $html .= '<p><a href="index.php?page=public-albums&an='.$albumname.'">'.$albumname.'</a></p><br/>'; } /* It might …

Member Avatar for Sorcher
0
151
Member Avatar for extjac

Hi, i am trying to make this work but i guess i am missing something..... This is what i have: "db.php" [CODE] <?php DEFINE('DATABASE_USER', 'root'); DEFINE('DATABASE_PASSWORD', '123456'); DEFINE('DATABASE_HOST', 'localhost'); DEFINE('DATABASE_NAME', 'livesearch'); $mysqli = new mysqli(DATABASE_HOST, DATABASE_USER, DATABASE_PASSWORD, DATABASE_NAME); if (mysqli_connect_errno()) { printf("Connect failed: %s\n", mysqli_connect_error()); exit(); } else { //connected …

Member Avatar for extjac
0
374
Member Avatar for chiiqui

I just wanted to know what famous algorithms that you should have in hand? or be familiar with? or That is always used?

Member Avatar for JeffGrigg
0
234
Member Avatar for 18engineer

i am learning php... i want to implement ajax with php.. can anyone tel me a good tutorial of implementing ajax with php? i have visited [url]www.w3schools.com[/url] but it provide a very basic intro about ajax and php... i need some implementation examples... Thanx

Member Avatar for diafol
0
167
Member Avatar for davy_yg

contact_us.php [CODE] <h2>Contact Us</h2> <br /><br /> <form action="send_email.php" method="POST"> <table border="0" cellpadding="2"> <tr> <td>Nama Lengkap: </td> <td><input name="nama" type="text" value="" size="30" /></td> </tr> <tr> <td>E-mail: </td> <td><input name="email" type="text" value="" size="20" /></td> </tr> <tr> <td>Nomor Telepon: </td> <td><input name="telp" type="text" value="" size="15" /></td> </tr> <tr> <td>Pilih Subjek : </td> …

Member Avatar for davy_yg
0
351
Member Avatar for architact

Hello Coders, I am trying to generate the pdf file using php, I successfully generated the php file and then I tried to insert an image in the pdf file using php and got this error, I have the image and file in the same directory and don't know why …

Member Avatar for Bibhas Biswas
0
277
Member Avatar for lobebe

I want [ICODE]<?php } ?> <?php if (isset($this->request->get['route']) && $this->request->get['route'] == 'information/contact') { ?> $('#tab_contact').addClass('selected'); <?php } ?> [/ICODE] to replace [ICODE]<a href="<?php echo $wishlist; ?>" id="wishlist_total"><?php echo $text_wishlist; ?></a>[/ICODE] How can i do this?

Member Avatar for lobebe
0
263
Member Avatar for munna_90

Hi , My requirement is user entered data needs to pass in to url Ex : user entered : Munna_90 The entered value has to be pass in to link http://details.orgnaistion/emp?function=directAccess&action=displayname="Munna_90" (user entered details) After clicked on submit button it has to redirect me to the full deials page of …

Member Avatar for munna_90
0
153
Member Avatar for vlowe

hi, i am trying to filter my gps history points. i would like to ignore points if they are too close to the previous position. i can do this like so. [CODE]$old_lat = $old_long = "0"; foreach($history['data'] as $record) { //calculate distance in meters $distance = distance($record['latitude'], $record['longitude'], $old_lat, $old_long, …

0
121
Member Avatar for paresh_thummar

Hi friends I am learning GOOGLE API I got error : Invalid Signature Here my code Any body have idea And thx in Advance [CODE] function GetRequestToken() { $consumer = 'MY_CONSUMER KEY'; $secret = 'MY_COSUMER_SECRETE'; $callback = 'http://localhost/Gcontacts/welcome/redirection'; $sign_method = 'HMAC-SHA1'; $version = '1.0'; $scope = 'https://www.google.com/m8/feeds/'; $path = "/accounts/OAuthGetRequestToken"; …

Member Avatar for paresh_thummar
0
267
Member Avatar for ivanichi

we can actually use number_format, but I want results that are not rounded, so I use function. i want to change a. 1000 >> Rp 1.000,- b. 10000 >> Rp 10.000,- c. 100000 >> Rp 100.000,- d. 240857.5 >> Rp. 240.857,5 and then i create function for it, a, b …

0
62
Member Avatar for amanu092

How can I integrate bluepay payment method API with joomla?Is there any one to help me please? Thanks

Member Avatar for chrishea
0
197
Member Avatar for IanArcher

I am trying to write a php script that will take find the path of a webpage or a url, and convert the css from the server or local folder to inline code. I've looked pretty much all over the internet and looked for many solutions that could help me …

Member Avatar for pritaeas
0
565
Member Avatar for xtra333

Hello Daniweb posters. I have a code that is supposed to make a sign up sheet for a web page. Problem is, the code does not work. When I run the code it gives me: syntax error, unexpected T_PRINT in line 15. I know there is something wrong with the …

Member Avatar for xtra333
0
207
Member Avatar for InfernalEternal

I'm modifying a page that handles content addition. I've been tasked with allowing simple PDF file uploads, but can't figure it out. The PDF is to be posted, then uploaded and the title saved into a database field. All this functionality is to be contained within the one content addition …

Member Avatar for phoenix_2000
0
130
Member Avatar for garymae14

hi there! i would like to ask if what am i going to do to save in having multitasking function . here's my code below: can u suggest what to do wih this thing ? thanks <?php $server = 'localhost'; $user = 'root'; $password = ''; $database = 'access'; $con …

Member Avatar for phoenix_2000
0
91
Member Avatar for globalaction

(If you are familiar with Memcached, better) can take a look at the img. on the third column (named 'Value'), I need to put a 'button/link' that when clicked it will display/hide the content of the cell. In a sort of javascript 'toggle' function. (i'm not sure which to use: …

Member Avatar for phoenix_2000
0
377
Member Avatar for Shazeee

I m using jslider in php properly displaying on localhost but not on webserver. please help me to solve thw problem thanx shahzad

Member Avatar for phoenix_2000
0
86
Member Avatar for turt2live

Hello, [[All sample links may not work after the thread is solved, I will keep them up as long as I can though]] I'm trying to make a graph work, which it does, not when CSS is present on a page though... In my setup I use graph.php to create …

Member Avatar for turt2live
0
351
Member Avatar for brozie

how can i separate join array at the out level e.g syntax: join(x,y,z); i want to work with the individual values. you can mail the ans to [email]dejumejos@yahoo.co.uk[/email]

Member Avatar for pritaeas
0
39
Member Avatar for lima01

Hi. I am making a membership application in which users will need to login and then can make a reservation, edit their previous reservation, cancel etc, and in which admin will be able to add new users, edit all reservation etc. So I would like to ask you is php …

Member Avatar for Stefano Mtangoo
0
212
Member Avatar for aanders5

Okay, so what I am trying to do is pull user data from a phpBB forum site, basically just what a member's ID is, their "rank", join date, and the other information fields that are generally displayed on their account to the public. The problem is, the site is setup …

Member Avatar for peter_budo
0
283
Member Avatar for jcruz900

I'm having trouble sorting my column tables. When a title of a column is clicked, it is sorted alphabetically or by number smallest to biggest. I'm also having trouble formatting the date (Born and Died dates). Currently it looks like this YYYY-MM-DD. I need it to look like this MM-DD-YYYY. …

Member Avatar for cwarn23
0
171
Member Avatar for jetlife76

Ok i am trying to create a simple program that will allow me to use an array with 8 numbers, the output form should show the numbers in their original order that the user inputs them, in numerical order, Highest number, lowest number and then the average number. If anyone …

Member Avatar for Stefano Mtangoo
0
141
Member Avatar for dr.4030

Hi, this is my page which is displaying the products that i inserted inside my database tables for example this is for one of them that named table1 : [CODE]<table width="850" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td> <?php include "../db.php"; ?> <?php error_reporting(0); //Rows $imgRow = '<tr>'; $idRow = '<tr>'; …

Member Avatar for divyakrishnan
-1
69

The End.