39,320 Topics

Member Avatar for
Member Avatar for minghags

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! " …

Member Avatar for Adrian_5
0
447
Member Avatar for mexabet

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 …

Member Avatar for Adrian_5
0
319
Member Avatar for Pravesh_1

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 ?

Member Avatar for diafol
0
112
Member Avatar for filipgothic

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, …

Member Avatar for urtrivedi
0
216
Member Avatar for mexabet

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 …

Member Avatar for mexabet
0
308
Member Avatar for itisnot_me

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}", '', …

Member Avatar for itisnot_me
0
1K
Member Avatar for [NOPE]FOREVER

What is the difference between GET and POST methods of submitting a form?

Member Avatar for DJBirdi
4
156
Member Avatar for junaid_5

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 …

Member Avatar for hericles
0
161
Member Avatar for jonow

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? …

Member Avatar for shophiarajan47
0
896
Member Avatar for dskanth

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 …

Member Avatar for itisnot_me
0
2K
Member Avatar for Ryan_11

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 = …

Member Avatar for itisnot_me
0
284
Member Avatar for Sikander Nasar

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 …

Member Avatar for itisnot_me
0
273
Member Avatar for gilgil2

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, …

Member Avatar for Borzoi
0
142
Member Avatar for Sikander Nasar

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?

Member Avatar for almostbob
0
260
Member Avatar for ankit1122

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

Member Avatar for almostbob
0
175
Member Avatar for afaaro
Member Avatar for ditty

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 …

Member Avatar for pritaeas
0
558
Member Avatar for faisal.qureshi.7121614_1

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 …

Member Avatar for faisal.qureshi.7121614_1
0
169
Member Avatar for iamthwee

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 …

Member Avatar for pritaeas
0
264
Member Avatar for shail.arya

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 …

Member Avatar for hericles
0
156
Member Avatar for My question

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 = …

Member Avatar for My question
0
3K
Member Avatar for [NOPE]FOREVER

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 …

Member Avatar for Sikander Nasar
0
934
Member Avatar for renukapriya

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 …

Member Avatar for renukapriya
0
270
Member Avatar for malatamil

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 …

Member Avatar for malatamil
0
928
Member Avatar for Sikander Nasar
Member Avatar for Sikander Nasar
0
236
Member Avatar for malatamil

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();" …

Member Avatar for nadiam
0
222
Member Avatar for dawbin

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?

Member Avatar for dawbin
0
254
Member Avatar for Sikander Nasar
Member Avatar for davy_yg

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']) …

Member Avatar for Sikander Nasar
0
354
Member Avatar for patk570

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 …

Member Avatar for patk570
0
315

The End.