39,326 Topics

Member Avatar for
Member Avatar for slyme

Hi Everybody, I hope someone can help with this, it's taken so long to get this close but I just can't figure out the last small (but show stopping) detail. I start with a string of text and a font-face entered/selected via a form. I am using imagettfbbox to determine …

Member Avatar for diafol
1
1K
Member Avatar for SimonIoa

Does anyone sees any fault? <?php $sql = 'SELECT * FROM messages'; $result = $database->sql_query($sql); while ($row = $database->sql_fetchrow($result)) { echo $row['message']; } ?> and my database connection `$database = mysql_select_db(DB_DATABASE) or die(mysql_error());`

Member Avatar for SimonIoa
0
174
Member Avatar for aseel_1

Hi all , I am a new in PHP my code don't save information in db and password confirmation code doesn't work correctly this is my simple code : <?php // decleration for varible $name=$_POST['nameTxt']; $username=$_POST['userNameTxt']; $passTxt=$_POST['passTxt']; $passConTxt=$_POST['passConTxt'] ; $email=$_POST['email']; $website=$_POST['website']; $errors=0; $submit=$_POST['btn_done']; // connection to mysql $con=mysqli_connect('localhost','root','root'); if(!$con){ die('Could …

Member Avatar for aseel_1
0
395
Member Avatar for faisaldss

I have come accross this website. http://en.colette.fr/women/just-in.html If you notice, the products are loaded with lightning speed. I understand they are using Magento. However, its still not clear how the products are loaded so fast. Can you guys give an idea what's hapening there. Is it the server or a …

Member Avatar for vikiweb
0
277
Member Avatar for 68thorby68

Hi, Is a static server ip a requirement of openssl? Can I install openssl on a shared server? I know less than nothing about SSL. I'm staring my journey to implement openssl and use it in my php project but before I do I want to make sure I don't …

0
101
Member Avatar for Pravesh_1

I am getting 500 internal server error; here is my .htaccess code AuthName "admin" AuthUserFile "/home/machiner/.htpasswds/public_html/passwd" # mod_pagespeed configuration - Do NOT modify the contents <IfModule pagespeed_module> ModPagespeedDomain * ModPagespeed on </IfModule> # End of mod_pagespeed configuration- Do NOT modify the contents

Member Avatar for slyme
0
282
Member Avatar for jKidz

Hi Friends, There is a variable call 'ReportID' Its values are normally in this format. 'MPS141', 'MPS142'.... 'MP' means company name. 'S' means, Songs and '14' means year 2014 and other part is auto incrementing data. I want to get onlye that value. Is there any function in PHP ? …

Member Avatar for jKidz
0
188
Member Avatar for cambraydesign

I am using noUiSlider and I am trying to get the slider value to Post through a form. The form is posting fine, but the value of the slider does not change from the start value, so is always set at 7000. Any ideas how to make the value change …

0
114
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
449
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
217
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
309
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
898
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
275
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
143
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
274
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
176
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
561
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
157
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

The End.