39,320 Topics
| |
Hi I know this can be done, just don't know where to start. I am creating a site and have a multiple select box in a form I am going to pass to this form data from a database to be displayed as values. I can do this no problem. … | |
Hi, I want to generate a unique id but stuck at one point where I need a max 10char long output like A2987F2EWS, 234EGT56GT..... unlike SHA1 or MD5 so human can read it. Code is below but the better way is accaptable by me though. Thanks $mysql_id = 1; $mysql_id_padded … | |
Hi All, here's the query.... $risk_section=$row_risk_category['risksectid']; mysql_select_db($database_auditing, $auditing); $qry_selfsites = sprintf("SELECT tblself.siteid AS selfsite, tblsite.sitename AS sitename, tblsite.address AS address, tblpct.pctname AS pctname, tblresultsnew.total, tblresultsnew.auditid AS auditid, tblriskcategories.risksectid AS risksectid, tblriskcategories.risksection AS risksection FROM tblself LEFT JOIN tblresultsnew ON tblself.auditid = tblresultsnew.auditid LEFT JOIN tblsite ON tblself.siteid = tblsite.siteid LEFT … | |
Hi! I tried to find an answer to this everywhere but no success. But it must be a common issue I guess .... We have a english PHP web project with many PHP source code files Now we want to translate the whole project inte 3 new languages (swedish/italian/spanish) I'm … | |
Hello, I'm building an application in PHP and when outputting HTML tags, it shows the tags.. So for example: <?php echo "<b>Hello world</b>"; ?> I would expect Hello world to be in bold.. But no, I get: <b>Hello world</b> as the output Any ideas please? | |
Hello, I have seen some apps in facebook the applications are lika a questions competition, I would like to ask how can i do like this ? Thank you | |
So I stumbled upon this question and I wanted to figure out how to find the mean, median, mode, highest number, lowest number, how many evens, and how many odds are in each row... I honestly can't figure this out... I want it to display next to the table I … | |
I am in need of incrementing through a php array with the javascript variable "i" instead of where i have 0 in the $members array call var i = 0; while (i<5) { if (<?php echo json_encode($members[0]['department']); ?> == "CHE"){ contacts.push({"NAME":"Sir Saula","TITLE":"John","CONTACT":"bab","RESEARCH":"Ph.D."}); } i++; } | |
I am using mysql to fetch this result from the database.I need to caluclate the rank of a prticular user id from this result.What is the easy and smart way of doing it? SELECT a.UserId,d.AreaId,d.SubjectId, SUM( a.Marks ) AS sum, COUNT( a.Marks ) AS count, SUM( a.Marks ) / COUNT( … | |
Hey Guys, I am having some trouble... I have the following XML from Google: <GeocodeResponse> <status>OK</status> <result> <type>street_address</type> <formatted_address> 1600 Amphitheatre Pkwy, Mountain View, CA 94043, USA </formatted_address> <address_component> <long_name>1600</long_name> <short_name>1600</short_name> <type>street_number</type> </address_component> <address_component> <long_name>Amphitheatre Pkwy</long_name> <short_name>Amphitheatre Pkwy</short_name> <type>route</type> </address_component> <address_component> <long_name>Mountain View</long_name> <short_name>Mountain View</short_name> <type>locality</type> <type>political</type> </address_component> <address_component> <long_name>Santa … | |
i have a lot of mysql data (2 Lakhs data) how to collect data with in a seconds ? any idea thanks in advance | |
Hi, I have 7 variables...each vriable is having either of two values "0" or "1" e.g. a=0, b=1, c=1, d=1, e=0, f=1, g=0 Now I need the total of all these 7 variables but only which are having value "1" (in the above case b+c+d+f) My problem that it's dynamic...i.e … | |
| Hi I'm having an issue SELECT to database, I been working on it all day. I'm still new to MYSQL. I created a table: Records Table: **Records** Fields: ***id*** (INT(25), primary key, No Null, auto-increment) Fields: ***title*** (VARCHAR(256), No Null) Fields: ***content*** (TEXT, No Null) <php if (isset ($ _POST … |
Hi every one I have a very simple form and it just will not submit to the db. Could some one please tell me where I am going wrong? <?php if ( $_SESSION['logged_in'] ): ?> (1) <?php endif; ?> <?php if($_POST['formSubmit'] == "Submit") { $errorMessage = ""; if(empty($_POST['social_media'])) { $errorMessage … | |
Hi, please first you visit this site http://www.webdo.x10.mx/ this is my practice site.I just starting my php carrer.here i create a search option with button but its not working as my expectation.i think its code is OK".here the code.. <?php $connect=mysql_connect('localhost','root',''); $mysql_db=mysql_select_db('my_database',$connect) or die(mysql_error()); //db name:my_database if (isset($_POST['search_name'])) { $search_name= … | |
Hi, This is my first post.I just starting php Hope everyone reply me as possible as. I have signup problem.When i filled the form and click sign up button then it nothing show any result i mean its not home.php "welcome" message and also not store date in my mysql … | |
Hello all, i get this error while inserting and udating some tables.Duplicate entry '9105224' for key 'PRIMARY'error no:1062error:1062 .number 9105224 is randomly generated and set in u_id field in one of the tables in MYSQL, which is set to unique and primary.The sql querries are working fine and the rows … | |
Hi please help, im new at this stuff!! I cant find the error here!! I have the following error on the top of my website: Strict Standards: Only variables should be assigned by reference in C:\xampp\htdocs\ITAffair\templates\md-corporate\index.php on line 15 The first couple of lines of code in my index.php file … | |
do you know how can i put a hyphen (-) after 3 digits of a number(starting from the end) in php? example: the number 9787897878 to be shown as 978-789-7878?? | |
I need to fetch questions with 4 optional answers from dtabase.... tables are questions | options...html code is below... <table width="536" height="54"> <tr> <td class="deco">Q<?php echo $index.") ".$questions; ?> </td> <td width="15"></td> </tr> <?php while($row_wrong_ans = mysql_fetch_array($res_wrong_ans)){ $op_index = $row_wrong_ans['fbo_index']; $op = $row_wrong_ans['fbo_ans']; ?> <tr> <td width="473"><input type="radio" name="radio[<?php $index;?>]" … | |
Hello, I'm having a weird problem with some PHP when outputting some HTML. For example: echo "<h1>There are errors!</h1>"; foreach($errors AS $error) { echo $error . '\n'; } exit(); I want the output to actually show the text in H1 style, however the output is like this: <h1>There are errors!</h1> … | |
require_once(LIBRARY_PATH . "phpmailer.php"); require_once(CONFIG_PATH . "emailconfig.php"); class email { public function sendMail($from,$fromname,$subject,$content,$to){ $mail = new PHPMailer(); $mail->SMTPAuth = SMTPAuth ; $mail->IsSMTP(); $mail->SMTPSecure = SMTPSecure; $mail->Host = Host; $mail->Port = Port; $mail->Username = Username; $mail->Password = Password; $mail->From = $from; $mail->FromName = $fromname; $mail->Subject = $subject; $mail->Body = $content; $mail->AddAddress($to); $mail->IsHTML(true); … | |
Hi guys I'm just starting to built dynamic php site but while testing (pasted url/embed) videos from youtube I get this error. 403 Forbidden Access to this resource on the server is denied! I use a form to post to the database. It works for everything else except embedded video … | |
| Hi all, just walked into a door with a problem I recently helped out with. I was testing whether a value was a positive power of 10 (1,10,100 ...) -> (0,1,2 ...). So I thought I'd use log10(). Now I know that log10() returns a float type. But testing this: … |
[kn3rdmeister.com/feed/](http://kn3rdmeister.com/feed/) I'm going to admit that when I made my website and feed, I was very much copying the styles and structures of [mega64.com](http://mega64.com), especially the way their RSS feed was built. I know that it's made by WordPress, and not Mega64 themselves, but still, it's their feed. I'm a … | |
Hi, I am having a bit of trouble with a login scritp I have written. I have a script setting some cookies (so i know when the user is logged in) and on my other pages i use a scrip to see if they are logged in, If they are … | |
In PHP using isset() function for checking the form value is set or not? Like wise which methed is used in java? Any one can help ASAP..? | |
P.S i know title sucks but i couldn't think of an appropriate title to explain this:( Well i tried to think over this matter for days but couldn't found the logic of how it is done, so i guess only you guys can help me understand this some of you … | |
Hi! Just wanted to know if there is any special syntax to get values in <option> with a space between words. For example: <form action="abc.php" method="post"> <select name="study_class"> <option value="Class 1">CLASS 1</option> <option value="Class 2">CLASS 2</option> </select> </form> Can php recognize "Class 1" or "Class 2" or will it recognize … | |
I would like to know how to avoid the OUTPUT of var_dump($abc); from showing in the output screen and instead use it to feed a variable. Well, I am trying to put the output of `<form><select name="study_Class"><option value="word1 (space) word2">word1 word2</option></form>` into php program as an array as shown below … |
The End.