39,323 Topics
| |
Fatal error: Call to a member function query() on a non-object in C:\wamp\www\socials\chapter11\registry\mysqldb.class.php on line 240 here is the code: [CODE] <?php /** * Database management / access class: basic abstraction * * @author Michael Peacock * @version 1.0 */ class Mysqldb { /** * Allows multiple database connections * … | |
Earn Extra money from your home by doing ad posting jobs with Virtual online Jobs. 101% guarantee of income of your work. Earn per ad post you did. For More info and advertise your website visit: [url]http://adf.ly/2yWrC[/url] | |
Since this is only one customer, how can I carry this $total from the submit button to the next page for INSERT into database punches page [CODE] <p>Is this the correct total of punches?</P> <form action="run_punches.php" method="post" > <?php $small = $_REQUEST['smallamount']; $medium = $_REQUEST['mediumamount']; $large = $_REQUEST['largeamount']; $total = … | |
i wanna create news page in my project & i have to many newsletters for showing but i wanna show the certain numbers of newsletters in each page for example in each page i want to show 4 number of them. nevertheless i wanna create <next> page numbers <previous> for … | |
Hi fellas i am in desperate need of fototrix or photofunia type of script i have already googled many thing but couldnt real one which could solve my problem..Help Pls.. | |
I am trying to set up a form for potential students to give their information for a language academay. When I tested the form with <input type="text" name"Nombre"> type of fields everything went fine. As soon as I tried to introduced drop down menus or typ radio elements the data … | |
hello, I am trying to learn to create a login and log out profile. I am fairly new to php and web coding in general. I know the basics. I found a tutorial that logs you into a profile and then logs you out. I want to be able to … | |
Hi guys i'm new to PHP, I have been doing a simple login system using php, and now I'm face with this error "Could not select database because Access denied for user ''@'localhost' to database 'loginsystem'" anyone knows how to fix this? | |
hi everyone... not sure if this belongs here or in the javascript section as it uses both js and php? move it if needed. anyway....i have a script that pulls the faq results from my database and shows them in order of categorie. what im trying to do is use … | |
[url]http://uom-leos.blogspot.com/[/url] This has facebook comment boxes under every post.When Some one comment on one chat box or post,it duplicates to other chat boxes too.duplicate comments on every post.help! how should i edit the page? | |
Hi, I'm trying to built / link 3 drop down menu's: but I can't seem to get the 3rd drop down menu, and the answer below to work right. can someone please offer some guidance? [CODE]<body> <?php $p=$_GET["p"]; $q=$_GET["q"]; ?><br> <select onchange="window.open(this.options[this.selectedIndex].value,'_top')"> <option >Select Your Topic</option> <option value="?p=1" <? if($p==1){ … | |
Hi all... Am hoping someone can show me what I have done wrong here. I had a form with two select lists and one set of checkboxes that needed to get completed.. all well and good and it worked fine but I have eveolved the system and added a condition … | |
In the ZEND Reference Guide I saw this: [CODE]$select = $db->select()->from('posts')->order('date_created DESC');[/CODE] Now I'm wondering: what does that second arrow do? What does using more than one arrow when working with an object do? And can I use it all the times? For example [CODE]$myclass->function()->anotherfunction()->hello;[/CODE]? | |
hi how can i include a range of numbered files like file1.php,file2.php,file4.php i have tried this code but it didn't work [CODE]<?php foreach (range(0, 7) as $fileno) { include "files/file" + $fileno + ".php";}?>[/CODE] | |
How do we validate URL either with PHP/javascript? could u help me?for example, whether input text is in the format [URL="http://www.google.com/"]http://www.google.com[/URL] or not? | |
Hi, i wanna select some details from db and i wrote select query and i punted it in the while but, i wanna show the details in the columns instead of rows is there any body to help me ???? [CODE]$brush_price = 5; $counter = 10; echo "<table border=\"1\" align=\"center\">"; … | |
I want to make a linkpage where visitors can enter their webpage (title-url-description) and there are a few downloadable scripts around, but all I have found are for reciprocal linking. Does anybody have a simple php script for this purpose? | |
Hi all, I have two select field in a form.first one is "Zone" and the second one is "District".now what I want is that when I will select a zone from the first select field then only the destrict of the selected zone will be appeared in the second select … | |
Hi all, I'm trying to insert an array (which I've decoded from a JSON object) into a mysql database (for the first time!) and keep coming back with a "Could not connect - Column count doesn't match value count at row 1" error message. My server and database connections are … | |
[CODE] <?php echo $header; ?> <script type="text/javascript" src="view/javascript/ckeditor.js"></script> <p> </p> <p> </p> <p> </p> <div id="content"> <div class="breadcrumb"> <?php foreach ($breadcrumbs as $breadcrumb) { ?> <?php echo $breadcrumb['separator']; ?><a href="<?php echo $breadcrumb['href']; ?>"><?php echo $breadcrumb['text']; ?></a> <?php } ?> </div> <?php if ($error_warning) { ?> <div class="warning"><?php echo $error_warning; ?></div> <?php } ?> … | |
[code=php] <?php include("C:/xampp/htdocs/mySalon/connect_database.php");?> <?php if(isset ($_POST ['username']) && $_POST ['password']){ $username = $_POST['username']; $password=$_POST['password']; $query=mysql_query("SELECT * FROM admin WHERE username='$username'"); $numrows=mysql_num_rows($query); if ($numrows!=0) { while ($row=mysql_fetch_assoc($query)) { $dbusername=$row['username']; $dbpassword=$row['password']; } //check to see if they match! if ($username==$dbusername&& md5 ($password)==$dbpassword) { header ('Location: http://localhost/mySalon/admin/admin_page.php'); $_SESSION['username'] = $username; } else echo … | |
Hi This is just a straight-forward dynamic field, but I still can't seem to get it to stay sticky....I have tried all kinds of things, including [CODE]if (!empty($add_area)) echo......[/CODE] or equivalent fieldnames... Any help would be really appreciated...many thanks [CODE] <label for="add_area"></label> <select name="add_area" id="add_area"> <?php do { ?> <option … | |
Hi everyone, looking for some advice please. I had a mkdir working great on a shared hosting account I had, I have since moved from a shared hosting account to a virtual dedicated server, now the mkdir is not working as previous. Before i moved server is was using a … | |
I'm completely stumped and going cross-eyed. I'm trying to add a second field for "bio" to edit in this script, but it doesn't work. It pulls the information from the database fine, and the bio field in the DB is a varchar field, not numeric. When I submit the changes, … | |
Hi. I'm currently trying to make a comment system. It works great, 'cept, if the user writes </html> or... any other html tag that doesn't close. Now, my initial idea was to convert string, i.e: space(' ', 32) -> &lpsb;, \n -> <br />. For that, I made an array, … | |
Hello, I am using fancy upload in my application. I easily integrate fancyupload in my page as per advised in the fancyupload website. When i get response after uploading the file on server, i want to append the filename of uploaded file in multiple selectboxes in my page. I found … | |
Hi! I'm start learn php and i have few problems what i can't fix it. Before i say what is my problem, YES i have search for my problem in google and other. So my question is how to make 1)table with few data column and after few column i … | |
I want to know that wheather php is good or java for web apllication development? | |
I have php code running fine from the server. but if i use any mysql functions e.g. [CODE]mysql_connect()[/CODE], the server does not render the page. it keeps on "waiting for localhost...". what could be the problem. | |
[CODE]if(isset($_POST['addreservation']) and $_POST['addreservation'] == 'Add'){ include $_SERVER['DOCUMENT_ROOT'] . '/TattooSite/include/db.inc.php'; $username=$_SESSION['username']; //Geting the id of loggedin client $result=mysqli_query($link, "SELECT id FROM client_tbl WHERE user_name='$username' "); if(!$result){ $error='Error identifying user ' . mysqli_error($link); include $_SERVER['DOCUMENT_ROOT'] . '/TattooSite/include/error.html.php'; exit(); } $row=mysqli_fetch_array($result); $clientid=$row['id']; //Geting the values generated in reservation form $id=mysqli_real_escape_string($link, $_POST['id']); $tattoo=mysqli_real_escape_string($link, $_POST['tattoo']); … |
The End.