39,323 Topics

Member Avatar for
Member Avatar for bro_1

Rewrite rule get variable problem This example code RewriteRule ^(.*)/(.*)$ /media.php?hal=$1&id_image=$2 [NC,L]

Member Avatar for bro_1
0
87
Member Avatar for davy_yg

Hello, I am looking for a way to place an automatic . (dot) or , (comma) for every multiple of 3. I only find the mask to do so but it requires the user to input the exact amount of numbers: <script type="text/javascript"> $(function() { $.mask.definitions['~'] = "[+-]"; $("#numbermask").mask("999,999,999",{completed:function(){alert("completed!");}}); $("input").blur(function() …

Member Avatar for matrixdevuk
0
229
Member Avatar for Jonathan_9

I just need help regarding my problem in editing an imploded input text from the database: I have a dynamic input text which means that you can add more input field if you click the add more button. My problem is that when tried to edit those text fields the …

Member Avatar for hericles
0
1K
Member Avatar for terryds

I have a custom error-handler class (actually it's an exception handler) So, when an exception is thrown, then it'll be caught and stored in the error-handler class.. After all the execution, All the errors will be shown by the class.. Is it a good or bad practice ? Does it …

Member Avatar for matrixdevuk
0
177
Member Avatar for Azii

Hi, I have php page, 2.php, which collects the data and dispalys it from previous page , 1.php. In 2.php, I also have html and javaScript, which contains a button, and cerresponding onclick script, which opens the OUTLOOk to send the E-mail with given sendername and subject. But for body …

Member Avatar for broj1
0
202
Member Avatar for zebnoon1

Dear friend, i have 2 tab 1) atab 2) qtab.. when i put question and options answers .. i use three forms qset.php, Ans.php and result.php here are code what i want that email of user updated after click button submit code is below ans.php <?PHP include "conn.php"; //session_start(); ?> …

Member Avatar for broj1
0
228
Member Avatar for tNicknames

How I can display elements of the following object ? e.g : data -> percent_off As I stored following like : $input = file_get_contents("php://input"); $retun_val = json_decode($input); stdClass Object ( [id] => evt_151H4qEfYJJpTpgqdg5eQvIK [created] => 1416575036 [livemode] => [type] => coupon.created [data] => stdClass Object ( [object] => stdClass Object …

Member Avatar for broj1
0
174
Member Avatar for prash21m

Hi guys ! I am using rewriting rules to redirect some URLs, but search engines crawling both URL (Rewritten and Real URLs). For example : **Real URL :** www.catchcoupons.in/storecoupon.php?cid=Flipkart **Rewritten URL :** www.catchcoupons.in/coupon/Flipkart.html Search Engines are crawling both URLs, even i want search engines to index only Rewritten URLs (http://www.catchcoupons.in/coupon/Flipkart.html) …

Member Avatar for prash21m
0
555
Member Avatar for davy_yg

Hello, In my index.php file front page at first, it has a xampp logo - then in order to erase it I have to place this code: <!-- Favicons --> <link rel="shortcut icon" href="img/icons/favicon_.ico"> <link rel="apple-touch-icon" sizes="114x114" href="img/icons/apple-touch-icon-114x114.png"> <link rel="apple-touch-icon" sizes="72x72" href="img/icons/apple-touch-icon-72x72.png"> <link rel="apple-touch-icon" href="img/icons/apple-touch-icon.png"> by miss leading the favicon …

Member Avatar for diafol
0
6K
Member Avatar for mak96

[CODE=php] <?php //get the variables $var = $_POST['query'] ; $trimmed = trim($var); $table = $_POST['table']; //make connection $conn = mysql_connect('localhost','root','123') or die("Error:".mysql_error()); mysql_select_db('sutilities',$conn) or die("Error:".mysql_error()); //delete temp search table $del_table = "drop table search"; #mysql_query($del_table) or die ("Error:".mysql_error()); // Create a MySQL table in the selected database #mysql_query("CREATE TABLE search( …

Member Avatar for honeymehta
0
866
Member Avatar for vaultdweller123

hello people daniweb....just want to ask honest oppinions from you guys, because this has been bugging me for years. I've been a PHP developer for 5 year using windows. So far so good. i am able to accomplish the task at hand. but there's always back of my head saying, …

Member Avatar for vaultdweller123
0
174
Member Avatar for saadi06

Hi, I have three folders in my project named as apache, php and mysql. I want to update my php,apache and mysql to latest version but I do not want to reinstall all the system again. My system works in this way that we copy all the folders and install …

Member Avatar for veedeoo
0
500
Member Avatar for Ali_41

Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'a5247065_funmaza'@'localhost' (using password: YES) in /home/a5247065/public_html/includes/connect.php on line 2 When I uploaded my website on web hosting that error occurs...plzz help me

Member Avatar for minitauros
0
147
Member Avatar for ceeandcee

I have two tables that I would like to work together (stories and events). Stories is a table that is used to produce articles on a website and events is a series of events put into a table. I would like to be able to add events to story based …

Member Avatar for ceeandcee
0
196
Member Avatar for krga86

My code on website is not validate on W3 Validator. <?xml version="1.0" encoding="ISO-8859-1"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR...nsitional.dtd"> <html> <head> <title> Contact </title> <meta name="description" content="Inzenjerski portal,baza znanja,vesti,seme,desavanja"/> <meta name="keywords" content="Automatika,PLC,frekventni regulatori,arduino"/> <meta name="author" content="Nikola Krga"/> <meta name="robots" content="noindex, nofollow"/> <link type="text/css" rel="stylesheet" href="about.css"/> </head> <body> <table …

Member Avatar for diafol
0
96
Member Avatar for stokie-rich

Hi people I need some advice off you please. I'm creating a quiz for the website that I'm creating for my portfolio to help me to get a graduate job. I want to get 20 questions (at random) I think I have got this sorted now. But when I try …

Member Avatar for stokie-rich
0
3K
Member Avatar for ToniSoft

I am using a Crud plugin and i am having some problems. After i modifie it for my needs i ma having a problems creating a records. Error code is in line 186. this is my code please help.. <?php require 'database.php'; if ( !empty($_POST)) { // keep track validation …

Member Avatar for ToniSoft
0
213
Member Avatar for davy_yg

Hello, I am trying to protect my xampp with password: by accessing this url: http://localhost/security/xamppsecurity.php This is the view : http://www.innovation.web.id/xampp-security.jpg I wonder why my xampp security view in localhost is different from my xampp security view in the server? I already re-install my xampp 4 times (these are the …

Member Avatar for veedeoo
0
984
Member Avatar for myfit

Hello all, I want to preview an image before it upload and it can remove preview (similar cancel select image). I only want to up 1 image, preview it and can remove it. I have code in that link and I don't know why it don't preview image, I can't …

Member Avatar for myfit
0
145
Member Avatar for Mario_4

Hi, This is is my php: <?php if($_SERVER['REQUEST_METHOD'] == 'POST') { echo '<h1>' . $_POST['word'] . '</h1>'; echo '<p>' . $_POST['sentence'] . '</p>'; } else { echo 'Invalid request'; } ?> How can I get the echo displayed in a CSS box or Javascript popup window. Any help appreciated. Thanks

Member Avatar for diafol
0
160
Member Avatar for dominic.ceraso.9

<?php require_once 'app/init.php'; ?> <?php echo View::make('header')->render() ?> <div id="fb-root"></div> <script>(function(d, s, id) { var js, fjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) return; js = d.createElement(s); js.id = id; js.src = "//connect.facebook.net/en_US/sdk.js#xfbml=1&appId=1499626773621182&version=v2.0"; fjs.parentNode.insertBefore(js, fjs); }(document, 'script', 'facebook-jssdk'));</script> <?php if (Auth::check()): ?> <div id="body"> <?php // Walid $facebook_user_id = false; $facebookConfig = …

0
83
Member Avatar for tarunap
Member Avatar for diafol
0
87
Member Avatar for lloyd.farrell.7

Hi Everyone, I have the following prepared statement and I am having problems displaying data from my test db Can someone help me out please. $STM = $dbh->prepare('SELECT * FROM tbl WHERE var = :lsecure'); $STM->bindParam(':lsecure', $var); $STM->execute(); $count = $STM->rowCount(); $row = $STM -> fetch(); if($count > 0){ foreach($results …

Member Avatar for matrixdevuk
0
382
Member Avatar for terryds

Can you tell me what's the right way to benchmark script ? I've profilled it by using Xdebug, but the result always changes And, when i use memory_get_usage, it gives me a definite result.. But, is it right for me to say that the less memory it use, the faster …

0
69
Member Avatar for annya

Dear Friends iam facing a problem in the pagination. It was working fine in my offline wamp server when i moves it to the online it was showing Warning: mysql_real_escape_string() expects parameter 2 to be resource, integer given in /home/pps/public_html/news_and_events.php on line 10 Please help me I have gone through …

Member Avatar for matrixdevuk
0
908
Member Avatar for myfit

Hello every one, I want to select a image and preview an image before I click button Upload, I can do it and it done but I want to have a event cancle select this file by click on <a></a> or click on button, it may be look like post …

0
70
Member Avatar for OtepTheThird

Im new to PHP, i just want to know if theres any rule in php in terms of single statement multiple lines. for example in VB.Net we uses "&_"(w/o the quote) to tell vb.net that it is a single statment and it has a continuation. is there any in php? …

Member Avatar for matrixdevuk
0
478
Member Avatar for zeeshan009

Hi All, When i am trying to open any php file by Macromedia Dreamweaver 8, i am getting an error. " Please reinstall your software" A problem was detected with your application. Please reinstall this software to correct the problem" I had reinstalled and installed it , but issue still …

Member Avatar for diafol
0
157
Member Avatar for zebnoon1

Dear firnds, I want to upload my php Forms and database...I am using godaddy.com i have my login and pwd.... I uploaded Survey project Php files and database.please,check my conn.php file code is below <?php $username="mydbphp@182.50.131.34"; $password=""; $server="166.62.8.51"; $db="mydbphp"; $conn=new mysqli($server,$username,$password,$db); if(!$conn){ echo "Connection not established"; } ?> please, suggest …

Member Avatar for zebnoon1
0
490
Member Avatar for myfit

Hi all, I want to make a Auto Complete Text Input like a list, it similar or the same as form post status of facebook in below picture, I known it can make by ajax and jQurey, so who know link demo, link guide, or example to make it, may …

Member Avatar for myfit
0
106

The End.