39,316 Topics

Member Avatar for
Member Avatar for hiiiiii@

this is my code for inserting records into my form which is in html file `Inline Code Example Here` <?php error_reporting(E_ALL ^ E_DEPRECATED); $connect=mysql_connect("localhost","root","") or die(mysql_error()); $db_select=mysql_select_db("employee",$connect) or die(mysql_error()); if (isset($_POST['id'])) $id=$_POST['id']; if (isset($_POST['name'])) $name=$_POST['name']; if (isset($_POST['gender'])) $gender=$_POST['gender']; if (isset($_POST['mobile'])) $mobile=$_POST['mobile']; if (isset($_POST['email'])) $email=$_POST['email']; $qry="insert into emp(id,name,gender,mobile,email) values ('$id','$name','$gender',$mobile,'$email')"; $result=mysql_query($qry) …

Member Avatar for Daju Emmanuel
0
3K
Member Avatar for surveypacific

What is a “MIME type”, what does it consist of, and what is it used for? can anyone pls provide with example?

Member Avatar for JeanMilburn
-1
256
Member Avatar for Getyou

<?php $dataContent = $user->name; if ($user->active) { if (!$user->active) { $dataContent .= ' <span class="label label-default">Inactive</span>'; } if($user->teams and $user->active){ foreach ($user->teams as $team){ $dataContent .= ' <span class="label label-primary">'.$team->name.'</span>'; } } $assignee = isset($filter_var['assignee']) ? $filter_var['assignee'] : []; if (!filter_var($assignee)) { $assignee = [$assignee]; } $assignee = array_unique($assignee); } …

0
28
Member Avatar for mfpl

hi there are two question. first how to boost the backlinking and second is which forums or guest posting is best for backlinking. Tags: #php #upload #css #form #asp.net

Member Avatar for JeanMilburn
0
40
Member Avatar for muralibobby2015

Can anyone please help on this. Tenanti Version: ^5.0 Laravel Version: 7.x PHP Version: 7.4 Database Driver & Version: mysql-5.7.31 **Description**: When I install tenanti version getting an error in service provider. Illuminate\Contracts\Container\BindingResolutionException Unable to resolve dependency [Parameter #1 [ array $config ]] in class App\Providers\AppServiceProvider Steps To Reproduce: "orchestra/tenanti": …

0
74
Member Avatar for R_4

I am trying to get user's information and show them in user's profile. And i found this query but it is in PDO and my work is in sqli here the query : if(isset($_SESSION['user'])){ $getuser=$con->prepare("SELECT * From users where username=?"); $getuser->execute(array($sessionuser)); Sinfo=$getuser->fetch(); And here the whole code <?php session_start(); $sessionuser=''; …

Member Avatar for Smartfitness33
1
69
Member Avatar for vindyauwu

I want to create a single login page for Admin and user.When admin lo it should go to seperate page and when user log it shoult go to seperate page.I want sample code for this.Thanks..

Member Avatar for VINITHAPRIYA R
0
36K
Member Avatar for Greg_11

I have a project where I need users to be able to save their work, then at a later date select the session/data from their previous work and continue. I have completed all of the coding (and it works) to save the current session under their userid, and populates a …

Member Avatar for JeanMilburn
1
354
Member Avatar for Alexander_26

How to remove from the Google index pages of my site that were created by a virus Japanese keyword hack? It is necessary to remove from the Google index links to the pages of my site http://quartercheapersigns.ca/ that were created by a virus - about 43 800 pages in Google …

Member Avatar for Dani
0
83
Member Avatar for sandySuper

When I access an api. it returns data in below format **n2035014,25 N2035014,25 B2035014,2944.40,250,3787.30,2400** o24,22971.20 h24,23064.15 l24,22641.40 c24,22945.05 i24,22744.40 I am clueless how to map these data and store in mysql table. First set of data highlited in bold is dataset 1, followed by second set of data which has …

Member Avatar for JeanMilburn
0
64
Member Avatar for SimonIoa

Hello i want to automatically add an id to the inserted row on my table in Mysql db. The table has no uniquie key and no AUTO_INCREASMENT. I just want a function to add the id automatically when the row is inserted. This is the statement i have $db = …

Member Avatar for twexpresscars
0
54
Member Avatar for discuss
Member Avatar for SimonIoa

i want to unserialize? and display Array from my text field in db table. This is what i use to serialize on Insert statement. `$persons = serialize(array($paymentData['anArray']));` and this returns after var_dump `["persons"]=> string(104) "a:1:{i:0;a:2:{i:0;a:1:{s:5:"value";s:15:"Producer: Simon";}i:1;a:1:{s:5:"value";s:13:"Writer: Simon";}}}" ` Now the object that i return from Select statement is memberDetails $sql …

Member Avatar for Dani
0
141
Member Avatar for jack98

hello, i have a probelm where i want to update my image in database using unlink(). The error is **Warning: unlink(images/481933.jpg): No such file or directory**. I try search the solution but nothing can solve my probelm. anyone can help me? thank you in advanced. this is my code: $upload_dir='images/'; …

Member Avatar for Dani
-1
617
Member Avatar for Botoho

For example. I have a select statement that is "select ID from students where student name ='name';" Now I don't wanna echo the student ID but I wanna store it in various where I can reuse it. How do I do it. "select ID from students where student name ='name';"

Member Avatar for Mr.M
1
440
Member Avatar for MNSRAO

Hi i am computer science students. I always confused to about php base websites or another website. Yesterday my teacher gave me assingement to check website either it is php base or other platform. But i haven't decided to give answer. I am week student in class. please help me …

Member Avatar for rproffitt
-1
44
Member Avatar for Jack_62

Hello friends, I am looking to start my career in web development. I have also learned a lot of about web development and PHP. So, can anyone let me know which is the latest version of PHP and it's featured?

Member Avatar for pritaeas
0
45
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
35
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
56
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
84
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
30
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
71
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
112
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

The End.