39,323 Topics
| |
| 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 … |
<?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 = … | |
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']); … | |
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 … | |
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' => … | |
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 * … | |
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 … | |
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.. | |
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 … | |
| Sup. I'm using codeigniter with twitter bootstrap modal window and I would like it to talk to the controller... How... Cheers in advance. |
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); } … | |
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 … | |
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 | |
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' … | |
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 … | |
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 | |
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, … | |
This is my main page where the user can choose a category from a drop down. I need that category selection to update my session variable so I can then send that variable to another php page execute a query and return the result in my div because I do … | |
Hi Everyone, I have been trying to work out how to add 20% vat to a total in php, but for some reason I am unable to. I have been using the following code, but I keep getting the same price for price_with_vat as I do for price_without_vat // price … | |
i just dowloaded a fiverr clone from http://phpvalley.com/phpvalley-micro-jobs-site-script/ but am unable to install it on my localhost.am told to change 644 to 777, but i dont know where or how. I rigth click on connect.php and tryed changing its propaties, but it too did'nt work... | |
if (!empty($_POST['twitnam'])) { $message = $_POST['message']; $TwitterUsername = $_POST['twitnam']; $tw_sql = mysqli_query($connection, "SELECT oauth_token,oauth_token_secret FROM TwitterUpdate WHERE uname='$TwitterUsername'"); $row = mysqli_fetch_array($tw_sql, MYSQLI_ASSOC); $oauth_token = $row["oauth_token"]; $oauth_token_secret = $row["oauth_token_secret"]; if (strlen($oauth_token) > 0 && strlen($oauth_token_secret) > 0) { $Twitter = new EpiTwitter($consumer_key, $consumer_secret); $Twitter->setToken($oauth_token, $oauth_token_secret); $status = $Twitter->post_statusesUpdate(array('status' => $message)); echo … | |
Code1: <input id="text" type="text" name="fname" value="First Name" onclick="this.value='';"/> Hi Friends, Code1 - this print in my text box value "First Name". onclick this value gets erased so I can type Name. but if I go to second text box and come back to this text box to modify or add … | |
I import a spreadsheet (csv) into my sqli database (keeps a track of all our firewalls) there are 10 excel columns , one for each connected network on the firewall. i would like all these columns to be imported as one entry in the database, so 1 database field would … | |
Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in C:\wamp\www\firewall\php\allresults.php on line 3 The annoying thing is, I have used this multiple times on different applications, I dont know why it think the result is boolean? the exact same code works on a different database, I just cant … | |
need how to make an virtual learning class room in php and student teacher profile in php | |
Hello I am able to display the images that i am retrieving from the database as a list. But i want to know how i will be able to display the same images as a grid or table. I have posted my code below.Can you please let me know how … | |
Hi guys, OK, here is the issue I am having. Perform a search and when you click the submit button, it takes you to the page that displays the info. Now, when the user clicks the back button on the browser it tries to re-submit the info. I don't want … | |
hi all. i searched and i did find that someone was facing this same problem. Although i did what was told to him, i am still getting the same error. guide me? Error : Parse error: syntax error, unexpected 'exist' (T_STRING) in C:\wamp\www\ProjectCms\login.php on line 6 <?php session_start(); include("passwords.php"); if … | |
How can I delete the bold object from a Mysql column? 0: {print_ref:289, art_work:, status:New Artwork, supplier:A+A Kumas, customer:New Look, department:915,…} art_work: "" colorway_description: "11" colorway_version: "11" customer: "New Look" date_sent_to_supplier: "0000-00-00" date_strike_off_received: "0000-00-00" department: "915" dud: "1" fabric_base: "11" fabric_notes: [{notes:admin, user:1}, {notes:admin, user:1}, {notes:andre, user:2}, {notes:andrew, user:2},…] fullimage: … |
The End.