39,316 Topics

Member Avatar for
Member Avatar for nadiam

So the article title says it. i wanna make the name as like a welcome message, something like "Welcome, <name>!" and yes there are many articles on the web that gives you coding and what not but i still don't understand how to get it done. sigh. forgive me im …

Member Avatar for nadiam
0
389
Member Avatar for karen.frias0316

Hi! I have a code which posts to page wall as page when admin access the app. I was able to get the page access token and give manage_pages permission using this https://developers.facebook.com/tools/explorer/ . Now i want it to still post as page to the page wall when other users …

0
105
Member Avatar for AARTI SHRIVAS

when i click on add to cart button page is not reload cart shows empty and when i refresh page throught f5 it show data in cart and give error TypeError: jQuery(...).fancybox is not a function "transitionOut" : "elastic" in admin side i disable fancybox jquery so i got this …

Member Avatar for AARTI SHRIVAS
0
202
Member Avatar for Linddha

i want to get the result of my count query in 2 table my table : $userfans=mysql_query("select *from fans where id_userfans='$_SESSION[id_user]' and level='umum' limit 1"); while($oinf=mysql_fetch_array($userfans)){ $coinp=mysql_query("select * from fans_news where id_userf='$_SESSION[id_user]' and id_fans='$oinf[id_fans]' and status='Y'"); $koinp=mysql_num_rows($coinp); while($oinp=mysql_fetch_array($coinp)){ $comentar=mysql_query("select * from fans_comment,user where fans_comment.id_newsfans='$oinp[id_newsfans]' and fans_comment.id_usercf!='$_SESSION[id_user]' and fans_comment.id_usercf=user.id_user "); $comme=mysql_num_rows($comentar); …

Member Avatar for urtrivedi
0
201
Member Avatar for karen.frias0316

Hi! I have been trying to post on my own wall page but nothing happens till now. I have an app and everytime i was submitted/ everytime a user visits it, i want it to post a link on my own page as page not user. i have this code. …

Member Avatar for karen.frias0316
0
348
Member Avatar for santoshkumar.palivela.7

<?php class Jcart { public $config = array(); private $items = array(); private $names = array(); private $prices = array(); private $qtys = array(); private $urls = array(); private $subtotal = 0; private $itemCount = 0; function __construct() { // Get $config array include_once('config-loader.php'); $this->config = $config; } /** * …

Member Avatar for AARTI SHRIVAS
0
2K
Member Avatar for freely.willy.3

I want to create in html textbox named **b** and php code which gets email from it with $_POST. Unfortunately as setBcc is used as an array and I cannot convince php to get emails from this textbox. This is the code of php: <?php require_once 'lib/swift_required.php'; $transport = Swift_MailTransport::newInstance(); …

Member Avatar for brandon66
0
3K
Member Avatar for strongard63

this is only for educational purpose. how to gain admin privilege via session cookie if these techniques are useless cookie poisoning attack cookie injection attack session fixation attack cookie hijacking attack ????

Member Avatar for EvolutionFallen
0
141
Member Avatar for douglas.shrader.1

I can't seem to center align my background image. I am new to php, css, and java coding but finding it necessary in this day and age. Here is the code. I hope this will help. <style> body{ background: url(http://dsninformation.com/images/magic.jpg); background-repeat: no-repeat } .button { display : inline-block; cursor : …

Member Avatar for douglas.shrader.1
0
327
Member Avatar for jothimathi
Member Avatar for Lsmjudoka
-1
116
Member Avatar for mushahidh

I am using this script for exporting data from HTML table to Excel. <script> var tableToExcel = (function() { var uri = 'data:application/vnd.ms-excel;base64,' , template = '<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns="http://www.w3.org/TR/REC-html40"><head><!--[if gte mso 9]><xml><x:ExcelWorkbook><x:ExcelWorksheets><x:ExcelWorksheet><x:Name>{worksheet}</x:Name><x:WorksheetOptions><x:DisplayGridlines/></x:WorksheetOptions></x:ExcelWorksheet></x:ExcelWorksheets></x:ExcelWorkbook></xml><![endif]--></head><body><table>{table}</table></body></html>' , base64 = function(s) { return window.btoa(unescape(encodeURIComponent(s))) } , format = function(s, c) { return s.replace(/{(\w+)}/g, function(m, …

Member Avatar for pixelsoul
0
4K
Member Avatar for davidjennings

Hi all, I am trying output the following 1 user after validating data from a database and I have no output to the screen. I am not sure what is missing from query? Any help would be appreciated Thanks in advance David ------- Index.php ------ <?php session_start(); ob_start(); include_once ("includes/settings.php"); …

Member Avatar for davidjennings
0
259
Member Avatar for Gloak

Hi, I have been using this [tutorial](http://www.daniweb.com/web-development/php/threads/316126/multiple-file-uploads-and-store-path-to-mysql-table) and it works great. But there is one issue: when I upload the pictures from my laptop, any portrait picture becomes landscape. Landscape is landscape. On the other hand, when I use the computer, it prints correctly in the screen. The images are …

Member Avatar for pzuurveen
0
537
Member Avatar for sugumarclick

Basically I'm having three text input. First is autocomplete (book name). Second is book price and third is book author. Please help me in changing the 2nd and third input text box values according to the selection of autocomplete input box. Fiddle setup is at http://jsfiddle.net/premgowda/UC74L/6/ Json code below from …

Member Avatar for noelthefish
0
560
Member Avatar for tqmd1

Dear Sir, I have following codes <?php require_once("connect.php"); if(isset($_POST['button1'])) { // Get values from form $sno =$_POST['txtsno']; $record_check ="SELECT * FROM test WHERE sno = " . $sno; $result=mysqli_query($record_check); $row = mysqli_fetch_array($result) ; if(!$row) die ('No record Found'); } ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> …

Member Avatar for tqmd1
0
252
Member Avatar for nadiam

so i wanna echo a result from my database and i have successfully done that but im trying to place the result at a specific place on my page. this is the code if($result) { { echo "<div class='total'>"; echo "<b>Your Total Income is $total</b>"; echo "</div>"; } } and …

Member Avatar for nadiam
0
396
Member Avatar for chozokennedy

Hello, I'm getting a error : Trying to get property of non-object. Currently using CodeIgniter php framework. **Controller:** public function index() { $this->load->model('data_model'); $data['rows'] = $this->data_model->getAll(); $this->load->view('index',$data); } **Views:** <?php foreach($rows as $r) : ?> <h1><?php echo $r->title; ?></h1> //Error on this line <div><?php echo $r->contents; ?></div> //Error on this …

Member Avatar for diafol
0
2K
Member Avatar for AARTI SHRIVAS

when i log in my web site and after login if i refresh the page it gievs me message invalid token can any one know why this problem occure in joomla website

Member Avatar for AARTI SHRIVAS
0
293
Member Avatar for narasimha9

Hi Everyone, I want to access the values from remote server. If I click search and advanced search I should retreive values from remote server. I have catergories like watches,perfumes,etc. Now based on the search I need to display the brands of x company y company for watches perfumes and …

Member Avatar for narasimha9
0
162
Member Avatar for jeromerpg11

How can i get all the value of a column(first value to the last value) in my table in php, then put it on a container(array) so i can use the data to plot the table values on a chart. Im using FusionCharts and i saw an example in which …

Member Avatar for ryantroop
0
126
Member Avatar for karen.frias0316

Hi! my first time to post here. I have a program which asks for user input(img upload and text) then process it using imagecreatefromjpeg. I my uploader, it checks for an array of errors, including if there is no file upload. i want to change it and allow the process …

Member Avatar for karen.frias0316
0
856
Member Avatar for Eagle.Avik

hi, can anyone point out why is this script not working?? it does not inserting data into mysql.. here is the script: if ($_SERVER['REQUEST_METHOD'] == 'POST' && $_POST['form_name'] == 'signupform') { $newpassword = $_POST['password']; $confirmpassword = $_POST['confirmpassword']; $code = 'NA'; $active = '1'; if ($newpassword != $confirmpassword) { $error_message = …

Member Avatar for brandon66
0
348
Member Avatar for narasimha9

![828915c19b3102a17ba1a5040e2a76ee](/attachments/small/4/828915c19b3102a17ba1a5040e2a76ee.jpg "align-right") ![828915c19b3102a17ba1a5040e2a76ee](/attachments/small/4/828915c19b3102a17ba1a5040e2a76ee.jpg "align-right") ![828915c19b3102a17ba1a5040e2a76ee](/attachments/small/4/828915c19b3102a17ba1a5040e2a76ee.jpg "align-right") I want to retrieve values from database to seleced box.I have three files ajax.js,getcitylist.php,securepage.php.In second select box values are not coming from data base. <li> <label for="State">State</label> <select id="state" name="state" onChange="display(this.value)"> <option value="" selected="selected">-- Select state --</option> <?php include("getstatelist.php");?> </select> </li> <li> <label for="City">City</label> …

Member Avatar for diafol
0
2K
Member Avatar for Gabrielroos

Ok, before I start, DANIWEB is my last resort to get help. it seems the people on the other sites are having trouble understanding and/or helping me with this... anyway, here is what I am trying to do: I have a website with a folder structure that I allow users …

Member Avatar for Gabrielroos
0
566
Member Avatar for vipula

I am trying display a link from my mysql database. I cannot get it done, It shows like this, for example **www.mywebsite.com/www.google.com** How can I get rid of my website url from this. this is my actual code in display.php <tr> <td>&nbsp;</td><td>&nbsp;</td><td align="right" valign="top"><b>Full Text Link :</b></td> <td align="left" valign="top"><?php …

Member Avatar for niranga
0
182
Member Avatar for LiBOC

Dear Forum, Thanks for taking time reading this post. I checked out on sessions and cookies but I guess they are more towards the client side? :S Is there a way to achieve this: :?: The PHP program I am doing is to reverse Telnet (Terminal Server and it accessing …

Member Avatar for AARTI SHRIVAS
0
1K
Member Avatar for garyjuano

hello guys..can someone help me to create a function that generates random numbers composing of 9 digits with the ff limitations.. * must not have consecutive numbers in any place...sample 158461247....1 and 2 is consecutive numbers... * must not have same numbers before and after....sample 155483628....5 and 5 is same …

Member Avatar for AARTI SHRIVAS
0
305
Member Avatar for lillorme

hey man am having trouble here. am using this code if($user_ok == true){ header("location:user.php?u=".$_SESSION["username"]); exit(); } but this is my problem The requested URL /tutoringcareer/php/user.php was not found on this server. i have a .htaccess file but when i try to log in that when i have the problem

Member Avatar for diafol
0
261
Member Avatar for turpentyne

I'm rather inexperienced when it comes to php mail scripts. I've got a working script, thanks to the PHPmailer that everyone uses. But what I want is to modify it so that I send the form info to two locations: Step one, send all information as text-only to email@location.com Step …

Member Avatar for turpentyne
0
334
Member Avatar for davy_yg

Hello, I have these codes: controllers/admin/site.php <?php class Site extends CI_Controller { function index() { $data = array(); $records = $this->site_model->get_records(); if (count($records) > 0) { $data['records'] = $query; } $this->load->view('admin/options_view', $data); } function create() { $data = array( 'title' => $this->input->post('title'), 'content' => $this->input->post('content') ); $this->site_model->add_record($data); if (true) $this->index(); …

Member Avatar for Tpojka
0
335

The End.