39,320 Topics

Member Avatar for
Member Avatar for mmcdonald

Hi all, This is so simple and it's driving me mad. I've done it many of time before but at this moment in time - blank! How does one display the text: © and stop it from changing to a copyright symbol? Thanks, M

Member Avatar for mmcdonald
0
146
Member Avatar for mattster

Hi guys, Am working on a mini project and my question to you is: What would be your top 5 to 10 important tips for security while working with PHP? Thanks for any help recieved!!

Member Avatar for GliderPilot
0
112
Member Avatar for t_thakar

Hi currently trying to fighure out how i would need to solve this task... I have a database table which has lots of records and each record will have a parent id attached... e.g. Table_1 ----------------------------------- id name parent 1 test1 4 2 test2 3 3 test3 4 test4 2 …

Member Avatar for t_thakar
0
186
Member Avatar for dany12

Can somebody explain to me how can I create a one page for all crud and my edit for to be the same with my create form? I don't know how to use if(iseet($_POST['action=create']) if(iseet($_POST['action=edit']) if(iseet($_POST['action=delete']) Oh and if someone is intrested in accepting an apprentice to teach and review …

Member Avatar for dany12
0
240
Member Avatar for Burhan_1

There is a form that i want to submit and url rewrite at the same time. I can change url by adding onsubmit="rewrite_form(event);" option in form : function rewrite_form(e) { var form = document.forms[0]; // .getElementById("form1"); window.location = '/search/' + form.f.value + '_' + form.t.value + '.htm/' + form.amt_from.value; if …

Member Avatar for diafol
0
752
Member Avatar for Amaina

hello folks I'm a greenhorn in PHP so excuse me if i'm being dumb. I have set up a page that is pulling records out of a database table, the user viewing the page is intended the choose a number of the records on the page (using checkboxes) and download …

Member Avatar for Amaina
0
906
Member Avatar for tqmd1

Dear Sir, I have following codes <?php mysql_connect("localhost", "root", "") or die("Connection failed! " . mysql_error()); mysql_select_db("asia"); echo "Connection successful!"; $find_query = "select *FROM ghee where sno=3"; $strSQL = mysql_query($find_query); // Execute the query (the recordset $rs contains the result) $rs = mysql_query($strSQL); // Loop the recordset $rs // Each …

Member Avatar for Bachu
0
147
Member Avatar for pawan768

I try to generate nested reply with my custom layout but its showing nested comments as a new comment ... here is my comment.php code <?php /** * The template for displaying Comments. * * The area of the page that contains comments and the comment form. /* * If …

Member Avatar for LastMitch
0
387
Member Avatar for rhodoscoder

<?php // post_view.php require 'connection.php'; $id =$conn->lastInsertId('id'); $stmt = $conn->prepare('SELECT * FROM posts WHERE id = LAST_INSERT_ID(id) LIMIT 1'); $stmt->execute(array('id' => 'LAST_INSERT_ID(id)')); while($row = $stmt->fetchAll(PDO::FETCH_ASSOC)) { //$row is an array object? that has one array in index 0 print_r($row); echo '<h2>'.$row[':title'].'</h2>'; //echo '<em>Posted '.date('F j<\s\up>S</\s\up>, Y', $row['date']).'</em><br/>'; echo nl2br($row[':body']).'<br/>'; echo …

Member Avatar for LastMitch
0
128
Member Avatar for Nishant shukla1

Total Import PRO we have used and the product updated on 1000 product but images are not come so how to get images from direct xml feed from my supplier directly come from xml feed any help is appricated i have check all info like not a single image is …

Member Avatar for LastMitch
0
150
Member Avatar for chrisschristou

hello friends i have 3 variable in form option and it content diferent price of shipping and i have varile price of product, and and other variable who is the total, i would like when user choose shipping of his choice that the total change my code is below <?php …

Member Avatar for chrisschristou
0
224
Member Avatar for Angelo_1

I'm working on making a user maintenance system for my class, I have created the add/delete user portion but as for the edit portion I am completely stumped. So far I have created the form but what I want to do is be able to hit find user and then …

Member Avatar for gabrielcastillo
0
139
Member Avatar for Tko_1

Okay so i have a page when it is visted stores there ip to file and bans there ip access to a differant page. Problem i have is it will only ban the last visted ip, which i want to ban all ip's in the file. page1 which is visted …

Member Avatar for Tko_1
0
2K
Member Avatar for foxwizzy

<?php require_once("./Connections/root.php"); mysql_select_db($database_root, $root); include 'p_settings.php'; session_start(); $user = $_SESSION['MM_Username']; $q = mysql_query("SELECT id FROM performer WHERE username='$user' LIMIT 1") or die("Error : " . mysql_error()); $r = mysql_fetch_assoc($q); $id = $r['id']; ?> You can set three countries as banned." <br> Please choose from the following countries: <?php $query = …

Member Avatar for broj1
0
168
Member Avatar for vinson89

<?php require_once('recaptchalib.php'); $privatekey = "your_private_key"; $resp = recaptcha_check_answer ($privatekey, $_SERVER["REMOTE_ADDR"], $_POST["recaptcha_challenge_field"], $_POST["recaptcha_response_field"]); if (!$resp->is_valid) { // What happens when the CAPTCHA was entered incorrectly die ("The reCAPTCHA wasn't entered correctly. Go back and try it again." . "(reCAPTCHA said: " . $resp->error . ")"); } else { $username = $_POST['username']; …

Member Avatar for gabrielcastillo
0
205
Member Avatar for Nimerion

Hello guys and girls.. I have a problem with the media wiki endgine.. I want to create user groups via the UI, but these groups and permissions are static. (By static I mean that they are written in a php file that puts them into an array.) The php file …

Member Avatar for Nimerion
0
245
Member Avatar for dany12

I am still learning Laravel 4 so I have a resourceful controller tasks and I am having a problem implementing my jquery. My delete works fine without jquery so i think that I am not providing the proper url I have found one problem I don't know how to pass …

Member Avatar for cereal
0
377
Member Avatar for mastermind2

Hi Friends Please help me about a session problem, i am unable to find the reson of this issue. I am Developing a matrimonial site for a client : bit.ly/19mFQ8x Problem : users are automatically logout when they click on any page after login, but it is not happning in …

Member Avatar for diafol
0
358
Member Avatar for kanoy83

hi guys, am testing this script, but its not working. my requirements: current file in database and in folder is 135.docx, and if i want to update it by uploading a new file, the new filename should be 135_1.docx , if update again it must be 135_2.docx and so on, …

Member Avatar for kanoy83
0
2K
Member Avatar for rhodoscoder

<?php function html_escape($input) { return htmlspecialchars($input, ENT_COMPAT | ENT_HTML401, 'utf-8'); } require 'connection.php'; if(!empty($_POST)) { $ustmt=$conn->prepare('UPDATE posts SET title = :title, body=:body, WHERE id = :id'); $lpstid = $_GET['id']; $ustmt->bindValue('title', $_POST['title']); $ustmt->bindValue('body',$_POST['body']); $update_stmt->bindValue('id' , $lpstid); $ustmt->execute(); while($row = $update_stmt->fetch()){ print_r($row); } if($ustmt) redirect('post_view.php?id='.html_escape($_GET['id'])); } $sstmt = $conn->prepare('SELECT (title,body) FROM posts …

Member Avatar for diafol
0
209
Member Avatar for rhodoscoder

i have a form that posts to a database and i was testing code that prevents any javascript or othe client-side scripting from being submitted to the database.All javascript code i submitted ended up in the database, i figure this is bad.How can i prevent this?

Member Avatar for cereal
0
217
Member Avatar for accra

$query="SELECT * FROM history WHERE p_na LIKE '$p_na%' AND svreg LIKE '$svreg%' IN (SELECT * FROM history WHERE cdate BETWEEN '2013-09-12' AND '2013-12-12')"; $sql=mysql_query("$query"); am searching for data LIKE a and LIKE b that falls between to dates. I thought a sub query will be the best method, but its …

Member Avatar for diafol
0
155
Member Avatar for MattD00

I am building a cms I want to iplement the ability to hide pages. I have a row in mysql named hidden which stores the values 1 and 0. 1 will allow the page to be shown and 0 will hide it. The defalut value is set as 1. When …

Member Avatar for MattD00
0
2K
Member Avatar for shelexelex

I want to sum the values of the 'countryamt' column and echo it out. The inputs are coming from the 'matconfirmation.php'. I stored all the inputs in an array, but i dont know how to sum the values up. The bold part of the code was what i tried doing, …

Member Avatar for diafol
0
311
Member Avatar for kh_cade

Hey guys i need your help, i have a project "Web information extraction/gathering/scraping system" - An information extraction system extracts and gethers information from multiple websites, then; it organizes, formats and presents the information to the users. it helps users to find information on particular things (such as flight tickets, …

Member Avatar for pritaeas
0
120
Member Avatar for tqmd1

Dear Experts How to view PHP files without local host? I need a PHP Viewer software. Please help

Member Avatar for pritaeas
0
72
Member Avatar for Tiago_1

Hello, I have a simple HTML table generated using Mysql and PHP: type region platform price $/h m3.xlarge ap-northeast-1 windows 0.980 hs1.8xlarge ap-northeast-1 rhel 5.810 hi1.4xlarge ap-northeast-1 rhel 3.960 m1.medium ap-northeast-1 windows 0.230 cg1.4xlarge ap-northeast-1 rhel 4.450 cc2.8xlarge ap-northeast-1 rhel 3.100 c1.xlarge ap-northeast-1 rhel 0.855 c1.medium ap-northeast-1 rhel 0.254 m2.4xlarge …

Member Avatar for Alibi Ghazi
0
254
Member Avatar for chrisschristou

hello dears daniweb friend i'm trying to get total price in php with the below code but i get only the shipping price when i request echo total what is wrong in my code ??? <form name="valide" method="POST" action="<?php echo $editFormAction; ?>"> <label for="Sub total"></label> <label for="shipping">Sub total</label><input name="subtotal2" type="text" …

Member Avatar for chrisschristou
0
250
Member Avatar for levesque123456

I am trying to make a calculator to calculate your age in dog years, the following is the code I have so far, minus the html portion of it <?php if (!isset($_POST['your_age']) ) { header("Location: dog_form.html"); exit; } if ($_POST['your_age'] == "your_age") { $result = ($_POST['your_age'] *7; if ($_POST['your_age'] >= …

Member Avatar for diafol
0
360
Member Avatar for geoamins2

Dear friends i have developed a report using php/html/css. i have included @media print css style using div tag for page break because i want to print on different pages. each and everyting is working fine but only problem is delaying during printing..the printer print one page and sleep for …

Member Avatar for diafol
0
477

The End.