39,326 Topics

Member Avatar for
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
462
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
187
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
231
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
220
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
484
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
260
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
266
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
227
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
62
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
184
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
709
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
775
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
131
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
208
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
430
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
237
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
278
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
202
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
416
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
454
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
111
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
276
Member Avatar for davy_yg

Hallo, I am trying to understand the nature of using ini_set : ini_set("SMTP", "smtp.indonusa.net.id"); So if I delete the: SMTP = smtp.indonusa.net.id, will it works? Is it the same thing like writing that code to php.ini? php.ini SMTP = smtp.indonusa.net.id Thanks.

Member Avatar for cereal
0
78
Member Avatar for ronaldpaul

Hi, I've done my bachelors in Computer Science and was working for the past 2 and a half years in PHP and MySQL. Now I'm planning to change my career path to IBM Websphere Administration. However, changing directly from PHP to Websphere seems quite impossible. So I've planned to take …

Member Avatar for jwenting
0
1K
Member Avatar for ebanbury

Hi All I have created a simple php rss feed with works fine. However what I would really like is for the rss feed to dynamically change based on a search form. i.e. User searches for all properties for Rent, of Apartment type only, clicks on the rss icon which …

Member Avatar for guruparthi
0
1K
Member Avatar for mathiaslisborg.jakobsen

one who can solve this php code ^ echo "<option><?php echo htmlspecialchars( $Player[ 'Name' ] ); ?></option>"; ^ And the error on the page http://gyazo.com/aaf5d029a1da9d52ea3341dd01e55960

Member Avatar for Mocabilly
0
357

The End.