39,326 Topics

Member Avatar for
Member Avatar for vishalonne

Hello Everybody I am trying to display the value of an array in which is passed from one php page to another php page, but I am getting only last element value. Where as when I checked the array content using print_r() it is showing all the values. This is …

Member Avatar for urtrivedi
0
449
Member Avatar for tony75

Hi Anyone can explain whats means with this vulnerability(Blind SQL Injection) and explain Attack details 1 and 2? 1. This vulnerability affects /xxxx/. Discovered by: Scripting (Blind_Sql_Injection.script). Attack details Path Fragment (suffix .html) input - was set to -1' or 61 = '59 2. This vulnerability affects /xxxx/. Discovered by: …

Member Avatar for tony75
0
708
Member Avatar for randhymuthola

Dears, I have script like this... <?php include_once "library/inc.sesadmin.php"; include_once "library/inc.library.php"; # Filter Terpilih $dataTahun = isset($_POST['cmbTahun']) ? $_POST['cmbTahun'] : date('Y'); $dataBulan = isset($_POST['cmbBulan']) ? $_POST['cmbBulan'] : date('m'); # TMBOL CETAK DIKLIK if (isset($_POST['btnCetak'])) { // Buka file echo "<script>"; echo "window.open('cetak/periksa.php?bulan=$dataBulan&tahun=$dataTahun')"; echo "</script>"; } # UNTUK PAGING (PEMBAGIAN HALAMAN) …

Member Avatar for cereal
0
140
Member Avatar for varunvashista

