39,388 Topics
![]() | |
Hello everyone, I am working on a program that is sending some input to a thesaurus API, but not after stripping any non-alphanumeric characters. This would be easy, except I want to also preserve the original non-alphanumeric characters for output; for instance, if the user sends "hello;", the request to … | |
hi i am working in php. and my assigned task is to upload a file and save it into the directory. i have install wamp into D-drive but it not working and dont get the path. i was trying the following: <?php echo "Upload: " . $_FILES["file"]["name"] . "<br>"; echo … | |
Hello :) I'm working with a database of postcodes. I have an existsing query that returns the postcodes within a certain radius: `select *, acos(cos(51.496502411798 * (PI()/180)) *cos(-0.13982862499836 * (PI()/180)) *cos(lat * (PI()/180)) *cos(lng * (PI()/180))+cos(51.496502411798 * (PI()/180)) *sin(-0.13982862499836 * (PI()/180)) *cos(lat * (PI()/180)) *sin(lng * (PI()/180))+sin(51.496502411798 * (PI()/180)) *sin(lat … | |
I have a working mailer script which has already started sending out mails. We need to send an email message to approximately 5,000 email addresses. I have a few problems though. 1.) It's sending out really slow. I'm guessing it's the embedding? The image is 300+kb big, is it supposed … | |
Hello guys, i've being searching for how is it possible to get value of a form element i.e selection tag that was injected by jquery be access on submitting the form. All the form element value where posted except for the selection element that was injected with jquery. how can … | |
How to upgrade PHP 5.2.10 version to PHP 5.2.13? I have already had PHP 5.3.19 and downgrade the version to PHP5.2.10 and I need of PHP 5.2.13. I have downgraded version using the script file. Thanks in advance. ![]() | |
Hai everybody, I need help in making chat room similar to facebook chat. store in database userid based. anybody plz help me. | |
<?php include 'include/AnonymousHeader.php'; $CON = @mysqli_connect('localhost', 'root', '', 'allyouneed') OR die('Could not connect to MySQL: ' . mysqli_connect_error()); ?> <table width="700"> <tr> <td> <h1>Sales Registration</h1> </td> </tr> <?php if (!(empty($_SESSION['LoginStatus']))) { $SQL1 = "SELECT * FROM sales"; $STM1 = @mysqli_query($CON, $SQL1); $ROW = 0; $SalesID = ""; if ($STM1) { … ![]() | |
Dear Programmers, I want to change accent characters in my smart URL to non-accent characters... For example : www.mysite.com/123/békítő to www.mysite.com/123/bekito. Is it possible through .htaccess? Here is my current .htaccess DirectoryIndex index.php <IfModule mod_rewrite.c> RewriteEngine On #RewriteBase / RewriteCond %{REQUEST_URI} ^(.*)//(.*)$ RewriteRule . %1/%2 [R=301,L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond … ![]() | |
Hello I'm running a php function to get some user information from mysql using pdo. The problem is that i don't get the results i want. This is my php code: <?php require_once('db_connect.php'); function mila(){ global $dbh; // Set dummy variables $required_id=1; // Select table with query $sth = $dbh->prepare("SELECT … ![]() | |
Hello, I am a mysql table called: adsmgt which consists of: idads and time I would like to count the number of row in adsmgt how to do so? I try this: mysql_select("select TABLE admgt count(idads)"); This error appears: (it doesn't matter if the idads are twins they still have … ![]() | |
i a student doing a degree in computing and information technology in zimbabwean am supporsed to create a project but i need help im what project to create. | |
I have read several replies here and I am in the process of testing them now but since this is a problem I need an urgent fix for, I thought it would not hurt to ask again. We have an Apache website that is extremely simple in design. It's main … | |
GUYS IM NEWBIE HERE , GUYS I NEED YOUR CODING SKILLS . CAN U CREATE ME A AUTHENTICATION PAGE THAT HAVE LOG IN AND REGISTRATION PAGE ?? PLEASE GUYS I NEED IT IN MY WEBSITE ..PLEASE !! THANK YOU IN ADVANCED :) CHEERS !! | |
Hi I want to ask question in loop everytime there is two button in the question one is for download image and the other is next if user click on download the image download and next itration start and if the user click on next button the next itration start. … ![]() | |
Hello ! I m an engg. final year student and have been preparing for my final project. I have selected a topic to develop a web OS (Online Desktop) using HTML,JS,PHP. I require ur suggation whether my topic is good.Help me with some suggation and any tutorial or source code … ![]() | |
Hi, I have a problem to delete data from mysql database using checkbox. This the error appear in my page and the data cannot delete. <?php $host="localhost"; // Host name $username="root"; // Mysql username $password=""; // Mysql password $db_name="mentormentee"; // Database name $tbl_name="appointment"; // Table name // Connect to server … | |
I have no idea why this query doesnt work? the WHERE part will work if I put the value in of the rowset, but I can echo out the variable $faultid and its the same? it executes the query but doesnt change the record? all the variables are declared before … | |
Hi I have an issue whereby I need to replace characters in a field and also narrow the amount of characters down, but sturggling with putting them both together I have 2 seperate lines of code to do them both seperately that work, but struggling to get them together btw … | |
Hi, I have a simple query here, one of my database fields is boolean, 1 or 0, when I echo out the value I want it to be yes or no, I did this, but it doesnt work, $value = .$row[booleanresult]; if ($value ="1"){ $value = "YES" } else { … | |
echo"$u2" seem to be working right. but nothing prints for echo"$p2". i tryed raping $_POST['p'] in isset() function but didnt seem to be working. <?php if(isset($_POST['b'])) { $u2 = $_POST['u']; $p2 = $_POST['p']; echo"$u2"; echo"$p2"; } ?> <div> <form action ='login.php' method = 'POST'> <div> <p> <input type ="text" name='u' … | |
Hello, I would be grateful if someone could help me with building a simple dynamic menu breadcrumb in PHP with mysql, using the MVC concept. My pages are stored in a mysql db, and the table is formatted with the following fields: Autokey, Title, IDMenuParent. The latter takes NULL as … | |
I'm working on a website project. I formerly designed and coded it on the mac. Everything was displaying and fucntioning correctly. When i tried loading my project through the pc, the pictures and headers are not showing up anymore. Plus the php codes are displaying on the page. | |
On index.php, change the functionality of your update button's click event so that: 1. when the user clicks on update button it "changes comment text to a textbox with the same value". This requires you to write a javascript to first hide your <div id="comment_1">the first comment</div> and then dynamically … ![]() | |
ok so here is my code: <html> <body> <?php $con = mysql_connect("localhost","username","password"); if (!$con) { die('Could not connect: ' . mysql_error()); } mysql_select_db("my_DB", $con); //Get all the data from the table $result = mysql_query("SELECT * FROM Vehicles") or die(mysql_error()); echo "<table border = '1'>"; echo "<tr><th>ID</th><th>Year</th><th>Make</th><th>Model</th> <th>Milage</th><th>Description</th></tr>"; //keeps getting the … | |
I am using a wordpress template, and being that it's written in php, which I'm not so familiar with, I want to know the following: Is there a way for me to add code to the index.html of my template? What I want to do is make a solid white … | |
hi every one i have create a table with name upload id int notnull name varchar notnull type varchar notnull size varchar notnull content varchar not null and my code is the follwing but instead of iamge it show garbage value <form method="post" enctype="multipart/form-data" action="image.php"> <table width="350" border="0" cellpadding="1" cellspacing="1" … | |
Hello, I have products table like below Table products { -product_id- -categories- 1 2,4,5,6 2 1,4,3 4 3,5 } Table categories { -category_id- -en_label(catname)- 1 cat1 2 cat2 3 cat3 4 cat4 5 cat5 6 cat6 } i want to display categorynames using sigle query productid en_label 1 cat2,cat4,cat5,cat6 2 … | |
I have some text in a mysql table, stored as text and taken from an html <textarea>. For example of some text. Hi this is Glens webpage When I display this on my web page it comes out as Hi this is Gles webpage. How do I get it to … | |
I have a working bulk mail script which is supposed to be sent to thousands of users. I have started sending the mails but needed to abort because there was something wrong with the message body. How do I resume the mail from where it left off? Assuming it was … |
The End.