39,326 Topics

Member Avatar for
Member Avatar for gaauiop5

I'm trying to redirect user to "userinfo.php" after successful registration, but the browser terminates the redirection because it goes into endless loops.

Member Avatar for Dani
0
36
Member Avatar for Mohd Irfan

// To protect MySQL injection for Security purpose $stmt = $conn->prepare($SQuery); $stmt->bind_param("i", $user_id); $stmt->execute(); $stmt->bind_result($fullName); $stmt->store_result(); if($stmt->fetstmt->store_result() ch()) //fetching the contents of the row

Member Avatar for pritaeas
0
48
Member Avatar for Tko_1

I needed a script that would grab all the folders in the directory and add them to a dropdown list and allow the user to upload to there choosen folder. This is what i came up with. (upload script is not mine) Thought i would share.

Member Avatar for rproffitt
0
4K
Member Avatar for litlemaster

Hello to all, I am trying to execute a mysql query for selecting * rows from the table where user name = [one of the usernames stored in an array]. Ok. Sorry if I am not clear. Now I have an array naming $users[]. I want to select all the …

Member Avatar for mukesh_20
0
37K
Member Avatar for jeffersonalomia

Hi, I would like to ask for help regarding on passing multiple data or array in View Composer The error that I encounter is **Trying to get property 'settings_cust_comments' of non-object (View: B:\projects\web\redesign\resources\views\myapps\myapps\index.blade.php)** Please see code below Thanks in advance MyComposer.php <?php namespace App\Http\View\Composers; use Illuminate\View\View; use App\Model\MyApp\SettingsApps; use App\Model\MyApp\SettingsMainMenu; …

0
57
Member Avatar for Emeka_2

