39,320 Topics
| |
Hello! I have a problem with sorting mysql queries into pages. So i wanna set every query that is passed to screen to be divided with 30 rows per page. Here is what i come up with: <?php $con=mysqli_connect("*","*","*","*"); // MySQL connect if (mysqli_connect_errno()) { echo "MySQL: no connection! " … | |
I'm trying to prevent the user from purchasing any share, if the cash in his/her account is less than the desired stock cost (price * shares). However, I'm getting the following error: Warning: mysql_query() expects parameter 1 to be string, array given in /home/jharvard/vhosts/pset7/public/buy.php on line 39 Here is the … | |
I changed my hosting; and in my website has SMS facility. After changing hosting SMSs are not sending. Is my hosting disabled cURL ? How I can see cURL is enabled or disabled ? If it is disabled then how I can enable through PHP coding ? | |
do anyone have example how this is done Define the array that is the result of the exam seven students who took the subject of Web services and have won 77, 98, 56, 87, 64, 55, 82 points. Print all of the results, the minimum and maximum number of points, … | |
My script has a two bugs, which I've been unable to fix. So, I need your help. Here is the file: <?php // configuration require("../includes/config.php"); // check if form was submitted if ($_SERVER["REQUEST_METHOD"] == "POST") { // type of transaction - for tracking history $transaction = 'SELL'; // validate submission … | |
I have having a hard time with this problem and anything that I try seems not to work. This is the code that I am working with if (strpos($content,'{blog:blogtitle}') !== false) { echo 'true'; } echo $blogname; if($blogname != ""){ $replaced_content = str_replace('{blog:blogtitle}', $blogname, $content); }else{ $replaced_content = str_replace("{blog:blogtitle}", '', … | |
| What is the difference between GET and POST methods of submitting a form? |
this is my code $totalDates = "SELECT COUNT( DISTINCT date ) FROM table_name"; $result = mysqli_query($connection, $totalDates); $totalDates = mysqli_fetch_array($totalDates, MYSQLI_NUM); echo "there are total $totalDates Distinct Rows"; i want to get the no of distinct dates from table_name but it giving me this error , what i might be … | |
Is it possible to remove the suffix of URLs using the .htaccess file? For example you have [url]http://www.example.com/page.php[/url] can you change it to [url]http://www.example.com/page[/url] without the .php. I want it to work both ways, with the .php and without. Is there a way to do it with the .htaccess file? … | |
Hi, i have the requirement of converting a php-mysql app into a standalone app. The main purpose is to hide the source code from the client, and to run the app in his system without a web browser. I wonder if there is any tool for this, so that i … | |
I am in the process of completing a php program. The issue i am having is getting the data to display on a page after submission so that the data can be printed and handed to the customers. My current code is <?php if(isset($_POST['name'])) { $date = $_POST['date']; $name = … | |
I am facing the problem that in my inventory my Physical quantity not matching to my available quantity.I have color option and If i select 10 products it minus 10 products from all the colors.this is my code <? /*********************************************************************************************\ *********************************************************************************************** ** ** ** My Shop ** ** Version 1.0 … | |
Hi, I have started using file_get_contents and regex, and after struggling have got it working. The issue I have is that when I print_r($match[1]); I get the results I want, but I do not know how to then convert this into something that I can store in a MySql database, … | |
I want to make site similar to [filehippo](http://www.filehippo.com),and I want to get all the content of filehippo.how can it be done? | |
hello i use https://netbeans.org/kb/docs/php/remote-hosting-and-ftp-account.html to make changes directly to my website from netbeans but it doesn't work... can anyone tell me about what to fill in hostname?? i used my websites name .....www.gigname.com | |
How to include an icon into a txt file or rtf file | |
Hi I want to send mails using gmail server with my gmail id and password. I am using the php mailer class for sending mails. Please help me to do this. my code is shown below <?php $mail = new PHPMailer(); $body = "Test mail Test mail"; $mail->IsSMTP(); // telling … | |
Hi ! i have a problem in my portable Dreamweaver CS5 version (works without installation), while coding php script for some certain html tags, when i write a code like <?php echo "<a href=" .... here file Browse don't show up, to auto locate (browse) a file, which sometimes make … | |
| Right, I've searched all day long, html2array, html to json, html dom parser blah blah and I am struggling with this seemingly simple code. I have the following html: <ul> <li>menu1</li> <li>menu2 <ul> <li>menu2.1</li> </ul> </li> <li>menu3</li> </ul> And I need to convert them to a parent child relationship. Or … |
Hello All, I am new user to this community as well to PHP. I have designed a website. Now i am stuck with a problem here. I have added some new fields into my database. i want to add a script whcih works like this: Whenever a user login to … | |
I am trying to fetch an image from database and display in my webpage through pdo, Image is not displaying instead it appears as "lº·“w~ïFVÅà%@ |vmŸú¿E8Ö®?ð²ý>ñNòTML°^¯F®Ìü9ù²÷fÕèÕÙ³îç®^éª@1 ½§~îþlY4º7ñZS,,¾³Ö9ú7“c*Ð5z4v^[éÙý¹Yõú¨Ôè—fkIrÓ·knó~þRmü2¶: %@Ì®Òß ¸t¾•ÈáºG¼Ohý¤øtå’ÿêÙ·/÷G£c*Ж1ñ:;¶¡œý‘º[[mÇ+-·ŸÕµÈàuæžwvÇ=¹Þì»tUÀñäÏòå챃µ8§ÙN¹uòÄx].Mr+Ñœ–<¥©c§•éõ¼“=/‹" - MY Code is., <div class = "controlbox"> <form action = "<?php echo $_SERVER['PHP_SELF']; ?>" method = "get"> <select name = … | |
| What is a php master page? There is a question that I want to answer which is 'What is a master page and how can it be setup for a PHP application'. The only thing I have really found is that a master page is like a template? Could someone … |
Hi, i am using the nvp api(express checkout) calls for parallel payment intgration,it show this error , how can i fix thsi showing error msg: SetExpressCheckout API call failed.Array ( [name] => Basic Plan [desc] => Basic Plan $3.00 Signup & $5.00 per month [qty] => 1 [amt] => 300 … | |
if i click Brochure i want to display one popup box in that will display one form after submitting the form brochure.php page will show.in that page i need to download some files.problem is while clicking Brochure its showing popup box if i close are submit the form again that … | |
i need two popup box like this. <div class="pro_img"> <img src="web_img/IGN-GRAND.png" alt="Project Image" width="211" height="162" border="0"> <a href="#" onclick="popup('popUpDiv')"><br> DOWNLOAD</a> </div> <div id="popUpDiv" style="display: none;"> <a href="#" onclick="popup('popUpDiv')"><div id="rokbox-close"></div></a> <div id="rt-popup" style="background-color:rgba(230, 224, 224, 0.59);"> <div class="rt-block"> <div class="module-title"> <h3 class="title">Download Brochure</h3> </div> <div id="k2ModuleBox85" class="k2LoginBlock"> <form name="form1" onsubmit="javascript:return Validate();" … | |
I'm trying to extract an array of "<div>" and I am confounded by why this these two patterns work... preg_match_all('/<div class="date">.*?/m',$htm,$a); preg_match_all('/<div.*?</div>/m',$htm,$a); But this one does not return anything... preg_match_all('/<div class="date">.*?<\/div>/m',$htm,$a); Is there some regular expresion magic I am missing? | |
I want To make a file downloadable using codeigniter. | |
input_image.php <p>metode image managementnya masih konstruksi</p><center> <p> <?php include('../includes/koneksi.php'); $id = isset($_POST['id']) ? $_POST['id'] : ''; $confirmation = isset($_POST['confirmation']) ? $_POST['confirmation'] : ''; $judul = isset($_POST['judul']) ? $_POST['judul'] : ''; $image = isset($_POST['image']) ? $_POST['image'] : ''; //Load berita if (!empty($_REQUEST['id'])){ $result = mysql_query("SELECT * FROM gallery WHERE id =".$_REQUEST['id']) … | |
Hello, I found this script and have used it for my login system. http://www.wikihow.com/Discussion:Create-a-Secure-Login-Script-in-PHP-and-MySQL I have changed some variables but none the less its the same. I am trying to create a reset password script here is what i tried so far: function resetPassword(){ //Main Info $id = $_POST['id']; $email … |
The End.