<?php /*~ class.phpmailer.php .---------------------------------------------------------------------------. | Software: PHPMailer - PHP email class | | Version: 5.1 | | Contact: via sourceforge.net support pages (also www.worxware.com) | | Info: http://phpmailer.sourceforge.net | | Support: http://sourceforge.net/projects/phpmailer/ | | ------------------------------------------------------------------------- | | Admin: Andy Prevost (project admininistrator) | | Authors: Andy Prevost (codeworxtech) codeworxtech@users.sourceforge.net | …

Member Avatar for varunvashista
0
613
Member Avatar for jacob21
Member Avatar for diafol
0
2K
Member Avatar for hindu times

Hi there, I am building a Wordpress site, but I'm struggling to find a good plugin to achieve a few things... Basically I want to make the website a central hub of a lot of my social networks, without me having to continaully update things in several places. So I'm …

Member Avatar for mpranjali
-2
434
Member Avatar for annyangel

hlo all, i need to write a code in php oop for registration without using form and data directly goes in the database. i try to write the code for this. i show u that code and help me to correct that or by giving me another code. the database …

Member Avatar for annyangel
0
240
Member Avatar for nurul_1

Hi all,please help me. I want to create bar graph in my system. But I have problems. user can pick date from datetime picker and the graph should appear. But the graph not appear. This is my code. <?php include("dbase.php"); ?> <?php $dateCollect = $_GET['dateCollect']; $show = "SELECT count(mailCategory) As …

0
109
Member Avatar for Cristianh21

Im having a problem with this. I want to echo out the number of post from every city in N.C Example: Wilmington (24) <--*24 is the number of post. Charlotte (35) Raleigh (15) include "connect.php"; $wil ='Wilmington'; $cnt = mysql_num_rows(mysql_query("SELECT add_city FROM dbAdd WHERE $add_city='$wil' ")); echo $cnt; This is …

Member Avatar for Cristianh21
0
296
Member Avatar for davidjennings

Hi All I am trying to find out the best way to capture the var_dump($contents) on line 29. I am think array? but I don't know how many string elements the array is returning. This is the output via var_dump($contents); array (size=45) 0 => string '.' (length=1) 1 => string …

Member Avatar for davidjennings
0
350
Member Avatar for patk570

Hello, I am looking for a calendar to use with my website that I can add tasks/appointments into the db and have them show on the calendar. I would like to edit on the fly either by using a page to create the task/appointment or via the calendar using ajax. …

Member Avatar for patk570
0
198
Member Avatar for davidjennings

Hi All, I am trying to connect to a Network drive remotely using authentication data(\\drive_name)(T:). I will need to upload and download documents. If possible can you give me some pointers. If you require any additional information please let me know Thanks in advance David

Member Avatar for davidjennings
0
482
Member Avatar for Sanjay_6

I am sending data from index.php fiel to another exec.php file using $.ajax method and executing the data on that file now when i am sending back output data using jsonp callback i am getting incorrect data on index.php. I am also writing same output data into a txt file …

Member Avatar for pritaeas
1
224
Member Avatar for jacob21

Hi, Below code working fine in firefox,but not working in IE,Chrome,Opera. Need Suggestions. <div class="topheading"><b>Headlines:</b></div> <div id="marquee_wrap"> <marquee direction="left" scrollamount="2"> <?php include('../db.php'); $headlineNewsQuery=mysql_query("SELECT * from svn_headline order by newsid DESC LIMIT 0,8 "); while($headlinenewsresult=mysql_fetch_assoc($headlineNewsQuery)){ //$newsHeadline=$headlinenewsresult['newsheadline']; ?> <li><img src="images/maq-bullet.png" /><?php echo $headlinenewsresult['newsheadline']; ?> </li> <?php }?> </ul></marquee> </div>

Member Avatar for minitauros
0
225
Member Avatar for davidjennings

Hi All, I am getting an undefined error in the following code Undefined variable: Settings in C:\wamp\www\sessions\index.php on line 14(last line) Any help would be appreciated Thanks in advance David class SiteSettings { var $Settings; function SettingValues() { $Settings['WS-Filepath'] = "/wamp/crud/view.php/"; $Settings['WS-HTTPpath'] = "http://localhost/crud/view.php/"; $Settings['DB-Hostname'] = "localhost"; $Settings['DB-Username'] = "root"; …

Member Avatar for davidjennings
0
871
Member Avatar for Eagle.Avik

i am trying to get all the result from my databse table but this query is not working. <?php try { $pdo = new PDO('mysql:host=localhost;dbname=articles', 'Avik', ''); } catch (PDOException $e) { $output = 'Unable to connect to the database server.'; echo $output; exit(); } try { $sql = 'SELECT …

Member Avatar for pritaeas
0
339
Member Avatar for BenjiButton

I am trying to move my html website to PHP but the menu's drop-down isn't working on the PHP version but does work on the html version but its the same code. But it doesn't do the dropdown anymore, anyone know what i'm doing wrong? **This is the index.php**: <!DOCTYPE …

0
148
Member Avatar for oh2labs

this one is driving me nuts so I hope you guys can school me a bit. My goal is to create a multiple-option dynamic pricing sheet for a product page. The concept I have is that all the information for the product is inserted in the database via relative tables. …

Member Avatar for oh2labs
0
1K
Member Avatar for tqmd1

Sir, I am using these codes if(isset($_POST['update'])) { // Get values from form $name=$_POST['name']; $moba=$_POST['moba']; $mobb=$_POST['mobb']; $ptcl=$_POST['ptcl']; $fax =$_POST['fax']; $email=$_POST['email']; $web =$_POST['web']; $add =$_POST['add']; $city =$_POST['city']; $country =$_POST['country']; $job =$_POST['job']; $office =$_POST['office']; $place =$_POST['place']; $phone =$_POST['phone']; $others =$_POST['others']; if (empty($moba)){ echo "<script>alert('No username is selected')</script>"; }else{ $query = "UPDATE contacts …

Member Avatar for pritaeas
0
148
Member Avatar for praba_web

Hello Sir, I want to submit some data. already i have created some kind of registration form and PHP/MySQL things and it is working fine.in that form i have to add print option also.i have one word document file in that document some of the content there.the content should be …

Member Avatar for damle1
0
2K
Member Avatar for luckyuser

I have the cookies and subdomain selection for header: <script type="text/javascript" src="/static/js/jquery-1.3.2.min.js"></script> <script type="text/javascript"> $(function(){ var city = readCookie('city'); if(city !=null && city !=''){ window.location.href = 'http://' + city + '.example.com'; } $('#citygo').change(function(){ var city = $(this).val(); window.location.href = 'http://' + city + '.example.com'; }); }); function createCookie(name,value,days) { if …

Member Avatar for luckyuser
0
2K
Member Avatar for amit.chaudhari.71

i have create the report.txt on serverside, now i want to print that file on client side , without open for user (to avoid alteration/ammenent in original report) i.e send that file to local printer. plz send the sampal code in php for it

Member Avatar for Lsmjudoka
0
658
Member Avatar for hemanshurpatel

Hello Friends, I have a table which says stores 4 values id,publisher name,bookname,time I am firing query like SELECT * from table where time>='sometime' group by `publisher name` order by time DESC What I want is to select results in DESC order of time with unique publisher name. When I …

Member Avatar for Lsmjudoka
0
213
Member Avatar for aamna@daniewb

what collation to use for storing english and French in phpmyadmin(MYSQL) I am using collation "utf8_general_ci", but some french characters are not stored properly in database e.g. "É" is stored as "É"

Member Avatar for cereal
0
130
Member Avatar for davy_yg

Hello, I am trying to upload picture in php and then appears this message file permission problem: File upload failed - please check your permissions for 'E:/xampp/xampp/htdocs/images/uploads/'. Then, I try to set the file permission by uncheck the Read only button through file - properties - GUI interface. Yet after …

Member Avatar for elibyy
0
209
Member Avatar for vipula

I have php page with two forms. One for searching and the other one for updating the searched data. When I updated data it wont show the search form. How can I show the search form after I summited the data. Please help me. My script is below <html> <head> …

Member Avatar for vipula
0
219
Member Avatar for shivakr

hi... can anyone help me that where to place a setting for PHP5.x in Apache Tomcat6.. so that i can handle php scripts in server side... i want php as an Apache Module....

Member Avatar for cereal
0
77
Member Avatar for jacob21

Hi, I am working on a news website.I am trying to add fb share/like, twitter share, google plus button for each news. could u please give me direction for starting above. Is there any plugin?? it is same as in daniweb i.e we can share each post on social networks

Member Avatar for cereal
0
89
Member Avatar for luckyuser

I'm not exactly sure what the problem is but the cookies aren't available for subdomains. Is there any way around this, or is there a better way to set the cookies domain? Thanks! <?php ini_set("session.cookie_domain", ".example.com"); // Set cookie and redirect when user change city if( isset($_POST['city']) && $_POST['city'] != …

Member Avatar for diafol
0
2K
Member Avatar for ms061210

Hi, I am creating a page where the admin of the page will recieve a bunch of complaint notification and he will answer it accordingly. I am planning to group the complaints and display it in a table like this ![3013855895854a76f7cd9ebb4a16bb33](/attachments/large/3/3013855895854a76f7cd9ebb4a16bb33.png "3013855895854a76f7cd9ebb4a16bb33") I want to group it so that when …

Member Avatar for diafol
0
89

The End.