39,323 Topics
| |
I want To make a file downloadable using codeigniter. | |
input_image.php <p>metode image managementnya masih konstruksi</p><center> <p> <?php include('../includes/koneksi.php'); $id = isset($_POST['id']) ? $_POST['id'] : ''; $confirmation = isset($_POST['confirmation']) ? $_POST['confirmation'] : ''; $judul = isset($_POST['judul']) ? $_POST['judul'] : ''; $image = isset($_POST['image']) ? $_POST['image'] : ''; //Load berita if (!empty($_REQUEST['id'])){ $result = mysql_query("SELECT * FROM gallery WHERE id =".$_REQUEST['id']) … | |
Hello, I found this script and have used it for my login system. http://www.wikihow.com/Discussion:Create-a-Secure-Login-Script-in-PHP-and-MySQL I have changed some variables but none the less its the same. I am trying to create a reset password script here is what i tried so far: function resetPassword(){ //Main Info $id = $_POST['id']; $email … | |
`$iCustomerId = IO::intValue("CustomerId");` why we use IO::intValue(); and other function similar to this.I am too confused about this. | |
<?php if(PHP_OS == "WINNT" || PHP_OS == "WIN32"){ $dlext = "dll"; }else{ $dlext = "so"; } if(!extension_loaded("Mapscript")){ dl("php_mapscript.$dlext"); } $map_path = "C:/ms4w/Apache/htdocs/Latihan/map/Riau.map" $map = ms_newMapObj($map_path); $image = $map->draw(); $image_url = $image->saveWebImage(); ?> | |
Hi Guys, I am developing a Music Database system. This is a 'Song.php' page. It will be a Detailed page of a each song. Ex : song.php?id=1 <?php if(!empty($_GET['id'])) { $sid = mysql_real_escape_string ($_GET['id']); } // if song id is null, user will redirect to the full song list else … | |
I have attached an image file i want to escape first there rows and import data from sudha---- if(isset($_POST['submit'])) { $account_type = $_POST['account_type']; $fname = $_FILES['sel_file']['name']; echo '<center class=green>Uploaded file name is: '.$fname.'</center> '; $chk_ext = explode(".",$fname); if(strtolower(end($chk_ext)) == "csv") { $filename = $_FILES['sel_file']['tmp_name']; $handle = fopen($filename, "r"); fgetcsv($handle); //skip … | |
HI .Im devoloping a new website.can i integrate google analtics api to my Website Dashboard to show bounce rate and page visit result or summary.? | |
| I have a php/mysql project. When the admin deletes a customer or product from the database on the form I need an confirm box to show and ask the admin if they are sure they want to delete and have the customer row show in the confirm also. Here is … |
I don't know much about Magento so I need some advice. I do know PHP. A client wants to update their website to ecommerce and use Magento as the framework but they want to use their current accounting package for user logins, products, orders account, etc because the data is … | |
| Hi I am using codeigniter and I want to use a constant defined in the config>constant file. For example, my color theme for my view might be blue, so I save this in the constants file. define('blue', '#3fsefe'); Now I can use this in all my views... works fine. But … |
So i made a inbox system and its stores the accents(Ã,é,ú etc..) like í,é,ú wich is perfect, but then i made another script and its storing the Ã's like à and i dont know why... i have <meta charset="utf-8"> on both and mysql collation are both utf8 any one knows … | |
hey guys, so i'm trying to insert data from one table to another. table 1: |event_id|event_name|start|end|event_venue| table 2: |guest_id|guest_name|event_id|event_name| $event = mysql_query("INSERT INTO event VALUES('','$name','$dstart $tstart','$dend $tend','$venue')"); $insertg = mysql_query("INSERT INTO guest(event_id, event_name) SELECT event_id, event_name, FROM `event` WHERE `event_name` = `$name` "); i get : > Column count doesn't … | |
This is my index.php <?php if(!isset($_GET["page"]) || $_GET["page"] == "home"){ if(isset($_GET["txt"])){ include "search.php"; }else{ include "content.php"; } }else if($_GET["page"] == "user" && $_GET["user"]){ include "content_kategori.php"; }else if($_GET["page"] == "kategori" && $_GET["kode"]){ include "content_kategori.php"; }else if($_GET["page"] == "full" && $_GET["kode"]){ include "content_full.php"; }else{} ?> and this is my .htacces <IfModule mod_rewrite.c> … | |
Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in C:\xampp\htdocs\classes\Trade.class.php on line 12 Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in C:\xampp\htdocs\classes\Trade.class.php on line 19 Warning: mysql_fetch_assoc() expects parameter 1 to be resource, boolean given in C:\xampp\htdocs\classes\Trade.class.php on line 70 Line 12 [CODE]while ( $trade_users_row … | |
Happy Day.. Hello All! I want to know the Difference between mysql_fetch_array and mysql_fetch_assoc.,and Im new here.. and also to php.. Plz help me to solve my problems.. | |
//exporting to csv file. // this is my code. <?php // Database Connection $host="localhost"; $uname="root"; $pass=""; $database = "db_name"; $connection=mysql_connect($host,$uname,$pass); echo mysql_error(); //or die("Database Connection Failed"); $selectdb=mysql_select_db($database) or die("Database could not be selected"); $result=mysql_select_db($database) or die("database cannot be selected <br>"); // Fetch Record from Database $output = ""; $table = … | |
How to upload images into database with pdo or only image name and image move into folder | |
Im having a problem using foreach i cant seem to understand this yet. my problem is when i enter all the data needed it shows many inserting code I cant seem to figure this out This is the Output INSERT INTO `dependents`(`d_name`, `d_age`) VALUES (1,1) INSERT INTO `dependents`(`d_name`, `d_age`) VALUES … | |
Good Morning All... This may be a simple question but hopefully someone can give me a specific answer... I know I can set a date based on the current date + or - a specified number of days $created = date("Y-m-d H:i:s", time()) ; $dist_date = date("Y-m-d", strtotime($created.'+4 days')) ;// … | |
i had develop a phonegap application with my woocommerce store. now i want to create order manually. So anyone can tell me when new order is created in woocommerce store how many data inserted in which tables in database. i mean data at the time of new order generation in … | |
Hello guys i have question how is the right way to write the mysqli_connect ? $con=mysqli_connect("username","host","password","db_name"); Please tell me if im wrong and how to fix it. Thanks ! :) | |
This is sort of a generic question... I'm at a point where I need to do some report generation with various data from different tables i.e. commissions earned / transactions processed / etc... I was wondering if anyone happens to know of a script base that could be used for … | |
I got a simple problem here. what I want is when I recieve message from the user the links must be color blue, then if I read it it must change into a color red, then when they reply again, there message must turn into un-visited again or the message … | |
please help.. why I can't browse my website online even though it is already uploaded.? please help.. | |
i have 2 tables seo_footer_title and seo_title. i want to add title,description and keywords footer.php <li><a href="index.php?city=<? echo $city;?>">Home</a></li> <li><a href="about_us1.php?page=2" title="About Us" onclick="function changetab();">About Us</a></li> <li><a href="contact_us1.php?page=3" title="Contact Us">Contact Us</a></li> header.php $page = $_GET['page']; $sql1 = mysql_query("SELECT st.`id`,st.Catagory, st.`title`, st.`description`, st.`keywords`,sft.id,sft.titles FROM `seo_title` st JOIN seo_footer_title sft ON sft.id=st.Catagory … | |
I have created my own template and am able to list all the posts on the index page. I want to be able to have some space after each post. Like a blank height of 5px. I created a class in css called blank5 => .blank5 {height:5px;} but it doesn't … | |
Why when submit is pressed, and number of tickets is 3 or higher I am not geting displayed echo? echo "You choose $place and $tickets tickets, and you get discount 50%, total price is $totalprice"; Thanks in advance <?php $selection=$_POST['selection']; if(isset($selection) and $selection=="submit"){ $place=$_POST['place']; $tickets=$_POST['tickets']; $totalprice = $price * $tickets; … | |
Hi quite a simple question i hope, i want to include a couple of checkboxes in my form and if they are checked i'd like to set the appropriate db cell as true... should i be looking at something like? [quote] if(chkbox_name == 'checked') { $cdplayer = true; } ... … | |
| Hi I have a flat array listed in the format below: id parent tag htmlcontent 2-0 null li |home| 1-0 2-0 ol 0-0 1-0 li |about| 6-0 null li |a| 5-0 6-0 ol 4-0 5-0 li |b| 3-0 4-0 ol 2-1 3-0 li |c| 1-1 2-1 ol 0-1 1-1 li … |
The End.