900 Recommended Topics

Remove Filter
Member Avatar for
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 …

Web Development database php sql
Member Avatar for Greg_11
1
447
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 …

Web Development form php select sql
Member Avatar for kosikondo
0
6K
Member Avatar for ivanichi

hello, i have table, like this ![id_j.jpg](https://static.daniweb.com/attachments/2/825eb7e4f2658c788c5332dbbe8ea3d9.jpg) i want to create crud for it, this is the new section displaying and retrieving data, with this condition: nama_barang show with autocomplete, ![autocomplete.jpg](https://static.daniweb.com/attachments/2/a7714153a09b5ac0adc585f69d4adc71.jpg) autocomplete works, and displays the data once selected but does not automatically create a number of data and they …

Web Development codeigniter
0
104
Member Avatar for fish786

Hello everyone, Could someone please help me with an Html and CSS issue. I am using asp.net c#. I am stuck in how to create an array of buttons in HTML. I do know how to create 1 button but I need to create about 10-12 buttons. Would like to …

Web Development asp.net css
Member Avatar for Emmason
0
318
Member Avatar for bprosic

Hi, how can I use regex or string replace to add missing "p" tags to sentences without tags. I tried matching* and splitting first the whole string matching "h" and "pre" tags but dont know how to merge it. `*let regexRule = /<pre>(.|\n|\r\n)[\s\S]*?<\/pre>/g;` Example - input let someVariable = "Basket …

Member Avatar for Diafol_2
1
1K
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 …

Web Development php
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 …

Web Development php sql
Member Avatar for Diafol_2
0
335
Member Avatar for Naj_1

Hi everyone, I am currently building a wordpress site related to the photo which will be used to carry out many social projects. It's been months that I block on one subject, I am looking desperately for a person who would have the kindness and the skills to bring me …

Web Development javascript jquery php wordpress
0
188
Member Avatar for Jaayy909

Hi Guys, I have been surfing the internet looking for a prompt app dev software because I have seen one of Appoly's and Red C's mobile applications which looked amazing. I am currently creating a sports app that provides quizzes and information on athletes. What would be the best mobile …

Web Development database
Member Avatar for Sohaib_7
0
121
Member Avatar for Nosipho_1

um i am so bored at school i hate my teachers , school, and all the subjects i want to make fast money so i think i have a solution for my problem since i am a trap music girl i am in love with cardi b i would love …

Web Development javascript
Member Avatar for John_165
0
70
Member Avatar for Aeonix

$stmt = $dbconn->prepare("SELECT * FROM `members` WHERE username=? AND password=?"); $stmt->bind_param("ss", $username, $password); Is what I have. Database is connected etc. How can I set variable called `$dbresult` with array of SQL result? I don't want to set individual variables. I really need an entire array as answer. There's couple …

Web Development database mysql php
Member Avatar for jkon
0
3K
Member Avatar for mrcniceguy

Is there anyone with the knowledge on how to Show online users with php?? i have seen in many sites,now i need someone who can explain to do it. (if there are users who are online to be displayed) Please explain how to get started))))

Web Development php
Member Avatar for ashkan_3
0
9K
Member Avatar for FoxyBit

Hi all, I have been confusing myself for days over this so bear with me if it gets a bit confusing. I have a table called tags with columns id, name which list all unique tags (linux, php, mysql, etc.). And I have an array that includes some tags that …

Web Development database mysql php table
Member Avatar for pritaeas
0
122
Member Avatar for Naveed_786

Hi All, I havefollowing code and getting error "Parse error: syntax error, unexpected 'elseif' (T_ELSEIF) in C:\xampp\htdocs\SMR\index.php on line 13". Wehen i remove elseif and keep only if it just checks the first condition and ignor the second. When i put back elseif i get error. Please to fix this …

Web Development php
Member Avatar for pritaeas
0
71
Member Avatar for Dani

This question specifically relates to PHP's Memcached library when specifying a server key and adding multiple keys at once. **Question one**: Is it true that PHP's setMultiByKey() doesn't take advantage of the memcached server's native support for setting multiple keys at once, but that the logic is on PHP's side …

Web Development memcached php
0
266
Member Avatar for mexabet

I have two MySQL tables, which I want to SELECT using a single PDO query and positional placeholders. I've been going through similar questions here to find a solution, but none seems to match the issues I'm having. The following code is the section of my script: <?php // query …

Web Development mysql pdo php
Member Avatar for mexabet
0
890
Member Avatar for sols4comp

I have created a php form that connects to a MySQL database. This is working fine however I have added validation and this doesn't appear to be working correctly and still posts to the results to the database regardless of if they are validated or not. Any ideas?

Web Development database mysql php
Member Avatar for Dani
0
138
Member Avatar for Sahilsahni

