39,323 Topics

Member Avatar for
Member Avatar for ousaf

class phpParser{ public $pageString; //some other properties and methods class software{ private $baseName; private $url; private $html; public initiateValues (){ $this->html = new phpParser (); } } // Now how to access properties and methods of phpParser class through software class member $html (which is actually object // of phpParser …

Member Avatar for veedeoo
0
286
Member Avatar for mexabet

I want to insert a URL inside an echoed table row. Here is the URL and table column: <a href="modify-user.php?id=<?php echo $row["id"]; ?>">Modify</a> Here is the table column: printf("<td class=\"listusers\">" "</td>"); Thanks for your help in advance.

Member Avatar for mexabet
0
180
Member Avatar for ankit.baphna

Hi Friends, I am using this code to upload image but it seems my call is not getting inside function. I put some echo commands for debugging. all I get output is after selecting file "hello entering function". but do not get other echo command print. Neither insert command is …

Member Avatar for ankit.baphna
0
399
Member Avatar for berserk

i have an issue, my code works wonderfully for the pupose its designed for however for security reasons i need th epages page my login page to have either randomized links or just links that cannot be bookmakred too so that one can bypass the login page. My login page …

Member Avatar for berserk
0
466
Member Avatar for Mohamed_26

Hello, I am getting an error <?Php include 'connect.php'; $userName = $_POST['Username']; $firstname = $_POST['First Name']; $Surname = $_Post['Surname']; $email = $_POST['Email Address']; $password = $_POST['Password']; $gender = $_POST['Gender']; $dob = $_POST['DOB']; $query_insertintotable = "INSERT INTO User (username,Password,First Name,Surname, Gender, DOB, Email Address) VALUES ('$userName','$password','$firstname','$userName', '$gender', '$dob', '$email)"; $query = …

Member Avatar for Mohamed_26
0
2K
Member Avatar for hanspeare_1

Hi there, i have recieved this notice Warning: Header may not contain more than a single header, new line detected in C:\xampp\htdocs\a\Student_Edit_Handler.php on line 53 and these are my codes. Kindly help me to fix this. <?php session_start(); $session_id = $_SESSION['user_id']; if($session_id == null){ header("location:Student_Edit.php"); die(); } include 'Connect.php'; $flag …

0
221
Member Avatar for suraj32

Hi, I've developed a php web-app recently in english language. Now, I want to add support to other languages. I've googled & found some results like using `gettext()`,storing in `.ini` files etc. This is good for static websites. But, the thing here is I want to display some data from …

Member Avatar for diafol
0
288
Member Avatar for thirsty.soul

move_uploaded_file not working. althought the query works fine. newbie to php & daniweb :) . if($page=="Image") { $uploads_dir = '/gallery'; $tmp_name = $_FILES["t1"]["name"]; $name = $_FILES["t1"]["name"]; move_uploaded_file($tmp_name, "$uploads_dir/$name"); $insert="insert into gallery values('','$tmp_name')"; $query=mysql_query($insert); if($query) { header("Location:gallery.php"); } else { mysql_error(); } }

Member Avatar for thirsty.soul
0
139
Member Avatar for accra

Hey guys, i found this piece of code that is suppose to read a port on my server and write to a .txt file the gps data it get gets. am receiving nothing, am not not sure what the problem is, also am new to gps and php socket programming... …

Member Avatar for accra
1
912
Member Avatar for mbarandao

Hello, I need a little bit of assistance with parsing data from an html using xpath. Please indulge me for a moment as I attempt to explain my problem and subsequently my question: The html code from which I am parsing data is below. I would like to specifically parse …

Member Avatar for v1shwa
0
249
Member Avatar for ultmt.punisher

I have created a chat program that is working fine on localhost but in the live server its not working fine, its sent response or text very late, So I don't know what code should I post here to get know whats the problem or how it will be solved. …

Member Avatar for diafol
0
2K
Member Avatar for minafarmland

Through CURL Request find meta keywords, meta description, title tag, IP address, Load Time, HTTP Status, Internal & External Links of any URL.

Member Avatar for v1shwa
0
99
Member Avatar for davy_yg

Hello, I am trying to create a web message features. This is the code that I have done so far: messages.php <?php //LOAD INBOX MESSAGES $result = mysql_query("SELECT * FROM messages WHERE to_stu_username='".$_SESSION['username']."' ORDER BY date") or die(mysql_error()); ?> <table id="admintable" border="1" cellpadding="2" cellspacing="0" width="900px"> <tr> <b>Inbox</b><br><br> <th>From</th><th style="width:500px;">Messages</th><th>Date</th> </tr> …

Member Avatar for Borzoi
0
106
Member Avatar for Admissionform

