39,326 Topics

Member Avatar for
Member Avatar for abhijit_2
Member Avatar for hallianonline

Hello in my code i am unable to fetch rows please check if (isset($email) && isset($key)) { $get_verify_email = "SELECT * FROM users_registration WHERE email_address ='$email' AND com_code='$key'"; if ($result = mysqli_query($dbc, $get_verify_email)) { while ($row = $result->fetch_row()) { $name = $row["Name"]; $business = $row["business_type"]; } /* free result set …

Member Avatar for cereal
1
92
Member Avatar for hallianonline

Hello i need a little solution for a variable in my code its currently printing error messages but i want to keep these error messages so that i can print them any where in my html using this code <?php print_r($messages); ?> becuase currently its printing the error message on …

Member Avatar for Tpojka
0
121
Member Avatar for GlenRogers

I have a form for adding products and their detail to a mysql db. I have another form that shows the products where I can remove the product from the db, I can also hide or show the product in the website. I need to be able to edite the …

Member Avatar for diafol
0
318
Member Avatar for tqmd1

Sir, i am using these codes <?php $myusername=""; $mypassword=""; $myemail=""; $mymobile=""; $mycountry=""; $mycity=""; $myage=""; $mygender=""; $myphoto=""; if(isset($_POST['save'])){ require_once("connect.php"); function clean($str){ $cstr=trim($str); $cstr=addslashes($str); $cstr=htmlspecialchars($str); return $cstr; } $myusername=clean($_POST['username']); $mypassword=clean($_POST['password']); $myemail=clean($_POST['email']); $mymobile=clean($_POST['mobile']); $mycountry=clean($_POST['country']); $mycity=clean($_POST['city']); $myage=clean($_POST['age']); if(empty($myusername)) { echo ('<script>alert("User name must not be empty")</script>'); echo '<script>document.getElementById("form1.username").focus()</script>'; } elseif (empty($mypassword)) { echo ('<script>alert("Password …

Member Avatar for pzuurveen
0
119
Member Avatar for vaultdweller123

hello im a little new to htaccess specially mod_rewrite, i know mod_rewrite allows us to rewrite request. Can anyone write me the exact code how to rewrite my path to files?. Before my files(jc,css,images..etc.) reside in example /images/image.png, but now it has a parent directory folder named "public" so my …

Member Avatar for cereal
0
347
Member Avatar for TheBludger

Ok this is a basic question. I suspect that I do not know the correct terminology to search for the answer. I am playing in a development environment and this is all about learning and pushing my skills to learn more. My main web site is an HTML Form that …

Member Avatar for TheBludger
0
283
Member Avatar for loya90

hi guys! I deleted my scrit and installed a new script and i cant log in but can creat new users and new Global admin. hav checked my login.php, member/index.php but the codes have no error yet i cant log in. below are my codes **login.php** <?php ob_start(); session_start(); include …

Member Avatar for pritaeas
0
251
Member Avatar for Jemuel

Please help! i am troubling about on how can i execute my sql script properly. Thanks!Here's my code $sql="INSERT INTO inventory(account_number,serial_number,locator,remarks,`date_assigned`) VALUES('$accountno','$serial','$locator','$remarks',NOW())"; $sql.="INSERT INTO action_log(action,username,`date`) VALUES ('assigns the box($serial) to $accountno','$user',NOW())"; $sql.="INSERT INTO account_logs(action_log,account_number,username,`date`) VALUES('Assign','$accountno','$user',NOW())"; if(mysql_query($sql)){echo "Successfully Assigned!";} else{echo "Insertion Failed!";}

Member Avatar for Jemuel
0
210
Member Avatar for cmps

Hello, I am using mysql as database, innodb as tables engine. Some of my tables have foreign keys referencing to other tables primary keys. Since the definition of foreign key is to restrict the value of itself, I would like to know if I should check the existence of the …

Member Avatar for diafol
0
208
Member Avatar for Stefce

Hello everyone, im trying to make a registration system with PHP and MySQL but im not going well i just created table and i have writed the code well but there is something wrong the inputs don't send that data into database i have tryed much different ways of doing …

Member Avatar for diafol
0
186
Member Avatar for jacob21
Member Avatar for fheppell

I have this code for my site, the zip is generating (but corrupted because of the 0 byte files...) but the actual curled files (in the tmp/ directory) are there, just with nothing in them. if ($_GET['download']== 'true'){ $downloadarray = array(); while($row = mysql_fetch_array($res)){ $url= $row['loc']; $path = 'tmp/'; $path …

Member Avatar for fheppell
0
2K
Member Avatar for vishalonne

Hi Everybody I have to import excel data in MySQL table, I know how to do this for simple excel data to 1 MySQL table. Here also I need to import data from excel to 1 table but data is provided in 1 form which needs to be converted first …

Member Avatar for João_5
0
409
Member Avatar for pkpankaj

how to file upload and save in data base, and also how to retrive from there in any page

Member Avatar for João_5
0
63
Member Avatar for Priti_P

Hello All, I am displying the paragraph by fetching it from DB using function `mysql_result($result1,$i,"Summary")` and here in DB database Summary field contains link (for ex: htttp://google.co.in) but on UI side, it simply shows htttp://google.co.in not a clickable link. How to do this ??? in short as my mysql_result() is …

Member Avatar for Priti_P
0
197
Member Avatar for lewashby

I'm having trouble understanding the keyword 'this' in php. When and where does it need to be used? Why can you not simply use the variable name as you would normally do when not placing a variable inside a class? In the small test case program below I can't even …

Member Avatar for minitauros
0
191
Member Avatar for tqmd1

Dear Experts, I have following codes $sql = "SELECT * from contacts order by name" ; $select = mysqli_query($con,$sql); $row=mysqli_num_rows($select); //echo ($row); while($row = mysqli_fetch_array($select)) { echo "<tr>"; echo "<td> <a href='edit.php?id=".$row['id']."'> <img border=noborder src=images/pencil.png title=Display></a></td>"; echo "<td align='left'> " . $row["name"]. "</td>"; echo "<td> " . $row["moba"]. "</td>"; echo …

Member Avatar for joshl_1995
0
299
Member Avatar for davy_yg

Hello, I am trying to make the frontend banner works. index.php <html> <link href= "css/style.css" rel="stylesheet" type="text/css" media="screen"> <script src="js/jquery.min.js" type="text/javascript"></script> <script src="js/chili-1.7.pack.js"></script> <script src="js/jquery.cycle.all.js" type="text/javascript"></script> <script src="js/jquery.easing.1.3.js" type="text/javascript" ></script> <script type="text/javascript"> $('#slideshow').cycle({ fx: 'fade', speed: 900, timeout: 10000, pager: '#nav', pagerAnchorBuilder: function(idx, slide) { // return selector string for …

Member Avatar for davy_yg
0
192
Member Avatar for yong.roni

Hye guys, can help me I have a problem with my login. At my login page user have to insert username and password. If the username and password has been set to staff it will direct to mainpage.php but if the username and password was on admin it will direct …

Member Avatar for yong.roni
0
92
Member Avatar for geneh23

Hey everyone, So I have an issue that I'm not sure how to solve. As for most of my posts, I'm sure it's an easy fix that I'm just not fully grasping. Anyway, I want to have a data form upload and show an image of the type of data …

Member Avatar for geneh23
0
330
Member Avatar for mutago

Assuming someone is developing a site similiar to facebook in content where users are allowed to upload of heavy files, images, videos, pdf etc. what could be the php best option of coding and fast in workability 1: Is it the best to upload and retrieve the files to and …

Member Avatar for cereal
0
246
Member Avatar for tqmd1

Sir, I am using these codes. <script type="text/javascript"> $("#moba").change(function() { var formVal = $("#moba").val(); $.get( "ajax_find.php", { id: formVal } ) .done(function( data ) { $('#my_name').val(data); $('#mobb').val(data); $('#email').val(data); }); }); </script> And ajax_find.php has these codes <?php require_once("connect.php"); if (isset($_GET['id'])) { $sno =trim($_GET['id']); $record_check ="SELECT * FROM contacts WHERE moba …

Member Avatar for diafol
0
1K
Member Avatar for chrisschristou

Hello dear friends on daniweb. i have a problem i have hotst package on 1and1.com now is 9 months.... i it is 6 months i try to install latest phpmyadmin but still i can't i don't know how i had download phpMyAdmin-4.0.4-all-languages zip i unziped and i upluad on www.myadomainname.com/phpMyAdmin-4.0.4-all-languages …

Member Avatar for chrisschristou
0
453
Member Avatar for jLamp

Dear Friends, Help me to write a script for create dynamic list menus in php. Simply, my need is retrieve value from URL & create list menus according to the value that we retrieved from URL. Ex : site.com/text.php?no=4 Should be displayed 4 text boxes Thank you friends.

Member Avatar for diafol
0
129
Member Avatar for Dr_Freeman

Is there a way to query all public posts on facebook using facebook graph api? I know that public facebook pages are available for this, but what about regular user’s public posts? For now, I can only access my friend’s posts. Is there some kind of universal access token that …

Member Avatar for cereal
0
150
Member Avatar for snitcher

Hello guys. i am trying to create a php + ajax form that enables the user to make a transfer from their account to another. is this correct what i am doing so far? `for the ajax file function sendpayment(){ var payment = _("SendPayment").value; var touser =_("ToUser".value; if (payment == …

Member Avatar for The Diamonds
0
288
Member Avatar for Simunji

Hello bretheren and programming Gurus? Am new and blank about php and just trying to experiment to get things as i want. Am using the code below but it does not validate data input and also does not redirect to the index page specified in it.I want if the fileds …

Member Avatar for eTechZambia
0
196
Member Avatar for Nimerion

Hello, people! I need some help with Wordpress.. I'm using Starkers, to create my theme. And I have a design, which I follow. I have Posts, and my question is, How can I add extra fields in the admin interface for the posts? I need to add some extra fields …

Member Avatar for Nimerion
0
101
Member Avatar for ImZick

Hi All Daniweb PHP Group, I have a big favor to ask (well for me this is big lol). I have 3 databases first (LOCAL),(AIMIS),(ERM). Here's the table (namely account_manager) of LOCAL. ![7938f748bd02de5247f37aaa10a5f0c2](/attachments/large/4/7938f748bd02de5247f37aaa10a5f0c2.jpg "7938f748bd02de5247f37aaa10a5f0c2") and Here's the table (namely customer_call) of AIMIS. ![247807516642224dfd5f6e93eadef14b](/attachments/large/4/247807516642224dfd5f6e93eadef14b.jpg "247807516642224dfd5f6e93eadef14b") and Here's the table (namely quotations_header) …

Member Avatar for urtrivedi
0
466

The End.