please if anyone could tell me, how it would be possible, i want to save the content of a uploaded word document in database field with php, no problem with encrypted file like ( ´V z2Ö<Ö<ôÿÿÿÿÿÿ·üü?????ÿÿÿÿSSS8‹DÏLS¥9à1) as it shows if you open a word document in a browser. just want …

Web Development mysql php word
Member Avatar for ishu_1
0
4K
Member Avatar for davy_yg

Hello all, I am looking for a free vpn to view a laravel video tutorial in the forum. Any recommendation? Which is not a trial version? Is there any? As long as it works. Thanks in advance.

Web Development vpn
Member Avatar for scottoconnor956
0
755
Member Avatar for mexabet

I'm trying to redirect user to "**userinfo.php**" after successful registration, but the browser terminates the redirection because it goes into endless loops. Moreover, I need your insight on if the script is secure or not. I need your help, please. Thanks. The following is the "**register.php**" script: <?php // include …

Web Development mysql pdo php
Member Avatar for Dani
0
345
Member Avatar for nishita_1

Please Help me. I am coding PHP using below code but out put is not perfect. i am also attach output picture below. <?php require_once 'core.php'; include_once("../fpdf182/fpdf.php"); $pdf = new FPDF(); $pdf->AddPage(); $pdf->setFont("Arial","B",16); $orderId = $_POST['orderId']; $sql = "SELECT orders.order_id, orders.order_date, customer.customer_name, customer.customer_mobile, orders.sub_total, orders.vat, orders.total_amount, orders.discount, orders.grand_total, orders.paid, orders.due, …

Web Development ajax javascript pdf php-mysql sql
Member Avatar for Dani
0
700
Member Avatar for Sananil

I want my users to be logged out automatically after30 minutes of inactivity. I also want to have all sessions destroyed. This is my login.php i have set cookies but does not work. if (isset($_POST['member_login'])) { $username = isset($_POST['username']) ? $_POST['username'] : ""; $password = md5(isset($_POST['password']) ? $_POST['password'] : ""); …

Web Development login php
Member Avatar for Dani
0
639
Member Avatar for Sananil

I have set up for users online but some users showing always online . can you help anyone this my code ![zzz.png](https://static.daniweb.com/attachments/4/810ade1e5592a68b47aee955adb8de8f.png) <?php if ($Row->logged_in == '0') { if ($Row->last_login != '0000-00-00 00:00:00') { ?>Last Login : <?php echo date('d M Y ,H:i A', strtotime($Row->last_login)); } else { echo "<span …

Web Development jquery mysql php
Member Avatar for Emmason
0
396
Member Avatar for Alexis_fr

Hello, I'm a not a programmer at all and when I tried to build a LibraryBox for my school I didn't know it was a discontinued project. So I'm here with my MR3020 version 3 (the one that is not supported anymore by the project...) and I managed with my …

Web Development php
Member Avatar for Dani
0
142
Member Avatar for Syed_22

Hi guys can anyone help me i need to learn how to use OR and AND in loop conditions using javascript

Web Development asp asp.net javascript
Member Avatar for Emmason
0
62
Member Avatar for anish.anick

Hi All, How can i set the session time out in PHP if the user stays inactive for a certain time in a web page.Please help me to solve this.. Thanks

Web Development php time-inc
Member Avatar for syaifulrijzal10
0
19K
Member Avatar for Sananil

Hi, first of all let me thank anyone willing to help out with this. Jquery / Ajax update Span or Div by ID without refreshing page <?php } $select = $DatabaseCo->dbLink->query("select sh_id from shortlist where to_id='" . $Row->matri_id . "' and from_id='" . $user_id . "'"); if (mysqli_num_rows($select) == 0) …

Web Development ajax jquery php
Member Avatar for Biiim
0
4K
Member Avatar for mexabet

I'm struggling to build a PHP registration script using PDO prepared statements with positional placeholders. But the MySQL queries don't execute. `var_dump();` doesn't display any error. Please, I need your help to fix this. Your time and input are much appreciated in advance. Thanks. **register.php:** <?php // include configuration file …

Web Development mysql pdo php php-mysql
Member Avatar for rproffitt
0
609
Member Avatar for Thanigaivel_1

Greetings to everyone, I am working as a freelance web developer, i have more than 4 years experience in osclass scripts. I am working in the osclass scripts for the past 4 years and have created nearly 67 sites in osclass, and have created many plugins, cuztomized themes, plugin cuztomizations …

Web Development ajax javascript jquery mysql php
Member Avatar for Mcqs
1
338
Member Avatar for Sappie

Hi, I built a maze game and it's working pretty well except on touch devices. Before this project, I had never used touch events and so I had to learn about them to implement. But I'm sort of unable to make them work. This is my git repository- (https://github.com/sapinder-pal/Cheesy-Maze-Depth-First-Search-Algorithm), and …

Web Development javascript
Member Avatar for AndreRet
1
49

The End.