My code is here $location="Delhi,NOIDA"; $cheack2 = ""; $arr=array(); $flag = false; if(isset($skill)&&$skill != ""){ $query_arr = explode(",",$skill); foreach($query_arr as $query_arr2) { $arr[] = "job_keyskills like '%$query_arr2%' "; } $cheack2=implode(" OR ",$arr); $flag =true; } if(isset($skill)&&$skill != ""){ if($flag){ $cheack2.= "OR "; } $cheack2.="MATCH (job_keyskills,job_title) AGAINST ('+$skill' IN BOOLEAN MODE) …

Member Avatar for v1shwa
0
147
Member Avatar for thiagorochagomes

Good evening I have this code in PHP that serves to list the latest topics in a forum (IPBOARD): <?php // CONFIGURAÇÕES DE CONEXÃO $connect = mysql_connect("localhost","root","senha") or die (mysql_error()); $select = mysql_select_db("forum") or die(mysql_error()); // URL DO FÓRUM $url = "http://endereço do forum/"; // LIMITE DE LINKS QUE IRÃO …

Member Avatar for diafol
0
527
Member Avatar for jaspertan

Hi Sirs , I would like to ask assistance regarding this topic i have a GUI which is Email Address : Password: what will happen : when i tried to use my Google account it will allow user to access next page if google account is not valid they can't …

0
64
Member Avatar for mwnt2014

Having two Problems shown below: 1. **Want to send post form data to other domain area and receive response from that domain page**. (Ajax not working for other domain) 2. Show ads div between worpress post area through plugin. how can i make this plugin.?

Member Avatar for diafol
0
221
Member Avatar for chaze

Here is the page: <?php include( "mypath.php" ); include( "{$filepath}/config/clientdbconnect.php" ); if ( ------------------------- ) { #exit( "Security Violation" ); } include( "header.php" ); $sqle = "select * from helpconfig where cid = '1'"; if ( !( $resulte = mysql_query( $sqle ) ) ) { exit( mysql_error( ) ); } …

Member Avatar for Taywin
0
251
Member Avatar for accra

Hi every one. i have built an online fleet management app in php/mysqli successfully. I now have to add a gps device to send lon,lat, speed and so on to online app. I did some reading on php tcp socket listener, but am not very clear. Do any one have …

Member Avatar for accra
0
1K
Member Avatar for malatamil

i want to display 3 data per row and n number of rows. someone help me to do this. <div class="top-box"> <?php include("config.php"); $sub2_category_id = $_GET['sub2product_id']; $sub2_category_name = $_GET['sub2product_name']; echo '<h2 class="head">'.$sub2_category_name.'</h2>'; $sql = mysql_query("SELECT p.`product_id`, p.`brand_name`, p.`brand_path`, p.`sub2_category_id`, p.`sub_category_id`, p.`main_category_id`, p.`date`,ba.`brand_amount_id`, ba.`available_pack`, ba.`mrp_amount`, ba.`our_price`, ba.`product_id` FROM `product` p JOIN …

Member Avatar for thirsty.soul
0
2K
Member Avatar for Jake.20

<?php //start php tag //include connect.php page for database connection Include('dbConnection.php'); //if submit is not blanked i.e. it is clicked. // var_dump($_REQUEST); session_start(); $errCount = 0; $user = $_POST['usernameTbx']; $pass = $_POST['passwordTbx']; if(isset($_REQUEST['submit'])!='') { //VALIDATE USERNAME TEXTBOX if($_REQUEST['usernameTbx']=='') { $errCount += 1; $_SESSION['error'] += array('usernameTbx' => "Username cannot be empty"); …

Member Avatar for Ketul_1
0
360
Member Avatar for centenond

Could some 1 please tell how to do timestamps that not rely on users computer? time(); and UNIX_TIMESTAMP() seems to rely on users pc Thanks

Member Avatar for diafol
0
435
Member Avatar for Paul_26

Hello i try to update the Image using Update Query in MySQL here's the code $pic = $_FILES['photo']['name']; $sql = "UPDATE `std_login` SET `imagename` = '$pic' WHERE `std_id_no` = '$std_id'"; the File upload works, but not Stored in Database. what to do? help me please.

Member Avatar for thirsty.soul
0
2K
Member Avatar for thirsty.soul

Hello DaniWeb, I am working on project in which admin generates dynamic query by selecting value from the First dropdown(program) then second dropdown (semester). The concept is that For example: if admin select "MSCS" from the first dropdown list and "3" from the second dropdown list. it should populate all …

Member Avatar for thirsty.soul
0
224
Member Avatar for eahdbz12

I need to get the list of diagnosed disease of the patient by choosing his name in the combo box,how can I do that? This is my code. <select name="pname" class="textfields" id="model" style="width:180px;" onchange="getVal1();"> <option id="0" >--Select Patient Name--</option> <?php $con=mysqli_connect("localhost","root","","dbnpatient"); if (mysqli_connect_errno()){ echo "Failed to connect to MySQL: " …

Member Avatar for thirsty.soul
0
219
Member Avatar for fariba123

i have a form with multiple checkbox. how to get the values that are checked. pls give a quick reaply. thanks

Member Avatar for bhagyashree.bhatt2
1
1K
Member Avatar for asheesh.mehta.54

<?php session_start(); mysql_connect("localhost","root",""); mysql_select_db("secure"); $name = $_POST['n']; $address = $_POST['x']; $order = "INSERT INTO user VALUES('$name','$address')"; if($result) { echo("Input data is succeed");} else { echo("Input data is fail");} ?> Error: No base was selected

Member Avatar for diafol
0
201
Member Avatar for mark.giles.14

Should apostrophe's be stored from a form into a database as ’ or as is ' If Im pasting articles into a database from another website do I need to convert the string on posting or leave them as it is.

Member Avatar for mark.giles.14
0
141
Member Avatar for Webville312

Dear all, I have this project that I was working on, and I put it on hold. Now I have revived it (Anyway that is not the issue). The issue is that I record students' information and record their entry class; However, as time goes on, the students either gets …

Member Avatar for Webville312
0
1K
Member Avatar for Kalaivani Nair

Hi everyone.. I'm using a very simple code to remove an item from session array. I just jave no idea why it returns SQL error like this in another page that initiated the deletion: You have an error in your SQL syntax; check the manual that corresponds to your MySQL …

Member Avatar for Kalaivani Nair
0
355

The End.