38,019 Topics

Member Avatar for
Member Avatar for kshahnazari

I'm just learning jquery , The thing is that how can I make jquery and php contact each other in one single page ? if there is an example I really appreciate it!

Member Avatar for Patrick Thomas
0
310
Member Avatar for Mike Bishop

can anyone help me with the code below, I would like to strip out comas from the URL http://www.balmanltd.co.uk/products/steering/ball-joints/ball-joint,-drag-link-end/am1148 $str = trim($str);/*remove any unwanted outer spacing*/ $urlkey = preg_replace("/[^0-9a-zA-Z]+/","-",strtolower($str)); $htmlkey = ($htmlext) ? $urlkey.".html" : ""; return array($urlkey,$htmlkey);

Member Avatar for diafol
0
154
Member Avatar for sukhdev.singh

Hi this is Sukhdev, I am new in php and wish to know how to import the data from excel sheet to mysql Table; 1. I have a table with the name of city in mysql with following fields; city_id,city_name,tier_id,tier_name,state_id,state_name 2. what would be the function for uploading above fields, …

Member Avatar for chrishea
0
327
Member Avatar for thunder234

I have the following code for a login page that is supposed to display an error when the user enters the wrong username and password combination. can anyone have a look at the code and tell me why it isnt displaying the error message when its supposed to. Here is …

Member Avatar for Zagga
0
297
Member Avatar for samertaha

hi , i am searching for a good tree menu design for products categories to use it in my website , i need it to be flexible so i could style it as needed and also simple so i can target it with my own javascript. thanks again.

Member Avatar for samertaha
0
212
Member Avatar for ElegantElephant
Member Avatar for Bharane_1
0
232
Member Avatar for malatamil

i have coding like this. its working fine but in another page i want to display only the rating image.below i added my page links. in searchdetails.php page i want to update the rating and display and in searchbycat.php file i want to display only the rating image only without …

0
121
Member Avatar for kindo

If u visit https://tweetdeck.twitter.com/ and you login, u will see the left sidebar with a textbox. The textbox can post new tweet, can also send direct message ans at the same time also reply to a tweet. How can I achive this in jquery. Thanks

0
114
Member Avatar for malatamil

i have a dropdown box and i already upload the value from dropdown selection to database. after uploading i want to cange the dropdown value how should i do,please help me. thanks in advance

Member Avatar for malatamil
0
129
Member Avatar for Silas_1

