39,316 Topics

Member Avatar for
Member Avatar for divyakrishnan

Hi all, I want to block some of the special charcters using preg_match. I used following code.It works fine with including ' and ". After including ' and " it willnot working <?php if($_REQUEST['sub']) { $Data=$_REQUEST['data']; $regexp = '/[#$%^&*+={}<>'\"]+$/'; echo preg_match($regexp, $Data); if (preg_match($regexp, $Data)) { echo "ERROR"; } } …

Member Avatar for diafol
0
175
Member Avatar for layman114

I am trying to connect to the Ms access database using PHP. The database, that I created has '.accdb' as an extension. I tried the following steps. but I get this error "The specified DSN contains an architecture mismatch between the Driver and Application". Any ideas?? 1. Go to your …

Member Avatar for diafol
0
344
Member Avatar for Siberian

Hi, I found two pages that describe how to check and see if a CronJob with script is working, without waiting for the exact time and date for the cronJob to execute. Are these methods valid methods, or is there a better method to use, so I can check right …

Member Avatar for Siberian
0
350
Member Avatar for sonicx2218

I have never used PHP before. I am familiar with HTML and Javascript, but never delved into PHP territory unfortunately. I'm stuck on a host that does not support PHP directly, but says if I host it on another site and embed it in the html it should work. The …

Member Avatar for diafol
0
142
Member Avatar for davidkroj

How we configure to our website in wordpress? Just i purchased new domain for my new website. But i don't know how we can install to wordpress cms on website. So please guide me! Also want to ask i want to using standard theme on website so can we change …

Member Avatar for RH-Calvin
0
139
Member Avatar for joseph.lyons.754

Hey Guys, I am writing this code to send out personalised emails to potential customers. And i have few questions about the code. This code is made from several tutorials and code examples. I have searched for stuff on it and theres plenty of articles about it but not what …

Member Avatar for joseph.lyons.754
0
300
Member Avatar for rosalyncaraig

good eve. please help give me some codes that used in php Language kht na basic lng po need lang thankyou

Member Avatar for almostbob
-1
94
Member Avatar for thearts.beach

I have this line <INPUT name=c value="<?php echo href="http://',$data2['c'],' " ',$data2['c'],' ?>"> &nbsp; and it is giving out this error Parse error: syntax error, unexpected '=', expecting ',' or ';' in /home/a3024539/public_html/bigtestone1.php on line 21 The output I am looking for is the text from the table to become a …

Member Avatar for thearts.beach
0
290
Member Avatar for engr_pir

Hello, I have used wrodpress Pink rio theme and filterable portfolio ,added some additional images when clicked on project detail link theme flex slider is created right !. I need here my original images (like image.jpg) which will be displayed in its actual size , but image with some cropped …

Member Avatar for diafol
0
196
Member Avatar for csshacker

[CODE]<?php header("Content-type: application/x-msdownload"); header("Content-Disposition: attachment; filename=extraction.csv"); header("Pragma: no-cache"); header("Expires: 0"); require_once( "db.php" ); $query = "SELECT * FROM name ORDER BY last"; $result = mysql_query($query) or die(mysql_error()); echo "ID,First,Middle,Last,Email\r\n"; //header while($row = mysql_fetch_array($result)){ echo "\"$row[id]\",\"$row[first]\",\"$row[middle]\",\"$row[last]\",\"$row[email]\"\r\n"; //data } ?>[/CODE]

Member Avatar for diafol
1
608
Member Avatar for raihanbd1000
Member Avatar for diafol
0
142
Member Avatar for garyjohnson

I have a query in php that has an offset in it. I want the offset value to be a variable but I am not sure how to do so. This is my query but it comes up as an error. $query = "SELECT * FROM comments WHERE `commenter_username` IN …

Member Avatar for diafol
0
181
Member Avatar for nit8899

I have a table with 29 columns and each column with a big title. Is there any way to rotate the header of the table. Thanks.

Member Avatar for pritaeas
0
110
Member Avatar for OsaMasw

hey there I have problem in running som function in php I've created simple chat system , I want to delete every message create 1 hour ago or 30 minutes ago I've used mysql_query("DELETE FROM `chat` WHERE `cht_date` < DATE_SUB(NOW(), INTERVAL 1 MINUTE)"); my "cht_date" type in database is "TIME" …

Member Avatar for OsaMasw
0
299
Member Avatar for official.DJ.cabo

**I got this error on line 369** Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /home/a4670304/public_html/lol.php on line 369 <?php // session_start(); require_once('auth.php'); include("dbconnection.php"); ?> <!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"> <head> <link rel="icon" href="img/Untitled-1.png" type="image" /> <link rel="shortcut icon" href="img/Untitled-1.png" type="image" …

Member Avatar for pritaeas
0
572
Member Avatar for official.DJ.cabo

**I Get error like this when i start the host.** <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript" src="jquery.watermarkinput.js"></script> <script type="text/javascript"> $(document).ready(function(){ $(".search").keyup(function() { var searchbox = $(this).val(); var dataString = 'searchword='+ searchbox; if(searchbox=='') { } else { $.ajax({ type: "POST", url: "search.php", data: dataString, cache: false, success: function(html) { $("#display").html(html).show(); } }); …

Member Avatar for dinhunzvi
0
337
Member Avatar for dinhunzvi

