39,402 Topics
![]() | |
Hi guys, I accidently inserted " " into one column in mysql database. Column has one char length space as it is expected after insertion. However, in php code, I can not do this: None of these returns Yes. [code] if(substr($data, 0, 1) == " "){ echo "Yes"; } if(substr($data, 0, 1) … | |
<b>Suppose I have a customer details form, after fillup that form when I'll press <submit> it will redirect me to an another form where those details will be shown in a .doc format. I want to print this page...can any one plz HELP ME how can I do this job....plz … | |
Hi.. I got a problem with the date and time in php.. This is the story. [B]1)[/B]I want to get the date and time automatically whenever a person write onto the field that i have made(eg. the blogpost field). [B]2)[/B]Then,after i stored it into the database, i want to output … | |
I need help with a dynamic link on my web page. This is a site where accommodation establishments register their details and upload a photo. Here is the problem I have: I have a page listing all users (user_list.php) where I retrieve details (acc_name, address, photo) of registered users from … | |
Do you use them and which one? How it affect your productivity, and how it affects your applications' performance? Is it worth it? Me personally, I'm all for standardization, but have we gone too far? Note: subjective rant below - can be skipped:) I find all this stuff extremely limiting, … | |
i am wondering on how to make a combo box that query without button [CODE]<select name="item"> <option value"item1">item1</option> <option value"item2">item2</option> </select>[/CODE] for example they choose item1, the system should select item1 from table mysql_query("select * from table WHERE item='$_POST[item]'"); so the result will be: [U]ID | item[/U] 1 | item1 | |
hi, i looking for a free software or php script that can compare a database from server 1 and beetween server 2 and creat the tables and fields that are missing. any one have know a solution? thanks for your help :) | |
Hi ... I want to send a mail using php code, and i used sendto() function..But there is a problem occur.. that is... I using a one free webhosting for this service.. but it didnt support the smtp server.. Please tell me what are all the steps of doing this.. … | |
Creating a multi-column list from WordPress' default function (wp_post_page()) is a pain. I was tasked to create a multi-column list and realized there wasn’t a simple argument to do so. With that said, I have to create a code which should do the job…and it does the job so well… … | |
I am trying to insert multiple rows using foreach, with no luck. I am able to insert the rows i want, however all the rows have the same value (that of the last row). This is the script i'm using: [CODE]foreach($_POST as $key=>$val) { $contaminant = $_POST['contaminant']; //$gac_value = $_POST['gac_value']; … | |
Hey guys, I am new to Wordpress and am having a slight issue. I have a "featured" posts section at the top of my index page that shows 3 recent posts from the featured category. Everything shows up fine except the post image. So I see the "post_summary" and the … | |
Hello friends, I have a small problem with getting the content from the pages in WordPress. In my admin panel I have created some pages, also I have created a custom template and now when I want to open any of the pages then the content is not displayed (the … | |
I am using a web page to input data into mysql using php. I am using ajax to pull back the same data from a php file on the same web page. I click my "get data" button (it runs my ajax/php function) right after I make an update to … | |
I have a form that is a calculates an estimate for the user. [icode] <form method="post" action="php/pricing.php"> <table id="pasa"><tr> <td>Number of Pages?</td><td><textarea name="pages" value="" rows="1" cols="5"/> </textarea></td></tr></table> Can You Provide the following content?<br> <table id="pasa"><tr><td></td><td>Yes</td><td>Some</td><td> No</td></tr> <tr><td>Pictures</td><td><input type="radio" name="pictures" value="0"></td> <td><input type="radio" name="pictures" value="25" checked></td> <td><input type="radio" name="pictures" value="50"></td></tr> <tr><td>Literature</td><td><input … | |
Ok, I have to do an assignment for cass. The teacher wants us to use a FOR loop to print out only first three variables stored in an array called $birds. How do I use a FOR loop to print out only those first three? And furthermore, how would I … ![]() | |
How can I create a function similar to Google Buzz or Facebook, where the user types an '@' symbol followed by a username which is then turned into a link? Example: Input is: "Hello, @example_user!" And the output is: "Hello, [URL="http://example.site/profile.php?u=example_user"]Example User[/URL]!" ([url]http://example.site/profile.php?u=example_user[/url]) This, I'm sure, would be simple to … | |
I am new to PHP and really just troubleshooting a migration issue (moving from live working server to new server with this error). I'm not well versed in coding so I apologize in advance if I'm overlooking something stupid simple. Here's the error: Warning: mysql_fetch_assoc(): supplied argument is not a … | |
Hi all, I've finally gotten a handle on object-oriented programming (it took ages), and I really like it. But I'm still struggling with conceptualizing some things. For example, if I want to make a form using objects, do I make a Form class with a method like startFORM($name_of_action_page, $method), then … | |
Hi everyone, I am new to PHP and seeking some advice on any decent online courses, tutorial sites and books to help get the ball rolling. I am proficent in xhtml, css and have experience with coldfusion if this helps? Any help would be much appreciated! | |
Hi everyone, please I want to know if I can add a stylesheet link in my php mail : [CODE] $subject="Subject"; $header="From: \"$email\" <contact@sssss.com>\r\n"; $header.= "Reply-To: contact@sssss.com \r\n"; $header.= 'Content-type: text/html; charset=iso-8859-1' . "\r\n"; $message= "<html> <link href='style.css' rel='stylesheet' type='text/css' /> <body> <p>lorem lipsum ...</p> </body> </html>"; mail($mail,$subject,$message,$header);[/CODE] Thanks. | |
This is form that i want to submit and send a mail to my email i have used some codes for that and it doesn't work [CODE] <form id="F2" name="F2" method="post" action="contact/send_contact.php" onsubmit="return validateForm(this)"> <div id="hedding"> <h2>Contact Details</h2> </div> <P><center><?php error_reporting(0); include("init/db.php"); $table=$_GET['hotel']; $id=$_GET['id']; $sql = "SELECT * FROM $table … | |
Hello fellow code heads! I have issues (or so my wife says) but mine stem from the wonderful world of PHP. My web design knowledge is largely based on XHTML and that's where I left the scene. I was recently asked to delve back into the world of web design … | |
Hey All, I am trying to write a php script and would like to have an autosuggest text box with data from a mysql database. This would be for designating a town in a form. The sql query I would use would be. $sql = "SELECT DISTINCT `Town` FROM '".$Table_Name."' … | |
Its urgent I have a auction script In that bid butler is not working I have code butler.php but depends on cron I dnt know how to run cron to run butler.php each 1 min. Plz help me | |
Hello, What is the best hashing for password and what is the best encryption for credit card (of course we will need to decrypt it later) ? Also I would like to know, how did people usually generate salt ? I always heard about md5+salt but how did they usually … | |
I have a mysql table that looks like this: id int(11) autoincrement artist varchar(50) title varchar(50) I need to check for any rows that have the same titles. So for example, if I had the following rows: 1 - Bob - Hello World 2 - Charlie Brown - Theme Song … | |
did this means na sa pdng mag'search or add or delete at the same time dito sa form na 'to? such that yung entry ng user sa mga field dito is pdng ma'search din? | |
Every once in a while I run into this problem and finally decided to consult the experts. :) I insert foreign characters (Czech letters) into my MySQL database and see them there. They look fine. But when I try to retrieve them using PHP they come out with question marks … | |
Hey guys this is kind of a JavaScript question but the script works elsewhere so I have a feeling it's got something to do with the fact it's being echoed by php. Can anyone tell me why this isn't working: [CODE] if (($_SESSION['count'] % 5 == 0) && ($_SESSION['countView'])) { … ![]() | |
Hi all, I've been watching Jefferey Way's excelent video series on Codeigniter, and while I was trying to follow along, there was a bug that I couldn't fix. When I placed an anchor tag: [CODE=php]anchor('login/signup','Create Account');[/CODE] and clicked on it, this was the url generated: [url]http://localhost/ci/index.php/login/localhost/ci/index.php/login/signup[/url] instead of: [url]http://localhost/ci/index.php/login/signup[/url] The … | |
Hi I'm trying to develop a site that users can log into. It's all standard enough the details are being kept on a mysql database. I can add the details to the db but my code for logging in isn't working. here is my login script [CODE]function user_login($username, $password) { … | |
I made a config.php file which contains MySQL connection info. [CODE]$con = mysql_connect(DB_HOST, DB_USER, DB_PASSWORD) or die('Cannnot connect!'); mysql_select_db(DB_NAME, $con) or die(mysql_error());[/CODE] My question is how do I add it into a class? [CODE]<?php require_once('config.php'); class users { private $id; public function __construct($id) { global $con; $sql = "MySQL script'"; … | |
Dear Forum, I've been searching for quite a while for something which comes close to my question - and [I]freiheit's[/I] thread back in May 2010 entitled [B]'Sorting data asc and desc using a jump menu'[/B] came the closest. Whilst pointing me in the right direction, I need to take it … | |
Hello, I'm just looking for an answer or idea. I plan to connect vb.net to mysql (which is done) and also the PHP connected to the mysql. But I'm confuse with something. VB.NET is use for offline things (which people will come to store and buy), but PHP is buying … | |
Hie guys i have just started php development and i want to be professional developer.I hope if there is an experienced php developers who are willing to guide me in my quest to be a highly skilled developer who will be able to give back to the php development community. | |
ok so i have a time that i need to order by but i dont know how to make it order, in order by am then pm. Ex: i have to events that i put in the calendar one for 6:00 am and one for 9 pm. I put order … | |
Hi, Iam new to PHP I need some help I am trying to insert multiple checkboxes values <td> <input name="myvar[]" type="checkbox" value="abc"> abc<br/> <input name="myvar[]" type="checkbox" value="def"> def<br> <input name="myvar[]" type="checkbox" value="ghi"> ghi</td> along with other datas to the database, and I dont know how to do this I wrote … | |
![]() | Hey. I use uploadify for uploading avatars on my website. When "JPG" is selected in place of "jpg" it can't upload the picture, it returns "1" in place of the filename. Now, the question is, how could I strtolower the extension or something, to be able to upload pictures with … ![]() |
Hi all, I have a site that has a dynamically generated page and looks like this: [url]www.example.com/articles.php?aid=1[/url] [url]www.example.com/articles.php?aid=2[/url] [url]www.example.com/articles.php?aid=3[/url] The page has the article title and description stored in a database and printed in the page itself. How do I go about changing the URL from this: [url]www.example.com/articles.php?aid=1[/url] To this: … | |
I need to execute a .exe file located in C:\Program Files\ABC\test.exe on my windows machine using PHP. I have installed WAMPP/XAMPP to run PHP. I have tried the exec() system() shell_exec() but I'm unable to run the file. [B]Can someone help me with the exact code?[/B] | |
hi, i need some advice, looking for someone to point me to somewhere which would be a cheap/free sms text gateway to integrate with my existing mysql/php site. need to be able to record texts that are sent to clients. do we need an sms gateway provider? many thanks | |
Hi friends I have a small doubt regarding PHP programming. I want to know how to parsr .svg files or .xml files using PHP. Actually i have a bunch of .svg files and i want to know how to read those .svg files using PHP? Can you please provide me … | |
im making mail like site using mysql, i have a working [CODE=php]mysql_fetch_assoc()[/CODE] while that displays correctly. i made a single delete page it worked, but i want multiple delete with checkboxes please help. if you can please dont user javascript im bad im javascript:(. heres the code: [CODE=php]<?php include ("template.php"); … | |
How to do Image cropping using php... I needed 3 steps: 1. Upload a file, view before start cropping 2. Save the original image in the db, crop the image and replace it with the original image 3. View the cropped image and ask for upload another image.. | |
Hi, I've been trying to get my webpage to send data via java script, AJAX, xmlhttprequest. i'm using IIS7 It definitely is the write path and stuff because i do get a responsetext but the response returns the entire php code in that file. Does any1 have any idea what's … | |
Hi, I'm working on a page that GETs a value that is passed in the URL. This variable echos correctly up until I try echoing it inside an if statment where it needs to be. The variable is called $siteid. Inside my if statement I have a query that runs … | |
i can't figure out how to get recaptcha to work with my code properly and i'm just learning to code i was wondering if anyone could help with my coding. heres my code below and thanks in advance. [CODE=php]<html><head> <meta name="GENERATOR" content="Evrsoft First Page"> <style>#conash3D0 { DISPLAY: none } </style> … | |
[CODE]$OrderId = (int) $_REQUEST["OrderId"]; // query one of two $sql = 'select * from mickey.mouse where OrderId='.$OrderId ; $result = mysql_query($sql) or die('Query failed'.mysql_error()); $orderID_Passed =1; echo "test2<br/>"; $numfields = mysql_num_fields($result); echo $numfields ; echo "<br/>"; echo "<table><table cellpadding='4' cellspacing='3' border='1'>"; $orderID_Passed = 1 ; //replace with the request object … |
The End.