39,326 Topics
| |
This is probably a stupid question, but I am new to this stuff and need some help. I have a form with a text box and a submit button, and I want to pass the user-entered contents of the text box to a php variable ($size) when the user clicks … | |
Hi Once again! I don`t Know. In a page I have a contact form in that The fields are ike name, email, subject, message. All are mandatory. I wont store in database. After clicking submit query , it should go to admin mail how to do? tell me with example? | |
I'm wondering is there anything specific I should take into account when writing CMS logging (debug/alerts) into a plain text file? To specify more what I have in mind, think of logging into SQL database, and how stuff need to be escaped to be sure there won't be injection-attack thru … | |
I have code like below <?php if(true){ global $search; $search = "hello"; } elseif(true) { echo $search; } ?> I am unable to access $search value from if() block to elseif() block, is my approach is wrong? please anyone tell me any other way to access variables from one block … | |
I have 4 different dynamic variables that change per user (age, gender, country, approval rating) What I need to do if create a conditional if statement where it checks to see if all or any are correct. I can get it to work with all, and can get it to … | |
Hello everyone... Can any body help me to solve my problem. How to play back the recorded video after online class end in BigBlueButton by php. Thanks, Sam Samual | |
I am trying to create a PHP PDF uploader that prints the filename type and size. However when I click the upload button it says "Upload failed with error". If anyone could help with this I would really appreciate it! <?php $allowedExts = array("jpg", "jpeg", "gif", "png", "pdf"); $extension = … | |
I am recieving a notice(s) multiple times when running a file: Notice: Undefined index: Telephone in C:\xampp\htdocs\demo\nest_Demo_thrasher.php on line 111 Notice: Undefined index: eMail in C:\xampp\htdocs\demo\nest_Demo_thrasher.php on line 112 I have researched this and the ways to solve it. Most ways involve isset it seems, but none of my code … | |
Hi friends, I'm developing the online exam application and strucked. below is my code to display the records randomly each time, but the problem is these questions are repeating and also the answer of the next question(that is about to display) is saved as the answer selected for present displayed … | |
Hello everyone! I got a series of C++ tutorials and a series of Blender tutorials and 1 tutorial on how to get free Windows Vista look on your Windows XP on YouTube.. So I thought I would so some PHP tutorials too... And as always I wanted to check if … | |
What is the reason to use PHP frameworks when we have wide range of Content Management Systems available in the market.\ | |
I'm trying to work with the codeigniter CMS BONFIRE.I've used codeigniter before, I actually have an installation of both pure codeigniter and bonfire on my local server.First off I've been having trouble with my .htacess files on my xammp server but that's a topic for another day.My Bonfire installation for … | |
I am working with two seperate files which contain similar code - One throws a parse error for an identical line, the other does not. I do not understand why this would be. **The error on the file that will not run is**: Parse error: syntax error, unexpected '2' (T_LNUMBER) … | |
I am having difficulty using phpmailer. I get connection errors. The most recent error is: Connection: opening to smtp.gmail.com:587, t=300, opt=array () Can someone tell me what is wrong? | |
Hi Can any one help me how to to get the records in between the dates by using from and to dates using php,mysql,ajax | |
PDF file uploader is spitting out an error, could anyone help? Parse error: syntax error, unexpected T_VARIABLE in /home/stylecraft/domains/stylecraft-yarns.co.uk/public_html/dev/_cms/upload_pdf2.php on line 37 <?php $allowedExts = array("jpg", "jpeg", "gif", "png", "pdf"); $extension = end(explode(".", $_FILES["file"]["name"])); if ($_FILES['file']['error'] !== UPLOAD_ERR_OK) { die("Upload failed with error " . $_FILES['file']['error']); } $finfo = finfo_open(FILEINFO_MIME_TYPE); … | |
Hello, Am new @angularjs. I am using progressbar in angular bootstarp. but for my requirement its little bit tricky. I am using progressbar for DB migrations. OnClick of button my migration process starts and bar should show progress. What I was thinking to do is : onclick call function which … | |
I am trying to print a table of reviews based on the date they were written. I set the dates and hit search and nothing happens? There are record in the database. Any help would be appreciated! <?php include_once("includes/session.php"); confirm_logged_in(); include_once("../includes/functions.php"); include("../includes/dbopen.php"); include("../includes/mysql.php"); ?> <?php $pageTitle = 'List Orders'; $pageSubTitle='Orders'; … | |
I have connected to database link below $db_host = "localhost"; $db_username = "root"; $db_password = ""; $db_name = "db"; $sql = new mysqli($db_host,$db_username,$db_password,$db_name); And I refered to it on a different page like: function user_exists($username){ $username = sanitize($username); $query_user = $sql->query("SELECT COUNT(`user_id`) FROM `users` WHERE `username` = '$username'"); return (mysqli_result($query_run,0)==1)? … | |
Hello everyone i have a little problem over here im making share button so i want to update the database on the column 'isShared' with value `1` so here is my code but it doesnt work, all the time is showing me `Already shared ticket!` Here is the code: if(isset($_POST['share'])) … | |
how to hide specific values from mysql php? Please help me anyone... | |
how to make active in dynamic multi level css drop down menu with php mysql ? i given my html and php code. <nav class="navbar navbar-default navbar-static-top" role="navigation" style="margin-bottom: 0"> <div class="navbar-header"> <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse"> <span class="sr-only">Toggle navigation</span> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button> <a class="navbar-brand" href="index.html">SB … | |
Function is called in my functions file. function Get_Favourites($fields){ $member = $fields['fv_member']; $sql = "SELECT * FROM favourites "; $sql .= "WHERE FV_MEMBER='" . $member . "' "; $sql .= "ORDER BY FV_PRODUCT"; return FetchSqlAsObjectArray($sql); } Functions file is called in my header and is working with other functions. <?php … | |
Hi, I need your examples. for creating new responsive online admission form . Its urgent. | |
Hello, Am trying to fetch data from one table of one DB and put it into another DB's table. I wrote below connection code for this: <?php $date = date('Y-m-d H:i:s'); /* OLD EIMS connection values */ $old_host= "localhost"; $old_uname="root"; $old_pass="ABC"; $old_database ="EIMS_OLD"; /* NEW EIMS connection values */ $new_host= … | |
update_image2.php $image_info = getimagesize($_FILES["file"]["name"]); $image_width = $image_info[0]; $image_height = $image_info[1]; print_r("$image_width"); I wonder why $image_width do not have any value? | |
Hi I have the following code: $locationcheck = wp_strip_all_tags( get_the_term_list( get_the_ID(), 'project_location', ' ', ' , ', ' ') ); And I want to check if the value of $locationcheck is equal to ">> Online/Remote <<" However, I am getting stuck with the >> and << as it doesn't seems … | |
I'm not sure if this should be in this forum but I figured it was a good starting place. I am creating a database that, among other things, allows users to input a store's location (e.g. name, address, etc). Once a store has been added, there is an ability to … | |
i was using same setting on my sice last 6 months , Now i need to change some things on my site i have changes picturess css style but my web looks remain same , i remove my cookis and cache of browser but still not responsive than i go … | |
Hy i'm using $_GET function to a variable and after make a query, but when i simply trying to display that variable, is not the full text...is less and then thats why dsnt work the query...how can i fix it ? |
The End.