I have 1 or actually 2 problems. I have 2 sites, the first one generates a table with avatar, coins, and name (which links to a more detailed view like this `/stats/user/?name=<dynamic name>`. It looks like this: <table> <thead> <tr> <th>#</th> <th>Points</th> <th>Name</th> </tr> </thead> <tbody> <?php error_reporting(E_ALL); define ( …

Member Avatar for diafol
0
328
Member Avatar for Alonso_1

Hey there. I'm trying to retrieve a date from an SQL table. The original formate of the date is as follows: 0000-00-00 00:00:00 I want to try and change the format into: Month Date, Year e.g. May 17, 2014 <?php $page_title = 'View the current users'; include('header.inc'); require_once('mysql_connect.php'); try{ $query …

Member Avatar for Alonso_1
0
209
Member Avatar for Bin_2

i am trying to command mysql to sum until it reaches certain value from my table 'purchase', for each 'sid' starting from the last row, i need sum of 'pqty' until the result equals a value from string (but to try i've given a certain value). let me define with …

Member Avatar for Bin_2
0
117
Member Avatar for iamthwee

foreach ($query->result() as $row) { echo anchor("forum/topic/$row->topicid", my_html_escape(($row->name)), 'attributs'); echo ' by '; echo $this->Stuff->get_topic_author($row->topicid); echo ' replies '; echo $this->Stuff->get_replies($row->topicid); echo ' Last post '; echo $this->Stuff->get_topic_last_post($row->topicid); echo br(); } How do I conveniently pass that to my view. Calling a model function within the original query->result has perplexed …

Member Avatar for leap_coder
0
2K
Member Avatar for sigitas.darguzas

<?php $faces = array ('4', '1', '2', '3', '6', '5'); $payouts = array ( '1|1|1' => '0,01', '2|2|2' => '0,02', '3|3|3' => '0,03', '4|4|4' => '0,05', '5|5|5' => '0,07', '6|6|6' => '0,10', ); $wheel1 = array(); foreach ($faces as $face) { $wheel1[] = $face; } $wheel2 = array_reverse($wheel1); $wheel3 = …

Member Avatar for Tpojka
0
163
Member Avatar for malatamil

i know to upload normal type of multiple image.bt here my code is like to upload multiple images with rename image as date and time. but the problem is while uploading multiple image its added only one image.how can i add multiple image by using this code $num4 = count($_FILES['mainimage']['name']); …

Member Avatar for iamthwee
0
250
Member Avatar for afaaro

Hello every one I need help help with tihs code, it works but is there an easy way to generate articles by categories and subcategories if($result = GetList("SELECT p.*,f.*,c1.* FROM ".DB_PREFIX."mediaCategory c1 LEFT JOIN ".DB_PREFIX."mediaCategory c2 ON c2.category_id=c1.category_parent LEFT JOIN ".DB_PREFIX."mediaCategory c3 ON c3.category_id=c2.category_parent LEFT JOIN ".DB_PREFIX."mediaCategory c4 ON c4.category_id=c3.category_parent …

Member Avatar for afaaro
0
424
Member Avatar for Priti_P

Hello There, My problem is: I have declared an empty PHP array. and onsubmit of button I want to add the _post values to array at every time on my form. I am working this in Yii framwork. Array declred as: $skill_values_array=array(); button code <?php echo CHtml::submitButton(Yii::t($model, 'next'), array('id' => …

Member Avatar for Kyle Wiering
0
720
Member Avatar for Enigma360

I need to create a list of products, grouped by a category field. I am using PHP and MySQL. I have fields called ProdName, ProdCat etc. I need the list to appear as follows: * Category A * Product 1 * Product 2 * Category B * Product 3 * …

Member Avatar for afaaro
0
299
Member Avatar for Mathias Nkwuda
Member Avatar for p.h.p

Hi all, I am fighting with the following issue and was hoping you can give me some insights, as I am totally stuck. What's going on? I have 3 tables, created as follows: table category_p column id column name column type table home column id table link_category_p_home column category_p_id column …

Member Avatar for p.h.p
0
358
Member Avatar for ravi142

Hello I want to make my site so Any one help me for Plugin like.. Responsive with includeing some Text in slider. Like [Demo-1](http://www.openxcell.com/) [Demo-2](http://www.indianic.com/) Thank you..

Member Avatar for pooja01
0
258
Member Avatar for Ryan_11

I am trying to pass some data from the database to a few textboxes and textarea but i am currently stuck. I would really appreciate some help to solve this issue. this is the code i am working with. I am able to pass it to the table but not …

Member Avatar for Ryan_11
0
537
Member Avatar for iamthwee

Sup. I'm using codeigniter with twitter bootstrap modal window and I would like it to talk to the controller... How... Cheers in advance.

Member Avatar for diafol
0
372
Member Avatar for mpike

Alright so what I'm trying to do is send the form data to the value of whatever checkbox is checked in checkbox_1. <html> <head> <title>Untitled Document</title> <h1>Student Request Form</h1> </head> <body> <?php if(isset($_POST['checkbox_1'])) { $checkbox_1 = implode(",", $_POST['checkbox_1']); $to=implode(",", $_POST['checkbox_1']); $subject = "My subject"; $txt = "Hello world!"; mail($to,$subject,$txt); } …

Member Avatar for iamthwee
0
324
Member Avatar for carl.potak

Hi all. I'm hoping that one of you could assist me in what may be very obvious to you experienced folks, but what does the 5th line of code saying "**head("Home");**" do? The include statement already brings up home.php, and I'm not used to a templated website structure. Thanks in …

Member Avatar for carl.potak
0
185
Member Avatar for samisam123

Hi everyone I have just seen http://www.alayaran.com similar to twitter with more than 140 text support. And there are something like big smileys are also postable. How to design something similar to that with php and html. Thank you

0
119
Member Avatar for sushilsth

array (size=4) 0 => array (size=7) 'id' => string '75' (length=2) 'room_name' => string 'Economy ' (length=8) 'no_of_room' => string '0' (length=1) 'price' => string '500' (length=3) 'description' => string 'asdfasf' (length=7) 'image' => string '' (length=0) 'hotel_id' => string '1' (length=1) 1 => array (size=7) 'id' => string '70' …

0
110
Member Avatar for adsegzy

I have a products website. I have a table for product & another for makers where maker of products can be added. MAKERS TABLE ID MAKER 1 Nissan 2 Toyota 3 Audi 4. Honda PRODUCTS TABLE ID PRODUCT MAKER_ID PRICE 1 2000 Corolla 2 5000 2 2010 CRV 2 4500 …

Member Avatar for diafol
0
145
Member Avatar for ckir5951

hi someone tell me how to define Notice: Undefined index: id in C:\xampp\htdocs\invoice\getcheckno.php on line 6 Notice: Undefined index: taxrate in C:\xampp\htdocs\invoice\getcheckno.php on line 7

Member Avatar for Alberto Bucur
0
122
Member Avatar for BeckyAnne87

Hi there, I've started to create a site for me and my friends, and I want to be able to have each of us upload an image, and store it in a database, and then have it display as a display picture on a profile page. I've been looking around, …

Member Avatar for diafol
0
5K

The End.