39,402 Topics
![]() | |
how to make a web page compatible on all browser in php? I made a web page but it not compatible on internet explorer and mozilla. i m using google chrome? please give me suitable example with code. ![]() | |
i have PHP code that creates a text file. after the file has been created i want it to be opened in another tab. how do i modify the code below. <?php session_start(); require_once 'includes/config.php'; require_once 'includes/functions.php'; set_time_limit(0); // override the maximum execution time in php.ini file if ( isset( … ![]() | |
i installed PHP version5.4.3 SQL server 2008 IIS7 SQLSRV version3.0 Drupal 7 SQLSTATE[42S02]: [Microsoft][SQL Server Native Client 11.0][SQL Server]Invalid object name 'watchdog'. This error occurs right after the following during Drupal 7.26 installation (shown in the error report). It hangs at the start of Install Profile: Installation tasksChoose profile(done)Choose language(done)Verify … | |
I have a source code and want allow user to create their webs with it. I want to use user's registration information about subdomain, admin account and then automatically copy source code folder, create and import database and configure the code for the user, it's the same as a basecamp … | |
![]() | K, so I'm using crypt() to hash my passwords as that seems to be the latest and greatest advice circulating on the net. OK, no problem this I'm doing as luckily my production server supports 5.3 ... Well I have my own VPS so upgrading wouldn't be an issue except … ![]() |
Following is the app architecture: application |-config |-config.inc.php (contains definition of App ROOT) library |-autoload.class.php public |-css |-img index.php Problem: I am not understanding how to call config file so as to set and access App Root. In Config File - I have defined Constant -> MY_APP_ROOT Now, I wish … ![]() | |
I am trying to insert data into the mysql table using php... but whenever i fill the form and insert data, it updates it but no exact data is present in my table, there is only 1's present in the records rather than actual data which i have inserted. Kindly … | |
Hi, I have been able to get bitnami to work successfully at work but not at home. I have a linksys router I connect to. I was using port 80 and 3306 I can launch application but cannot connect to wordpress at all. I understand ports need certain admin rights … | |
Hello, I am trying to the print the variables from the URL. I have tried some methods but it is working. There are variables in the URL. it is just I am not able to print them out. <?php if(isset($_SESSION['cart'])){ echo '<ol>'; foreach ($_GET as $name => $value) { echo … | |
i currently have PHP 5.2.7 on my laptop and i would like to upgrade my php version. how do i do that? ![]() | |
![]() | Let's say I have a few input boxes with id's 1,2,3 respectively as a simple example. Now I am using these ids to update certain field in my db. But what is to stop the user from editing those ids to something else! By doing inspect element in chrome. What … ![]() |
How would I use [web.py](http://www.webpy.org) to execute ASP/PHP server files? Or can web.py not do that and can someone provide me a python script that can execute ASP/PHP server files? Should I try posting this in the PHP forum, Web Design, html, and css fourm, or the Web development forum … | |
can any one give me resume upload script for careers page in php | |
This is baffling me and I am tired of trying different variations to accomplish what should be such a simple task. I have a folder in the main directory of the domainb called 'enroll_updates' that a file will be written to via CRON every night. But I am going to … | |
hi..i want my customers/users to upload as many jpg pic they want into their individual album..and can make i choice(like what kind of photos(stamp size,poster,collage etc)they want of a particular photo and also there should be the no. of quantities they want...n after submitting those data they total sum should … | |
How to convert html to pdf and download in php | |
This is my codes in my localhost: contactus.php <html> <head> <link href= "css/contact.css" rel="stylesheet" type="text/css" media="screen"> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script> <script> $("#inputID").ready(function(){ $("#inputID input").focus(function(){ $(this).css("background-color","#fbecc5"); }); $("#inputID input").blur(function(){ $(this).css("background-color","#f5f5f5"); }); $("#inputID textarea").focus(function(){ $(this).css("background-color","#fbecc5"); }); $("#inputID textarea").blur(function(){ $(this).css("background-color","#f5f5f5"); }); }); </script> </head> <?php include('includes/navigation.php'); ?> <body> <div id="titlebar"><div id="title"><h2 class="title">Contact Us</h2></title></div> <div id="stitle"> … | |
<table > <tr> <td width="673" align="center" valign="top"><img src = "img1.jpg" name = 'SlideShow' width = 670 height = 249 border="0"></td></tr> <tr> <td height="19" align="left" valign="top"> <div align="justify" class="style5"> <h2 align="left"> Your Search Results:</h2> <form action="searchfeed.php" method="post" name="searchform" id="searchform" onSubmit = "return check_fields(this)"; > <table width="654" border="0" cellpadding="0" cellspacing="0" align="center"> <tr> … | |
Hello, I expect it returns to either -1 or 1 but boolean. $dbc = mysqli_connect("localhost", "root", "","test_site") or die ("SQL could not connect to database!."); $query = "INSERT INTO user_accounts(member_type,username,password,name,email,country) VALUES ('$membertype','$username','$password','$name','$email','$country')"; $result = mysqli_query($dbc, $query); $registered =mysqli_affected_rows($result); if($registered>0) echo "Registered Successfully."; else echo "Your registration is unsuccessful."; mysqli_close($dbc); **Warning: … | |
I recently did an upgrade to php5.5.6 but have searched for hours and can't the right dll /* Basic test */ $handle = printer_open('PRINTER NAME'); printer_write($handle, "Text to print"); printer_close($handle); exit; | |
hello sir, i have php code to display the following details. Total size : 1.9 MB No. of files : 15 No. of directories : 2 but i need to do this by database because i am displaying links from database. so how it is possible. any suggestions please......... thank … ![]() | |
if i have 10 files in a folder then how to make a zip file for download. any suggestion here or any links . please reply... thanks for reply in advance.... | |
Hi i have created a website for my client using PHP and mysql . The client need to backup a table in database as excel file every day. Well he had no idea about coding and all ... He need to backup using a simple way. Please anyone let me … | |
Hello, I have this code that shows fb share button which I intend my code to share the article title instead of only the url. how? event_article.php <html> <link href= "css/events.css" rel="stylesheet" type="text/css" media="screen"> <!-- OpenGraph Facebook Meta Tags --> <meta property="og:title" content="Website Title /> <meta property="og:type" content="website" /> <meta … | |
hello admin, how to display the following shortcut. your here >> home >> files >> 2014 >> 02. is database required for that ? any suggestions please ....... thank you........ | |
How to check if pancard no. is valid for a user in our website | |
apache http stops working xampp when i execute any db related files in xampp, even i uninstalled team viewr from my (window7 ultimate) | |
Good Evening All... I have a need to do something and have no clue where to start, so Here I am asking for some direction or even a solution if you happen to have one. Here is the situation... I have a member base that orders a product that is … | |
![]() | Hey guys, just wondering what is the best practice to do mysql queries in CI. Do I need to escape the query using db->query->escape? Additionally, outputing stuff from the db so it doesn't break my html form what's the difference between using xss_escape and using php's htmlentities() functions. Thanks in … |
![]() | As title states, I need help using both query strings and segment urls. Any ideas I'm at a loss? ![]() |
Hello everyone! My [wordpress website](http://newweb.ianreidllc.com/) form is not working. i m using builtin wordpress form with this function <?php get_search_form(); ?> when i click on search button the URL is ( mywebsite.com/s=what&submit= ) and page reload and after reloading it shows only home page, the form is not showing the … | |
Hello, i have an question could you help me please? iam trying to create a email for myself with inbox,sent,delete,and reply now,i want to add a reply button via php but i dont konw how to add it,i appreciated if you help me, ![]() | |
i may select one or more category.... <?php include('db.php'); $sql = mysqli_query("select * from brandname where category = 'cloths' "); while($row = mysqli_fetch_array($sql)){ echo $row['brandname']; } ?> <form action="checkbox.php" method="post"> Bags:<input type="checkbox" name="bags" value="bags"><br/> Cloths:<input type="checkbox" name="cloths" value="cloths"><br/> Bikes:<input type="checkbox" name="bike" value="bike"><br/> Shoes:<input type="checkbox" name="shoes" value="shoes"><br/> </form> <div id="load"> </div> | |
I got 1 form that contain a table that can be editable . In that table i added 1 column for checkbox . The checkbox is use to send a notification email based on the checked box . I want to create a button that connect to the page which … | |
Hello, I have this code. After adding this php mailer, I wonder why my form won't appears. Only if I comment out the my code between <?php and ?> then my form appears. Also, how to make my form work so that if I fill it in - in my … | |
Hello, Am doin a web application.How can i implement sms service in my website?? Please show me some references..and guidence please.. Thanks | |
I Want to development e learing web based system how do i php code for viwe comments and posting comments ,like a forum | |
Hi, I have 2 fields that are used for date. In my fucntion, i have it format the date into Y-m-d format, $purchase_date = mysqli_real_escape_string($mysqli,date('Y-m-d',$_POST['purchase_date'])); $warranty_end_date = mysqli_real_escape_string($mysqli,date('Y-m-d',$_POST['warranty_end_date'])); But when I enter a date into it, it just puts 0000-00-00 I thought this was the correct format, but seems to … | |
The following code unable to insert null or blank value into table called custreg i.e. $sagentid and $sagentname. if(isset($_POST['Submit'])){ $reg_no=$_POST['reg_no']; $firstname=strtoupper(str_replace(',', '' , $_POST['firstname'])); $lastname=strtoupper(str_replace(',', '' , $_POST['lastname'])); $mobno1=$_POST['mobno1']; $mobno2=$_POST['mobno2']; $address=strtoupper($_POST['address']); $city=strtoupper($_POST['city']); $dateofjoin=$_POST['dateofjoin']; $regfee=$_POST['regfee']; $magentid=$_POST['magentid']; $sagentid=$_POST['sagentid']; $skimcity=$_POST['skimcity']; $skimyear=$_POST['skimyear']; $skimname=$_POST['skimname']; $cust_fullname = $firstname.' '.$lastname; $pdo = Database::connect(); $pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); $sql = … | |
Hello All, I am using google calendaer API PHP libraries. but refreshToken is not working for me. Please tell me where am wrong in this code: <?php require_once 'src/Google_Client.php'; require_once 'src/contrib/Google_CalendarService.php'; session_start(); $client = new Google_Client(); $client->setApplicationName("Google Calendar PHP Starter Application"); $client->setAccessType('offline'); // added this to handle offline section $cal … | |
I have a problem been a long. I am totally lost what is wrong! It does not give compile-time error. But it just doesnt add data to database. register.php <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> <title>My First Web site</title> <meta name="keywords" content="" /> <meta name="description" content="" /> <link … | |
Some weeks ago I posted this and I realized from the referrals that it may help to be as a code snippet. This is an example of getting products details from categories – subcategories using ajax call. I am fond of OOP and this is not , but I believe … | |
I just have done a web app about group work, and I want use 1 source to create multisite for multi group use (like teambox.com or wordpress multisite) Ex: group A will be a.abc.com, group B : b.abc.com but only use a source code and database Please help me, thanks … | |
How to tell whether AJAX give JSON response not a html page in php? ![]() | |
I'm trying to change user ldap passwords heres the code $ds = ldap_connect(LDAP_HOST, LDAP_PORT); ldap_set_option($ds, LDAP_OPT_PROTOCOL_VERSION, 3); $bind = ldap_bind($ds, 'uid={admin},'.LDAP_BASEDN, '{admin password}'); $userpassword = "{SHA}" . base64_encode(sha1( '{password}', TRUE )); $userdata = array("userPassword" => $userpassword); $result = ldap_mod_replace($ds, 'uid={user},'.LDAP_BASEDN, $userdata); ldap_close($ds); `$result` returns true i can even see the … ![]() | |
So i got one form so the user can enter and submit their personal details. The problem is i didn't apply any validation . I've done a simple validation like this , but it seem to be not working . function validate(){ if((\$('txt_no_kp').value != '') && (\$('txt_nama').value != '') && … | |
Hello, How to make the contact us works? [Contact Us](http://www.indonusa.net.id/contactus.php) contactus.php <?php // require_once('recaptchalib.php'); $name = strip_tags(@$_POST['name']); $email = str_replace(" ", "", strip_tags(@$_POST['email'])); $subject = str_replace(" ", "", strip_tags(@$_POST['subject'])); $message = strip_tags(@$_POST['message']); if (@$_POST['submit']) { if ($name&&$email&&$subject&&$message) { // $privatekey = "6LfjvdcSAAAAAHNcKjYO5DhTNefxYZHYcfhtrvGC"; // $resp = recaptcha_check_answer($privatekey, // $_SERVER["REMOTE_ADDR"], // $_POST["recaptcha_challenge_field"], … | |
hi I using PHP/MySQL with Google Maps from here https://developers.google.com/maps/articles/phpsqlajax_v3 and then I used PHP's DOM functions to Output XML from here https://developers.google.com/maps/articles/phpsqlajax_v3#outputxml everything working fine with me but I need to center google map on the marker. here is the code that center the map and make the zoom … | |
Hello All, I want to send event invitation to Google user, using google calendar API. for this, I am using Google calendar API in php, for inserting event in the google calendar . I have used php-client libraries https://developers.google.com/google-apps/calendar/downloads But problem with this is : it require login. So how … |
The End.