39,326 Topics

Member Avatar for
Member Avatar for sickly_man

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 …

Member Avatar for Squiva
0
17K
Member Avatar for AntonyRayan

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?

Member Avatar for Squiva
0
137
Member Avatar for F-3000

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 …

Member Avatar for Joel100
0
270
Member Avatar for subbu_1

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 …

Member Avatar for bnmng
0
263
Member Avatar for mjb925

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 …

Member Avatar for Squiva
0
174
Member Avatar for Sam.Samual

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

Member Avatar for diafol
0
36
Member Avatar for jonlloydd

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 = …

Member Avatar for registerers
0
258
Member Avatar for mattyd

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 …

Member Avatar for pritaeas
0
1K
Member Avatar for cool_irfan

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 …

Member Avatar for cool_irfan
0
3K
Member Avatar for Smoking Bros

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 …

Member Avatar for J. M. P.
0
809
Member Avatar for robertlaar

What is the reason to use PHP frameworks when we have wide range of Content Management Systems available in the market.\

Member Avatar for cilla
0
279
Member Avatar for rhodoscoder

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 …

Member Avatar for cereal
0
438
Member Avatar for mattyd

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) …

Member Avatar for mattyd
0
418
Member Avatar for programmingman

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?

Member Avatar for jstfsklh211
0
121
Member Avatar for ashalatha

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

Member Avatar for jstfsklh211
0
178
Member Avatar for jonlloydd

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); …

Member Avatar for jonlloydd
0
262
Member Avatar for Priti_P

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 …

Member Avatar for Priti_P
0
228
Member Avatar for jonlloydd

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'; …

0
111
Member Avatar for codingin

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)? …

Member Avatar for codingin
0
560
Member Avatar for Stefce

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'])) …

Member Avatar for diafol
0
296
Member Avatar for fireburner29
Member Avatar for fireburner29
0
113
Member Avatar for fireburner29

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 …

0
155
Member Avatar for jonlloydd

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 …

Member Avatar for jonlloydd
0
9K
Member Avatar for AntonyRayan

Hi, I need your examples. for creating new responsive online admission form . Its urgent.

Member Avatar for diafol
-1
141
Member Avatar for Priti_P

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= …

Member Avatar for Priti_P
0
160
Member Avatar for davy_yg

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?

Member Avatar for rtrethewey
0
100
Member Avatar for magicmarkuk

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 …

Member Avatar for magicmarkuk
0
187
Member Avatar for jrotunda85

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 …

Member Avatar for Yong woon
0
581
Member Avatar for best4earn

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 …

Member Avatar for mattster
0
87
Member Avatar for bolfescu

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 ?

Member Avatar for bolfescu
0
89

The End.