Hi all,` The below code is giving me problems. <?php $ddaa = $pdo->query("SELECT id, stockname, stockno, producer FROM storemaster order by stockname");; while ($data = $ddaa->fetch(PDO::FETCH_ASSOC)) { echo '<option value="'.$data['stockno'].'" data-producer="'.$data['producer'].'"> '.$data['stockname'].'</option>'; } ?> This is the script: <script> $('#stockname').on('change',function(){ if($(this).val() !=0){ $('#stockno').val($(this).val()); $('#producer').val($(this).attr('data-producer')); } }); </script> All I wanted …

0
48
Member Avatar for Greg_11

I am trying to hide a radio button based on wether or not a user is an admin <?php if (($_SESSION['admin']) == 0) ?> <script>document.getElementById('adminbutton').style.display = 'none' </script> <?php if (($_SESSION['admin']) == 1) ?> <script>document.getElementById('adminbutton').style.display = 'block' </script> Obviously the above doesn't work.. Any help is, as usual, greatly appreciated. …

0
85
Member Avatar for Onica

Hello everybody ! if (empty($_GET['title'])) { if (!empty($_SERVER['SCRIPT_NAME'])) { $a = seo($_SERVER['SCRIPT_NAME']); $c = array("php","=","?","and","&","-",$val[1]); $b = array(""," "," "," "," ","",""); $te = str_replace($c, $b, $a); if ($te == "index") { if ($settings['home_title'] != "" && $settings['url_ay'] != "" && $settings['home_subj'] != "") { $title = "".$settings['home_title']." ".$settings['url_ay']." ".$settings['home_subj'].""; …

Member Avatar for pritaeas
0
33
Member Avatar for star_lavender

Hi. I have one drop down menu and one textfield. The drop down menu will display the book's id and book's name that retrieve from the database while the textfield will automatically display the book's name based on the user selection from the drop down menu. I try to use …

Member Avatar for Emeka_2
0
403
Member Avatar for SimonIoa

Hello i have a Mysql statement that supposes to return to results. The statement is SELECT c.user_one,c.user_two,c.c_id,r.reply FROM conversation_reply r JOIN conversation c ON r.c_id_fk = c.c_id WHERE c.user_one = '3' OR c.user_two = '3' GROUP BY r.reply I have only two records in the table so the result should …

Member Avatar for pritaeas
0
31
Member Avatar for 343divyankjain

Hello, I wanted to make a unique UI for My website, which should be look like https://www.beyoung.in/ This website. provide me a valuable suggestion.

Member Avatar for rproffitt
-1
72
Member Avatar for DioneH

Hello Could I please ask for assistance? I need a file that I am able to download that holds all the streets and postal codes of the Ireland.

Member Avatar for DioneH
0
113
Member Avatar for Darren_8

Hello Member, I am doing front end development from the last 2 months. I have got 1 project from a client. Almost the work is completed but now the client is also demanding for right click disabled for all webpages something like [this](https://www.usersadvice.com/). I have done it but the source …

Member Avatar for rproffitt
0
54
Member Avatar for kiwi_

Hello, I read here on DW [Click Here]( https://www.daniweb.com/programming/web-development/threads/108189/inserting-checkbox-values-in-mysql-php) I would like to know how to insert multiple checkbox values into multiple columns with values of "0" for no or "1" for yes. If possible I would like to keep them in an array such as: <input type="checkbox" name="animal_selection[]" value="tiger"> …

0
32
Member Avatar for dado.d

Hi, I need a little help with someting I'd like to implement, but not sure how to do it. I'm running eBay like classifieds site. There are a lot of filters on my site e.g. you can filter ads by price, by category, by city, by condition... Let's say we …

0
33
Member Avatar for Iikeloa

I am trying to create an interactive terminal to use in a project that I am working on. the idea is that I will have a web page which looks like a terminal and can use it to work with command line tools. anyway I need to use php as …

Member Avatar for rproffitt
0
369
Member Avatar for baraka.arman

Hi everyone! i have Fedora 28 (with xfce) installed on my laptop. As Fedora 28 is now an old version, I'd like to know if there is a way to upgrade directly to Fedora 32, with no risk (I mean no data loss, in particular my /home dir).. Can you …

Member Avatar for rproffitt
0
20
Member Avatar for Greg_11

I have a fillin form , which has a submit button. In order to get to the fillin form, the user has already been authenticated and a session has been created, and variables have been added to the session. In order to process the information, I have another 'insUpSel.php' file …

Member Avatar for Greg_11
0
244
Member Avatar for BreighA

Looking for directions. Where would one go to find a downloadable excel sheet, listing the streets of Algeria city?

Member Avatar for BreighA
0
122
Member Avatar for Greg_11

I live and work in beautiful BC Canada. I am a DBA, Data & Application analyst who is new to developing in PHP. I look forward to learning much from this community while on my current project and eventually contributing.

Member Avatar for rproffitt
1
33
Member Avatar for Greg_11

New to this forum and to programming in PHP, so apologies if I miss some detail. I have found some code which does almost everything I need, but I can't figure out how to get the 'selected item' from the results on an secondary page (reading in post) .. this …

Member Avatar for Greg_11
1
463
Member Avatar for Xozz

Hello. Is there anybody here who's eager to help me building a webgame? It's mostly written in PHP and there are some Javascript and CSS files included. I put it on Github. I haven't been using a framework (yet). If you first want to know more, just ask (of course). …

Member Avatar for Xozz
0
126
Member Avatar for superjohnellee

I can't for each the two dimensional array in PHP Inside of an array is a question and another array inside an array is an anwers The result of questions which is $one_four_key is Array `$questions_one_four = array("What time will the festival begin?"=>array("10 A.M.","11 A.M.","1 P.M.","2 P.M."),"In line 3, the …

0
27
Member Avatar for srednausab

want to sent an AuthnRequest from my python-based SP (I;m using python 2.7) that I'm developing to my simpleSAMLphp installation (it's an IDP). I'm using the "requests" module to do a get like this: response = requests.get(url, verify='/home/me/my.crt') where the URL is: https://bingo.bas.com/simplesaml/module.php/core/authenticate.php?as=example-sql/?SAMLRequest=' + saml_request_base64 and the saml_request is (but …

0
22
Member Avatar for Nicolas_1

Hi, I am new to php and html, so I need some help with a problem: I am trying to make a form where you can select from a dropbox, but thae data from the dropbox should be retrieved from a sql database. If I save the code bellow as …

Member Avatar for kosikondo
0
6K
Member Avatar for car_2

am using a plugin name - pafe - https://pafe.piotnet.com/ which generates a pdf when someone fills a form. and this plugin use fpdf asset. http://www.fpdf.org/en/script/script92.php but currently, it is not supported Hindi font. right now Hindi not work. how can I use Hindi in the current plugin? plugin author does …

Member Avatar for rproffitt
0
33
Member Avatar for Dainis_1

<?php ini_set('display_errors', 1); ini_set('display_startup_errors', 1); error_reporting(E_ALL); session_start(); if (isset($_POST['delete_account'])){ require 'conn.php'; global $conn; $password = $_POST['delete_password']; $email = 'delete@gmail.com'; $user_id = '5'; $sql = "SELECT * FROM user_acounts WHERE e_pasts=?;"; $stmt = mysqli_stmt_init($conn); // Inicializācija if(!mysqli_stmt_prepare($stmt, $sql)){ header ('location: userpanel.php?error'); exit(); }else{ mysqli_stmt_bind_param($stmt, "s", $email); mysqli_stmt_execute($stmt); $result = mysqli_stmt_get_result($stmt); } …

0
39
Member Avatar for Xozz

I'm writing a game in PHP. Now the script generates a random number to get the players registered. But: the number generated is the same for every player. It's about this line: $activationkey = rand( 1000000000, 9999999999 ); Every player gets the same key. How can this be? Any help? …

Member Avatar for Reverend Jim
0
27
Member Avatar for HanFromNL

In my HTML-page I am using following HTML + PHP-code: [COLOR="Blue"]Today is: <? print(Date("l F d, Y")); ?>.[/COLOR] I would expect to see: [COLOR="Green"]Today is: monday October 4, 2010.[/COLOR] or something like that. The only thing I see is: [COLOR="red"]Today is:.[/COLOR] (mind the dot at the end. This means the …

Member Avatar for Nour_6
0
37K
Member Avatar for allenzims

I am trying to get the last inserted id to be displayed in alert box. Can anyone help me out. I can echo it out but I want to display the ID in alert box and redirect once the user clicks ok. Thank you so much. I am a new …

Member Avatar for Diafol_2
0
338

The End.