39,402 Topics

Member Avatar for
Member Avatar for pankajjarial

[CODE]<?php include('connection/database.php'); require ('xajax/xajax_core/xajax.inc.php'); $xajax = new xajax(); function autocomplete($val) { if($val!="") { $query=mysql_query("select * from name where name like '".$val."%'"); $rows=mysql_num_rows($query); $out="<table width='100%' bgcolor='#bfbfc3'>"; while($data=mysql_fetch_array($query)) { $out.="<tr><td>".$data['name']."</td></tr>"; } $out.="</table>"; $objResponse=new xajaxResponse(); $objResponse->assign('div1','innerHTML',$out); $objResponse->script("jQuery:$('td').click(function(){ var a=$(this).attr('innerHTML'); $('#name').attr('value',a); $('#div1').attr('innerHTML',''); }); $('td').mouseover(function(){ $(this).css('background-color','gray'); }); $('td').mouseout(function(){ $(this).css('background-color',''); }); "); return $objResponse; } else …

Member Avatar for pritaeas
0
159
Member Avatar for diestro

Hi, Having some trouble getting it all together. I have a table in which i need to get Distinct names based on latest date. This is what the table looks like; Table Scores; [CODE] --------------------------------------------------------------------- | Name | Date | High Score | Medium Score | Low Score | --------------------------------------------------------------------- …

Member Avatar for diestro
0
115
Member Avatar for mohanrajit.88

Hi friends, I dont have clear idea about drupal forms. Please guide me to learn it.

Member Avatar for msk2020ckp
0
131
Member Avatar for deraad

I'm trying to simply display some data from my database, but without duplicates, I'm working with the following code: [CODE] $query = mysql_query("SELECT answers FROM users"); $rows = mysql_num_rows($query); for ($j = 0 ; $j <= $rows ; ++$j) { $row = mysql_fetch_row($result); echo $row[0]."<br>"; } [/CODE] This works perfectly …

Member Avatar for cwarn23
0
185
Member Avatar for Stefan_Lam88

Hi Guys, [CODE] Yii::app()->clientScript->registerScript('highlightAC','$.ui.autocomplete.prototype._renderItem = function (ul, item) { return $("<li></li>") .data("item.autocomplete", item) .append("<a><img src=\"'.$Image.'\" border=\"0\" width=\"25px\" height=\"25px\"/> " + item.label + "</a>") .appendTo(ul); [/CODE] BY refering the above code, I wish to attach my image into an autocomplete search bar where each result will have different image depend on …

Member Avatar for Stefan_Lam88
0
243
Member Avatar for khialbadshah

Hi I want to know how to insert picture and how to retrieve it from a table in PHP. Please help me.. Thanks in advance.....

Member Avatar for cwarn23
0
962
Member Avatar for wolfgangcs

So I learn and write php. Very messy I am sure. I find that MySQL is deprecated and no longer the latest and greatest. I want to take my app offline. Ok, but how can I do that if the remote server is not a option? How do I store …

Member Avatar for diafol
0
137
Member Avatar for Awah Mohamed

Hi guys.. Well, i am an IB student in grade 12 (last year in high school) last friday, the IT technician in my school dared me to make a mail server (send and recieve emails) and he said he can give me all the dns access that i need to …

Member Avatar for Stefano Mtangoo
0
118
Member Avatar for freebanana

I would like to automatize this process: Upload in private mode all selected videos on YouTube channel, then embed it on a private blogspot blog with the setting: no related videos, play in HD, custom width of 1500 by 1150 (or just custom width X where X is width and …

Member Avatar for Stefano Mtangoo
0
280
Member Avatar for KLMKLMKLM

WHAT in Heaven's name is a "T_STRING?" Nowhere do I see a definition of T_STRING, or why it is called T_something. From what I've been able to piece together, it might be an unquoted string. I have a [CODE]Parse error: syntax error, unexpected T_STRING in /home/xxxxxxxx/public_html/include/mmeetingDate.php on line 10[/CODE] Since …

Member Avatar for Stefano Mtangoo
0
269
Member Avatar for jacob21

Hi,I am new to jquery n using below code for submitting data in database. Its working fine for small data but not working for large data. Need suggestions Php code: [CODE]<?php include('db.php'); if($_POST) { $name=$_POST['name']; $desc=$_POST['desc']; $price=$_POST['price1']; //$type=$_POST['type']; mysql_query("INSERT INTO `pgdetail` (`name`, `desc`, `price`) VALUES ('$name', '$desc', '$price')"); } ?>[/CODE] …

Member Avatar for Stefano Mtangoo
0
201
Member Avatar for shujat132

Hello Dear Brothers & Sisters How are you………………….? Well, I am working on a personal project [COLOR="red"]http://www.propertyagentreviews.com/[/COLOR] that is about Property Agent Reviews. But now I am so much confuse because I can not find solution of one problem. And problem is that I want to create a message board …

Member Avatar for shujat132
-1
176
Member Avatar for asif49

This is for a website search function, I do the following to get several similar results from the mysql database: [CODE] $var = "words words words"; $str = explode(' ', $var); foreach ($str as $i) { $match[] = " e LIKE '%$i%' ";//to search each word within searched phrase separately …

Member Avatar for asif49
0
216
Member Avatar for morteza_ipo

Hi. I have this code: [CODE] %D8%AA%D8%B3%D8%AA [/CODE] how to convert this code with php to orginal text? Thanks.

Member Avatar for morteza_ipo
0
65
Member Avatar for nick_90

Good Day I've created this edit/update form with assistants of this tutorial [url]http://www.freewebmasterhelp.com/tutorials/phpmysql/7[/url] And when I click the update button I get these two messages Notice: Undefined index: artist_id in C:\wamp\www\Practical_Project\admin_artist_edit.php on line 2 Warning: mysql_numrows() expects parameter 1 to be resource, boolean given in C:\wamp\www\Practical_Project\admin_artist_edit.php on line 9 I …

Member Avatar for raphie
0
272
Member Avatar for WickidGRAFX

I want to deny acess the directory & sub-directories of: mysite.com/uploads/ The uploads directory has sub-directories such as: mysite.com/uploads/35 & mysite.com/uploads/35/83 mysite.com/uploads/35/83_a I need to deny access to all of these. I can use the typical htaccess methods to do this except that new sub-directories get added all the time …

Member Avatar for pritaeas
0
63
Member Avatar for naveedqadri

Hi All experts, I am new to php, I need your help in follwoing : 1: I want to display documents from my database (its ok ) 2: user select one or multiple 3: this selection should be retrived and downloaded one by one after payment done through paypal(there is …

Member Avatar for cwarn23
0
63
Member Avatar for TwinsInTow

Hi I have a WordPress Blog that I can no longer access due to a header redirect issue. I have no idea how to fix this. The error message I am getting is this: Warning: Cannot modify header information - headers already sent by (output started at /home/altalake/public_html/twinsintow.com/index.php(1) : eval()'d …

Member Avatar for TwinsInTow
0
309
Member Avatar for asif49

How do I do this? I use the following code to get position of the first occurrence (case insensitive) of $search within $space. [CODE] $word = stripos($space, $search); [/CODE] However I would like to totally ignore some characters while matching and get the position of similar substrings within the search …

Member Avatar for raphie
0
86
Member Avatar for Chett

Hi. I've been following the Build a CMS in an Afternoon tutorial at [url]http://www.elated.com/articles/cms-in-an-afternoon-php-mysql/[/url] . The CMS works great but the only thing it's lacking is pagination. The article archive displays the list of all of the articles that are in the database, but I want to be able to …

Member Avatar for diafol
0
73
Member Avatar for lobebe

I am trying to input an option into exist code but i get this error: "Undefined variable: options in /home/dealsyno/xxxx/product/category.tpl on line 91" Kindly see below the code. [ICODE]<?php echo $header; ?><?php echo $column_left; ?><?php echo $column_right; ?> <div id="content"><?php echo $content_top; ?> <div class="breadcrumb"> <?php foreach ($breadcrumbs as $breadcrumb) …

Member Avatar for pritaeas
0
269
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
106
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
162
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
285
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
242
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
155
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
377
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
235
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
170
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
357
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
285
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
264
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
162
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
124
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
271
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
64
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
199
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
594
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
210
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
133
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
93
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
383
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
89
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
354
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
41
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
215
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
288
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
172
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
143

The End.