38,020 Topics

Member Avatar for
Member Avatar for castajiz_2

Hi there, I' ve got some data in my database and I' m using PHP to fetch it and would like to transport it to client side via JSON. The problem that I'm facing is the folowing: I have a timeline which was built in html and css and I …

Member Avatar for TexWiller
0
309
Member Avatar for phoenix254

HELLO i would like to ask that fetchAll() is good choice to retrieve all user message from database or i should use while loop? I asked this question because i worry about internet traffic..

Member Avatar for jkon
0
5K
Member Avatar for Nathaniel10

Hello All, My old computer crashed. I installed XAMMP on my new computer. My old PHP files don't run. I learned that the reason is that register_globals feature has been deprecated and is now permanently Off by default. My old files were written in a 'register_globals=On' environment. I understand that …

Member Avatar for Nathaniel10
0
351
Member Avatar for ravi142

Hello, I am build up POPUP Box for the warrning, reference link [Click Here](http://www.pcattention.com/) That can be supported for all the browser Safari, Chrome, IE, Mozila. I have RND for that but not given exactly solution. Can suggest me something for that. Thanks.

Member Avatar for ravi142
0
168
Member Avatar for Niloofar24

Hi. There is a textarea in my page. I type a text in the textare and then in the script there is: $text = nl2br(htmlentities($_POST['text'])); Now what is the problem? When i type: `I'm fine.` It will be sent to db and will be printed, in both place as: `I'm …

Member Avatar for diafol
0
362
Member Avatar for chozotheqhai

Hello, I'm getting problem file or directory not found when I try to load the file from another directory. Kindly help me fix this problem. Thanks you. Website -classes -core.php -inc -autoload.php -config.php -index.php **Index.php** <?php require_once('inc/autoload.php'); $core = new Core(); $core->run(); **autoload.php** <?php require_once('config.php'); function __autoload($class_name) { $class = …

Member Avatar for diafol
0
578
Member Avatar for shankmuchlove

I am using xampp and windows.... I need to call java classes from php. How to use php java bridge... I am using php 5.2.6

Member Avatar for Abid_4
0
203
Member Avatar for Niloofar24

Hi. I'm thinking about a new project in php.... any idea of a cool and fun or useful and efficient project?!

Member Avatar for Aeonix
0
215
Member Avatar for Vivek_13

<?php $xml = simplexml_load_file('/exam/'.$file); foreach($xml->main as $main) { if($main['select'] == "selected") { ?> <div> <textarea rows="2" class="span11"><?php echo $main->question ?></textarea> <div class="row" style="padding-left:3%;margin-bottom:1%;"> <ul> <?php foreach($main->ans as $ans) { ?> <li style="float:left; margin-left:1%;" ><input type="radio" name="optionsRadios" class="rdChk" style="margin-top:-2%">&nbsp;<span><?php echo $ans ?></span></li> <?php } ?> </ul> </div > </div> <?php } …

Member Avatar for Vivek_13
0
1K
Member Avatar for Niloofar24

Hi. With using `file_get_contents()` I can get all html tags and text of a web page. But is there any way to get that web page's **css codes** too?

Member Avatar for diafol
0
604
Member Avatar for edbr

I am helping a friend build as site and at a testing stage. it came to creating a database and i discovered he was a bity lost. i explained howto do it in phpadmin but i then decided to write a page or 2 to install it would be a …

Member Avatar for edbr
0
226
Member Avatar for MtR_1

> while updating my form it retrieves all info from db in respective field but unable to display values in dropdowns > this is my controller for update function update($a_id) { $data['a_id'] = $a_id; $data['sector'] = $this->sf_model->get_sector(); $data['subsector'] = $this->sf_model->get_subsector(); $data['type'] = $this->sf_model->get_type(); $data['view'] = $this->sf_model->get_account_record($a_id); $this->form_validation->set_rules('a_name', 'Account Name', 'trim|required|xss_clean|callback_alpha_only_space'); …

Member Avatar for diafol
0
249
Member Avatar for blueguy777
Member Avatar for janicemurby

Hi i have this error if i send a message to a member on my site That user does not exist or is not yet activated, press back Although the member is activated ive also tried other members here is the code thats sending it like it after installing the …

Member Avatar for diafol
0
154
Member Avatar for blueguy777

I got smpp class from [Click Here](http://www.phpclasses.org/package/1373-PHP-Sends-SMS-messages-via-an-SMPP-server.html) i am able to send sms to the single mobile number using SMPP connection but unable to send sms to multiple mobile numbers The code is as follows: <?php include_once('smppclass.php'); /* File: smppexample.php Implements: exmaple for smppclass.php::SMPPCLass() License: GNU Lesser Genercal Public License: …

Member Avatar for diafol
0
1K
Member Avatar for diafol

I've been playing with PDO and got quite a shock, so I thought I'd run this past you all. I love PDO, and I thought that the "prepare once, execute many" idea behind prepared statements was beautiful. Now previous to using prepared statements, I used to build up a long …

Member Avatar for diafol
4
12K
Member Avatar for Pelle_3

I am quite new to web development, so I naturally came to a point where I needed some help. I am making a web site where the user has to log in, and if authentication is successful, the user's data will be fetched from server and displayed on page (and …

Member Avatar for Pelle_3
0
264
Member Avatar for UK-1991

function view_report($dateval1, $dateval2, $id) { global $connection; $query_get = "SELECT * FROM presence WHERE p_date BETWEEN {$dateval1} AND {$dateval2} ORDER BY DATE"; $query_confirm = mysqli_query($connection, $query_get); if(isset($_POST["show"])) { while($record = mysqli_fetch_assoc($query_confirm)) { $output = "<tr>"; $output .= "<td>" . $record["p_date"] . "</td>"; $output .= "<td>" . $record["p_day"] . "</td>"; $output …

Member Avatar for Gideon_1
0
153
Member Avatar for ramsiva

How to apply readonly inside forloop in checkbox or disabled checked values in checkbox ramaining empty values will be active any body help me <input type="checkbox" class="chkNumberck" value="<?php echo $sub_id; ?>" <?php for($i=0;$i<$count1;$i++) { if($sub_id1[$i]==$sub_id){ echo "checked"; } } ?> />

Member Avatar for ramsiva
0
134
Member Avatar for annya

Iam just stuck on this code I want to add an water mark on in between this process but I don't know how to give it. If the user select upload on the first image the image will uploaded and it will show in the right side. I want to …

Member Avatar for Vivek_13
0
979
Member Avatar for Kamal_6

getting error "Parse error: syntax error, unexpected '$physics' (T_VARIABLE), expecting function (T_FUNCTION) in C:\xampp\htdocs\bookclass.php on line 19"need help pls help me out. <?php class Books{ /* Member variables */ public $price; public $title; /* Member functions */ function setPrice($par){ $this->price = $par; } function getPrice(){ echo $this->price ."<br/>"; } function …

Member Avatar for Gideon_1
0
370
Member Avatar for Kamal_6

i am geting the error "Parse error: syntax error, unexpected '$physics' (T_VARIABLE), expecting function (T_FUNCTION) in C:\xampp\htdocs\bookclass.php on line 19" can't figure out.need help .. <?php class Books{ /* Member variables */ public $price; public $title; /* Member functions */ function setPrice($par){ $this->price = $par; } function getPrice(){ echo $this->price …

Member Avatar for jkon
0
106
Member Avatar for Niloofar24
Member Avatar for Mushfik

<?php $this->user_id = $_SESSION['user_id']=$user->id; //create a database connection mysql_connect("host","user","pass") or die("Error:".mysqlerror()); //select database mysql_select_db("db"); ?> <html> <body> <link href="tab.css" rel="stylesheet" type="text/css" media="all" /> <table id="box-table-b"> <tr> <th>User ID</th> <th>Status</th> <th>I.P</th> <th>Offer Id</th> </tr> <?php $result = mysql_query("SELECT * FROM clicks where userId='$id'"); //return the array and loop through each row …

Member Avatar for Gideon_1
0
6K
Member Avatar for paulo.guedes1992

Hi, I'm trying to upload an image but ir gives me error on 'move_upload_file'. > Warning: move_uploaded_file(http://localhost/administrador/images/projects/54031d9e94d63a24dba816ddacbf315e.jpg): failed to open stream: HTTP wrapper does not support writeable connections in C:\wamp\www\administrador\includes\uploadImage.php on line 38 > Warning: move_uploaded_file(): Unable to move 'C:\wamp\tmp\php5E59.tmp' to 'http://localhost/administrador/images/projects/54031d9e94d63a24dba816ddacbf315e.jpg' in C:\wamp\www\administrador\includes\uploadImage.php on line 38 This is my …

Member Avatar for pritaeas
0
855
Member Avatar for StuntHacks

Hey everybody, I'd like to get some specific, but not all rows of a MySQL DB into an array, like those I get if I use mysql_fetch_array(). But feth_array, fetch_row, fetch_object, etc... just returns one row. There are many search functions in the internet, so it must be possible. I …

Member Avatar for Gideon_1
0
326
Member Avatar for Vivek_13

function getRandomNode($file, $numOfQue) { $xml = simplexml_load_file($file); foreach($xml->main as $main) { //Here I want to Get Ramdom Node using $numOfQue. //$numOfQue is a random node Number } $xml->asXml($file); } guys Help me...

Member Avatar for Vivek_13
0
264
Member Avatar for UK-1991

Hello, I created a query insert query everything is in right order but dont know whyy its not working function submit_report() { global $connection; if(isset($_POST["submit"])) { $id = 215; $name = "myname"; $uname = "myusername"; $date = $_POST['date']; $campaign = $_POST['campaign']; $t_leads = $_POST['t_leads']; $c_leads = $_POST['c_leads']; $open_acc = $_POST['open_acc']; …

Member Avatar for UK-1991
0
286
Member Avatar for blueguy777

how to put `where clause variable $didno` in following code: $pdo = Database::connect(); $pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); $sql = "SELECT * FROM misscall WHERE did_no = ?"; $q = $pdo->query($sql); $mobile1 = array(); while ($mobi1 = $q->fetchColumn()) { $mobile1[] = $mobi1; } $mobile1list = join(",", $mobile1); Database::disconnect(); thanks in advance

Member Avatar for diafol
0
566
Member Avatar for vatsal_1

Hi, Good day. We need to integrate a net banking API for a Us based website. from that website, Us based users can checkout using net banking option (Pay from their Us bank account). So there will be three options to checkout. 1) pay via credit card (done) 2) pay …

Member Avatar for TexWiller
0
137

The End.