i have a php script that generates a text file. the code is as follows. the text file is being is being created. <?php session_start(); /** * @author FreeUser * @copyright 2013 */ set_time_limit(0); // override the maximum execution time in php.ini file require_once 'includes/mysql_connect.php'; require_once 'includes/functions.php'; if ( isset( …

Member Avatar for dinhunzvi
0
272
Member Avatar for McLaren

Hello, there is lot of discussions and articles about xdebug but I cannot make it working. Everything I do by those writings does not work. I am using wamp server php 5.3.8 on windows and sublime text 2. Tries setting sublime project this way: { "folders": [ { "path": "/D/projektai/glab" …

Member Avatar for McLaren
0
324
Member Avatar for klemme

Hi All, Im trying to learn how to use pdo, and am curious to know how i best can deal with allkind off errors. Lets say there is a typo, or im selecting an non existing row etc etc. In my connection, do I have do set anyting different here: …

Member Avatar for diafol
0
257
Member Avatar for sanbhu2105

hi guys, i have 2 tables - tblproduct and tblretprod. i insert my product details to tbl product with prod_id being auto increment other fields are prod_name, prod_brand, prod_desc, prod_photo, cat, subcat i hv another table tblretprod with fields id, user_id, prod_id, prod_price i can add my products successfully i …

Member Avatar for sanbhu2105
0
332
Member Avatar for phorce

I have not visited PHP/MYSQLI for some time now, and, need some guidance on the following problem: I'm trying to retrive all the data from the given week and just in that week. My table looks like the following: id int(11) type varchar(255) week datetime And as a test data …

Member Avatar for phorce
0
184
Member Avatar for cgull

Hello, I am developing a site with Codeigniter 2.1.3. I am creating a pdf file with mpdf and I save the file in a folder outside the root folder. So my folders look like this: c:/mysite/uploads/mypdffile.pdf c:/mysite/public_html I looked at all kind of tutorials and forum posts about the php …

Member Avatar for cereal
0
3K
Member Avatar for Deep_Coder

I want to pass data from one function to another function in same controller.And then show that data on a view.This is my code parts.But it gives errors in view.Please can you help me? Model function getEmail($logindata) { $emailentered=$logindata['emailpost']; return $emailentered; } Controller public function Login() { $this->load->view('header'); $this->load->view('userLogIn'); if($_POST) …

Member Avatar for diafol
0
3K
Member Avatar for showman13

I have a question about carrying an entire html table from one page to another in a PHP variable. I would have thought that I could do it, but it doesn't seem to want to work It is a shopping cart displayed in a table, and when they accept the …

Member Avatar for showman13
0
167
Member Avatar for garyjohnson

Hello, I have a mysql query $query = "SELECT * FROM comments WHERE commenter_username IN (" . join(',', $list) . ") Or Number IN (" . join(',', $list) . ") ORDER BY comment_id DESC"; I want the query to select one row, the row with the highest id. Then store …

Member Avatar for Atli
0
299
Member Avatar for SQLpower

Hello, I have a PHP webpage and I want to pass my session to my XBAP app. I created a cookie. $opts = array('http' => array('header'=> 'Cookie: ' . $_SESSION['FILENAME']."\r\n")); $context = stream_context_create($opts); $contents = file_get_contents("http://localhost/WpfBrowserApplicationUltimate.xbap", false, $context); echo $contents; private void btnAbout_Click(object sender, RoutedEventArgs e) { //MessageBox.Show("RichTextPad. © 2014 …

Member Avatar for Ketsuekiame
0
271
Member Avatar for Ancient Dragon

I installed WampServer on my Windows 7 Ultilate computer the other day and WordPress yesterday. I attempted to test WP registration in my web site but I never received the registration confirmation email. Is this not possible on localhost? If it is how do I go about getting email to …

Member Avatar for Ancient Dragon
0
316
Member Avatar for grouptechindore

<?php if(isset($_POST['submit'])) { require_once 'connect.php'; $query=mysql_query("SELECT 'admin_name.admin_name','admin_name.admin_lastname','admin_name.admin_creattime', 'admin_detail.admin_pass','admin_detail.admin_phone','admin_detail.admin_email','admin_detail.admin_gender' FROM admin_name,admin_detail "); if(!$query) { die('nt good fail to select'.mysql_error()); } else{ while($row=mysql_fetch_row($query)): $name = $row['admin_name']; $last = $row['admin_lastname']; $acctime = $row['admin_creattime']; $pass = $row['admin_pass']; $phone = $row['admin_phone']; $mail = $row['admin_email']; $gen = $row['admin_gender']; echo $name." ".$last." ".$acctime." ".$pass." ".$phone." ".$mail." ".$gen; …

Member Avatar for pritaeas
0
284
Member Avatar for jhbalaji

I have a Simple Pie file! It is not supporting Swedish langague I am trying to fix this but i cant fix it! Can some one help on it?? Input i tried with För första gången kommer vi inte att liverapportera kvällens WWDC-keynote. Vi kommer inte ens att sammanställa en …

Member Avatar for pixelsoul
0
178
Member Avatar for essaydoctor

What does a "private" area of a website involve?Webhooks, tokens, APIs? I am developing a website which will allow registered users to register, make a payment, and then get transferred to an area where they write an online essay in a textarea. I DON'T WANT NON-PAYERS TO GO HERE. The …

Member Avatar for diafol
0
193

The End.