39,392 Topics

Member Avatar for
Member Avatar for dlaniger

Hello, I have PHP 5 and Apache 24 installed. PHP doesn't appear in my Control Panel as an installed program. I have tried to Use **PHPIniDir c:/php** in my httpd.exe file and also **LoadModule php5_module "c:/php/ext/php5apache2_4.dll"** both of which crash the Apache server. I have searched Google for an answer …

Member Avatar for dlaniger
0
201
Member Avatar for gilgil2

Hi, I am having trouble with this page, it is completely blank. I have turned on error reporting but nothing happens, does anyone know what has happened to it? It has worked previously so maybe I have changed something but not sure what. <?php session_start(); ob_start(); if(!isset($_SESSION['authenticated'])) { header ("Location: …

Member Avatar for gilgil2
0
262
Member Avatar for chaitu11

I have a (2gb)txt file which has thousands of queries, i need to read those file queries and split those queries into n no. of txt files..and save them in a folder... can any one post an example or guide

Member Avatar for chaitu11
0
243
Member Avatar for Keyra Lee

hi guys...i need help from u guys..my prob is about select option..i'm not good in english. hopefully u guys would understand my english..:(..please help me..:'(..im still new in php.. i want to select a state then a branch will auto will appear if related..i only want if one state is …

Member Avatar for urtrivedi
0
1K
Member Avatar for scarcella

Hi guys, so I need to know how to add Products programtically without getting this error. Fatal error: Call to a member function getPosition() on a non-object in \app\code\core\Mage\Bundle\Model\Product\Type.php on line 854 This is my code: class TCK_Forty_CartController extends Mage_Core_Controller_Front_Action { public function addAction() { $prdId = $this->getRequest()->getParam('product'); $cart = …

Member Avatar for veedeoo
0
463
Member Avatar for davy_yg

Hello, I am trying to find a way to push the admin footer down. How? admin/access.php <button type="button" onClick="parent.location='edit_teacher_access.php'">Add Teacher</button><br><br> <h3>Teacher Access:</h3><br> <table id="admintable" border="1" cellpadding="2" cellspacing="0" width="700px"> <tr> <th>Name</th><th>Username</th><th>Password</th><th>Access Level</th> </tr> <?php $i=0; while ($data = mysql_fetch_array($result)){ $result2=($i%2)?'#DFA09D':'white'; //echo "<tr bgcolor='$result2'>"; //echo '<td>'.$data['page'].'</td>'; //echo "<td><a href='post.php?post_id=".$data['post_ID']."'><img src='../images/post.jpg'></a></td>"; //echo '</tr>'; …

Member Avatar for veedeoo
0
188
Member Avatar for davy_yg

Hello, I am trying to record a birthdate. I am looking for the right variable to do that. The only option in mysql database xampp is datetime: yyyy-mm-dd hh:mm:ss While I would like it to be: dd-mm-yyyy ? How? If I input the data dd-mm-yyyy will my database adapt to …

Member Avatar for diafol
0
233
Member Avatar for siddiquedu

This the following code for member_account.php in the member_profile.php there is a link for member_account.php, after I login then i can see all information and in the headbar it shows username,account logout home link. but whenever i click to account I can see only logout and home link (i made …

Member Avatar for siddiquedu
0
222
Member Avatar for berrykid

Hi all, i am hoping i will be able to get some quick help here. Ok i am basically building a web application where the user will be able to add,update,delete and edit fields in a database. So far i am on the Update part. I have a page called …

Member Avatar for dipalinigade
0
3K
Member Avatar for centenond

hi, im just moving all my website that i created from localhost with xampp, i created links like http://website.com/folder/ and when i was working in localhost it worked, it get the index from that folder, but now i pas it to my website and wont work like that, is only …

Member Avatar for centenond
0
247
Member Avatar for itexamstube

i want to develop my website so i want to know what programming language is the best PHP or VB.NET?

Member Avatar for rubberman
0
486
Member Avatar for malatamil

i want to display last 3 months of data. but this query is not working. it showing empty results. please some one help me. $sql8 = mysql_query("SELECT `orderlist_id`, `brandname`, `packsize`, `quantity`, `mrp`, `ourRate`, `Sum`,user_id,userName,date FROM `orderlist` WHERE `user_id`='$userid' AND `userName`='$usern' AND date=DATE(NOW()) - INTERVAL 3 MONTH"); $i=0; while($row8 = mysql_fetch_array($sql8)) …

Member Avatar for Taywin
0
263
Member Avatar for sushmaja.arumalla.9

Disabled or ReadOnly input field shows Stop symbol when mouse overs on it.How to get out of this problem.The look doesn't satisfied. Please help me how to show only cursor symbol when mouse overs on any disabled or read only input fields.

Member Avatar for almostbob
0
270
Member Avatar for hanspeare_1

Hello Daniweb,, I have uploaded an image using the student_id as its filename. The student id is auto-incremented and unique per student_id. Now i am confused why it gives me problem to display it. I have tried. <?php print '<img src="uploads/'.$session_id.'" />' ?> <?php print '<img src="uploads/'.$session_id.".".$ext'" />' ?> <?php …

Member Avatar for hanspeare_1
0
4K
Member Avatar for rjusman90

I HAVE ONE FORM IN THIS I AM INSERTING AND UPDATIONG BOTH, I WANT TO RETAIN the value of combox box when php validations occurs <td>Page Id</td> <td><select name='pageID' class="select"> <option value='0' >select any page</option> <?php $sql10 = "SELECT ID,Title FROM page"; $val=$PageId?:''; $rs = mysql_query($sql10) or die(mysql_error()); while($row = …

Member Avatar for Webville312
0
229
Member Avatar for davy_yg

Hello, url: http://localhost/elearning/administrator/admin/study_progress_table.php?study_package_id=1 Error appears: Notice: Undefined index: delete in C:\xampp\htdocs\squprime\administrator\admin\study_progress_table.php on line 96 line 96: if (!empty($_REQUEST['study_package_id']) && $_REQUEST['delete']=='yes' && isset($_REQUEST['delete'])) How to fix it?

Member Avatar for pritaeas
0
63
Member Avatar for hxinen

In reference to this: http://sqllessons.com/categories.html *Change parentid NULL to 0* Let's say I have 6 levels of subcategories. How do I have chained select dropdown based on the main category which has a 0 value under parentid, then show it's subcategoryLevel1 > SubcategoryLevel2 > and so on. Stops when there …

Member Avatar for pritaeas
0
186
Member Avatar for light_yagami

hye guys im new here. how do i want to display data from database to web page based on login ?example i already key in john as username and password as blahblahblah . so after login i want to go another page (lala.php). at lala php , i want it …

Member Avatar for Acurapassion
0
713
Member Avatar for Acurapassion

Hey guys, so here's what I'm trying to do: I've made an HTTP script in the game Second Life, it uses an application/x-www-form-urlencoded url to send information to my Php script on my website. Here's the script: <?php define('DB_NAME', 'vangua01_access_list'); define('DB_USER', 'vangua01_admin2'); define('DB_PASSWORD', 'askljflnfldsakn'); define('DB_HOST', 'localhost'); $action=$_POST['action']; if($action == 'connect') …

Member Avatar for Acurapassion
0
778
Member Avatar for infoitmanoj

1. <?php 3. /* 4. $con = mysql_connect("localhost","root",""); 5. if (!$con) 6. { 7. die('Could not connect: ' . mysql_error()); 8. } 9. mysql_select_db("nvron",$con); 10. */ 13. $con = mysql_connect("localhost","nvronusr","DBpwd!@#"); 14. if (!$con) 15. { 16. die('Could not connect: ' . mysql_error()); 17. } 19. mysql_select_db("nvron", $con); 20. $DOWNLOADPATH='C:\Users\LENOVO\Desktop'; // …

Member Avatar for dinhunzvi
0
4K
Member Avatar for centenond

hello evryone so i just finished my website, the problem is ive been creating this website on localhost with xampp and all my the database i created is in there, is any how a way to copy my tables on my ipage mysql database website? i just need tables and …

Member Avatar for centenond
0
132
Member Avatar for Keyra Lee

hi! i'm new here..my english is poor..:'( i'm doing my industrial training..i just want to ask..how to make a selection: *negeri = state * my question is by using these code.. --> how to make a state select then the branch will appear together if related? hope my english is …

Member Avatar for Keyra Lee
0
210
Member Avatar for accra

Hi, i found this code [online](http://www.macrostash.com/2011/09/17/demo-use-a-php-mysql-database-to-load-markers-on-a-google-map/#comment-2675). After installing and running code on my website, the screen shows nothing back, though code is firmly in place. <script type='text/javascript' src='jquery-1.6.2.min.js'></script> <script type='text/javascript' src='jquery-ui-1.8.14.custom.min.js'></script> <style> BODY {font-family : Verdana,Arial,Helvetica,sans-serif; color: #000000; font-size : 13px ; } #map_canvas { width:100%; height: 100%; z-index: 0; …

Member Avatar for accra
0
432
Member Avatar for kindo

Hello Pals... Help with this code...I am unable to hold Angularjs tag with Php variables $vid = "{{task.vid}}"; //this where the Errors comes in :( $s = $db->query("SELECT * FROM reply WHERE post_id_fk = '$vid'") or die($db->error.__LINE__); Please how can i go about this? Thank you!

Member Avatar for kindo
0
240
Member Avatar for everton.retweets

Hi Everyone, I am trying to write text to a image and I would like to save that image as a new file with the text in place. I have been doing some google'ing and testing but im getting confused a wee bit. The two scripts I have found both …

Member Avatar for Taywin
0
280
Member Avatar for johnef_sh

I want if the user clicks submit to return the the selected value when the form reloads that what I try and no luck <?php $getData = $db->prepare("SELECT * FROM first_university_degree_list"); if ($getData->execute()) { $res = $getData->get_result(); while ($data = $res->fetch_array()) { ?> <option value="<?php echo $data['univ_degree']; ?>" <?php if($FirstUniversityDegree …

Member Avatar for almostbob
0
204
Member Avatar for phpBeginner4

here i'm working with php regular expression. in this project my leader said use only regular expression instead of PHP predefined function. i know the PHP string functions are simple to find output. but here i need to use regular expression. this is the equivalent php function $refined_output = str_replace(' …

Member Avatar for diafol
0
425
Member Avatar for Nabeel_1

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Untitled Document</title> </head> <body> <form action="#" method="post"> UserName: <input type="text" name="username"><br /> Passward: <input type="text" name="passward"><br /> Name: <input type="text" name="name"> <input type="submit" name="Submit" value="Sent"> </form> <?php $con=mysql_connect("localhost","root","","firstphp"); if(isset($_POST['Submit'])) { $UserName = $_POST['username']; $Password …

Member Avatar for pritaeas
0
456
Member Avatar for senjoy2003

hi when i am tring to run this script then could not setup cookies don't know why somebody plz help <!doctype html> <html> <head> <title>Login</title> </head> <body> <p><a href="aba.php">Register</a> | <a href="login.php">Login</a></p> <h3>Login Form</h3> <form action="" method="POST"> Email: <input type="text" name="email"><br /> <input type="submit" value="Login" name="submit"><br /> </form> <?php if(isset($_POST["submit"])){ …

Member Avatar for pritaeas
0
114
Member Avatar for johnef_sh

I am trying to validate my form fields and redirect the user to success page so this is the PHP code if (empty($_POST['experiences'])) { $error['experiencesErr'] = "Experiences Required"; } else { $experiences = check_input($_POST['experiences']); if (!preg_match("/^[0-9_a-zA-Z ]*$/", $experiences)) { $error['experiencesErr'] = "Only letters, numbers and '_' allowed"; } } $courses …

Member Avatar for johnef_sh
0
278

The End.