39,388 Topics

Member Avatar for
Member Avatar for shail.arya

Hello All, I am new user to this community as well to PHP. I have designed a website. Now i am stuck with a problem here. I have added some new fields into my database. i want to add a script whcih works like this: Whenever a user login to …

Member Avatar for hericles
0
158
Member Avatar for My question

I am trying to fetch an image from database and display in my webpage through pdo, Image is not displaying instead it appears as "lº·“w~ïFVÅà%@ |vmŸú¿E8Ö®?ð²ý>ñNòTML°^¯F®Ìü9ù²÷fÕèÕÙ³îç®^骍@1 ½§~îþlY4º7ñZS,,¾³Ö9ú7“c*А5z4v^[éÙý¹Yõú¨Ôè—fkIrÓ·knó~þRmü2¶: %@Ì®Òß ¸t¾•ÈáºG¼Ohý¤øtå’ÿêÙ·/÷G£c*А–1ñ:;¶¡œý‘º[[mÇ+-·ŸÕµÈàuæžwvÇ=¹Þ컝tUÀñäÏòå챃µ8§ÙN¹uòÄx].Mr+Ñœ–­<¥©c§•éõ¼“=/‹" - MY Code is., <div class = "controlbox"> <form action = "<?php echo $_SERVER['PHP_SELF']; ?>" method = "get"> <select name = …

Member Avatar for My question
0
3K
Member Avatar for [NOPE]FOREVER

What is a php master page? There is a question that I want to answer which is 'What is a master page and how can it be setup for a PHP application'. The only thing I have really found is that a master page is like a template? Could someone …

Member Avatar for Sikander Nasar
0
934
Member Avatar for renukapriya

Hi, i am using the nvp api(express checkout) calls for parallel payment intgration,it show this error , how can i fix thsi showing error msg: SetExpressCheckout API call failed.Array ( [name] => Basic Plan [desc] => Basic Plan $3.00 Signup & $5.00 per month [qty] => 1 [amt] => 300 …

Member Avatar for renukapriya
0
270
Member Avatar for malatamil

if i click Brochure i want to display one popup box in that will display one form after submitting the form brochure.php page will show.in that page i need to download some files.problem is while clicking Brochure its showing popup box if i close are submit the form again that …

Member Avatar for malatamil
0
932
Member Avatar for Sikander Nasar
Member Avatar for Sikander Nasar
0
238
Member Avatar for malatamil

i need two popup box like this. <div class="pro_img"> <img src="web_img/IGN-GRAND.png" alt="Project Image" width="211" height="162" border="0"> <a href="#" onclick="popup('popUpDiv')"><br> DOWNLOAD</a> </div> <div id="popUpDiv" style="display: none;"> <a href="#" onclick="popup('popUpDiv')"><div id="rokbox-close"></div></a> <div id="rt-popup" style="background-color:rgba(230, 224, 224, 0.59);"> <div class="rt-block"> <div class="module-title"> <h3 class="title">Download Brochure</h3> </div> <div id="k2ModuleBox85" class="k2LoginBlock"> <form name="form1" onsubmit="javascript:return Validate();" …

Member Avatar for nadiam
0
223
Member Avatar for dawbin

I'm trying to extract an array of "<div>" and I am confounded by why this these two patterns work... preg_match_all('/<div class="date">.*?/m',$htm,$a); preg_match_all('/<div.*?</div>/m',$htm,$a); But this one does not return anything... preg_match_all('/<div class="date">.*?<\/div>/m',$htm,$a); Is there some regular expresion magic I am missing?

Member Avatar for dawbin
0
254
Member Avatar for Sikander Nasar
Member Avatar for davy_yg

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']) …

Member Avatar for Sikander Nasar
0
354
Member Avatar for patk570

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 …

Member Avatar for patk570
0
316
Member Avatar for Sikander Nasar

`$iCustomerId = IO::intValue("CustomerId");` why we use IO::intValue(); and other function similar to this.I am too confused about this.

Member Avatar for Sikander Nasar
0
182
Member Avatar for Daniel_24

<?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(); ?>

Member Avatar for pritaeas
0
53
Member Avatar for jKidz

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 …

Member Avatar for Benjamin_11
0
178
Member Avatar for chaitu11

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 …

Member Avatar for Benjamin_11
0
3K
Member Avatar for arafath077

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.?

Member Avatar for cereal
0
117
Member Avatar for [NOPE]FOREVER

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 …

Member Avatar for pritaeas
4
342
Member Avatar for hericles

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 …

Member Avatar for iamthwee
0
317
Member Avatar for iamthwee

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 …

Member Avatar for iamthwee
0
4K
Member Avatar for centenond

So i made a inbox system and its stores the accents(í,é,ú etc..) like &iacute;,&eacute;,&uacute; 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 …

Member Avatar for centenond
0
118
Member Avatar for nadiam

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 …

Member Avatar for guruparthi
0
2K
Member Avatar for zein1212

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> …

Member Avatar for guruparthi
0
254
Member Avatar for cdes1145

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 …

Member Avatar for guruparthi
0
661
Member Avatar for Aruna R

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..

Member Avatar for guruparthi
0
7K
Member Avatar for kingwash

//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 = …

Member Avatar for chaitu11
0
3K
Member Avatar for gogs85

How to upload images into database with pdo or only image name and image move into folder

Member Avatar for diafol
0
2K
Member Avatar for jj.dcruz

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 …

Member Avatar for arunmagar
0
462
Member Avatar for showman13

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')) ;// …

Member Avatar for showman13
0
230
Member Avatar for sanjay_7

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 …

0
119
Member Avatar for Stefce

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 ! :)

Member Avatar for cereal
0
133

The End.