39,402 Topics

Member Avatar for
Member Avatar for Catweazle

Can the database of a phpBB forum be transferred across to run under vBulletin, without losing memberlists, post history and so forth?

Member Avatar for lizapritz
0
560
Member Avatar for tqmd1

Sir I have following codes <?php // Connection variables $host = "localhost"; $username = "root"; $password = ""; $db_name = "phonebook"; $con = mysql_connect($host, $username, $password, $db_name); if (!$con) { echo ('<script type="text/javascript">alert("Error Connecting to database")' . mysql_connect_error($con) . '</script>'); } $result = ""; $username = ""; $password = ""; …

Member Avatar for TheBludger
0
242
Member Avatar for damle1

I want to search data base by input date given by user in php my sql How to do it? Regards

Member Avatar for minitauros
0
85
Member Avatar for ryantroop

While it may certainly seem "lazy" I spend a large portion of my time in javascript and I like the syntax for arrays. I cant seem to figure out if I can "prototype" the array "object" and give it methods that simply returns the appropriate function: i.e. $aMyArr = array(); …

Member Avatar for pritaeas
0
457
Member Avatar for kumar89hitesh

How to send email from localhost in php? i have also configured php ini file and send email file but i have the error when i run this program--- Warning: mail() [function.mail]: SMTP server response: 530 5.7.0 Must issue a STARTTLS command first. sy10sm34464318pac.15 - gsmtp in C:\xampp\htdocs\reena\mail.php on line …

Member Avatar for diafol
0
181
Member Avatar for timetraveller1992

I am trying to write a multiline string into a text file but it does not appear as multi-line text. Here's my code $hostname = "localhost"; $username = "root"; $password = "sample"; $dbname = "code"; $code = <<< THECODE ; This is the main configuration file for your web app …

Member Avatar for Lsmjudoka
0
260
Member Avatar for damle1

Hi I am new to PHP I want to create drop down list in form where user can type any other thing if he does not wish to select from drop down. Pl Help Dr Damle

Member Avatar for Gaetane
0
195
Member Avatar for jagdish1

Hi , I want to create search field as same like google search but not using API its using database. When i typpe 'R' in input field related to 'R' country name should show in dropdown brom database using php , ajax . Please can you send me the source …

Member Avatar for cereal
0
71
Member Avatar for tqmd1

Sir, I am using these codes <?php if(isset($_POST['login'])){ require_once("connect.php"); session_start(); // username and password sent from Form $myusername=addslashes($_POST['username']); $mypassword=addslashes($_POST['password']); if(empty($myusername) || empty($mypassword)) { echo '<script>alert("User name and password must not be empty")</script>'; }else{ $query="SELECT name FROM admin WHERE mobile='".$myusername."' and password='".$mypassword. "'"; $result=mysql_query($query); if(!$result) { echo "<script>alert('username, password query is …

Member Avatar for pritaeas
0
159
Member Avatar for rrajeswari03

i want to upload multiple image in php.am getting image path like (image.jpg,image2.jpg,etc..).it is possible to split the path and upload each file to folder...can anyone help me with code.

Member Avatar for rrajeswari03
0
105
Member Avatar for jacob21

I am using below query for fetching result using union of two tables. I am trying to get total number of records after union of two tables Need Suggestions. ` SELECT a.* FROM svn_headline a where a.newstypeid=2 UNION SELECT b.* FROM svn_crimenews b where b.newstypeid=2 order by newsdatetime desc SELECT …

Member Avatar for pritaeas
0
102
Member Avatar for nurul_1

Hi,please help me. I have a textbox called txtUsername, also have one called txtEmpID. what im looking for is a simple way for txtempid can get updated automattically based one what i type in txtusername. Thank you

Member Avatar for nurul_1
0
309
Member Avatar for hallianonline

Hello i have a simple question and i need a simple solution I have a javascript file named a pricing.js which contains this content in it var price_arr = new Array('&#36; 16.95','&#36; 30.95','&#36; 49.95','&#36; 70.95','&#36; 99.95','&#36; 109.95','&#36; 139.95','&#36; 155.95','&#36; 199.95','&#36; 460.95'); but i want to to update this part of …

Member Avatar for diafol
0
199
Member Avatar for Stefce

Hello since cereal helped me out with the price and counting in PHP i need just one more thing, to get the names of the products i have tryed different ways to do it by my self but i just cant cause im begginer with PHP language, i have this …

Member Avatar for diafol
0
274
Member Avatar for nurul_1

Hi, please help me. I want to generate graph based on my data in database. User can pick the date or month or year then the graph will be generate.

Member Avatar for diafol
0
54
Member Avatar for nuno.freitas.meneses.monteiro

Hello guys, I am doing a Friend system on my website, and I did the friend request, to accept, but the friends list isn't alright in some part of code because it isn't take the correct id, anyone can help me? 1. <?php 2. 3. $users = $_SESSION['username']; 4. 5. …

Member Avatar for nuno.freitas.meneses.monteiro
0
326
Member Avatar for Stefce

Hello, i'm new in PHP so i dont know much about it so ill need a little help with this "eazy" problem. I need to calculate the total price of the items on every "checkbox" check. here is my code: <?php $mikrobranova = 3999; $smasina = 4999; $amasina = 9999; …

Member Avatar for Stefce
0
8K
Member Avatar for davy_yg

What's wrong with this code: <?php include('include/con_database.php'); $result2 = mysql_query("SELECT * FROM banner ORDER BY DESC"); while ($data2 = mysql_fetch_array($result2)){ echo '<td>'.$data2['images'].'</td>'.'<br>'; } ?> Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in E:\xampp\xampp\htdocs\IndonusaCMS\index.php on line 39 Line 39: while ($data2 = mysql_fetch_array($result2)){

Member Avatar for rpv_sen
0
128
Member Avatar for Udeme_1

please am new to database management but the question i have a form for my input by new users but i want to get the user name and password from the form to create new priveleges to the database so that when the user log-in the next time his username …

Member Avatar for pritaeas
0
130
Member Avatar for davy_yg

( ! ) Parse error: syntax error, unexpected $end in E:\wamp\www\IndonusaCMS\admin\index.php on line 544 IndonusaCMS/admin/index.php ?> </div> </div> </body> </html> <? } ?> Line 544 is the last blank line. What should I do to fix the error?

Member Avatar for davy_yg
0
55
Member Avatar for mwenyenia07

//CODE to handle uploads function do_upload($data) { $objResponse = new xajaxResponse(); $config['upload_path'] = './photos/'; $config['allowed_types'] = 'gif|jpg|png'; $config['max_size'] = '100'; $config['max_width'] = '1030'; $config['max_height'] = '773'; $this->load->library('upload', $config); if ( ! $this->upload->do_upload($data['userfile'])) { $error = array('error' => $this->upload->display_errors()); //$objResponse->Assign("ajax_div", "innerHTML",$this->upload->display_errors()); $objResponse->Assign("ajax_div", "innerHTML",$this->upload->display_errors()); } else { $data = array('upload_data' => $this->upload->data()); …

0
76
Member Avatar for EmilyJohnson

Hello All, I am getting error "*You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1*" on running my php script. My SQL Syntex is: $query = "SELECT (movie_name,movie_year,movie_director,movie_leadactor,movie_type,movie_running_time,movie_cost,movie_takings) FROM movie …

Member Avatar for EmilyJohnson
0
302
Member Avatar for nadiam

<table width="700" border="1" bordercolor="#FFFFFF" bgcolor="#000000"> <tr bgcolor="#FFFF66"> <td height="28" colspan="3" align="center"><strong> My Blood Pressure Data</strong></td> </tr> <tr bgcolor="#FFFFFF"> <td>Date:</td> <td>:</td> <td><?php echo $row["date"];?></td> </tr> <tr bordercolor="#FFFFFF" bgcolor="#FFFFFF"> <td width="170">Select a time(12Hours)</td> <td width="3">:</td> <td><?php echo $row["time"]; ?></td> </tr> <tr bordercolor="#FFFFFF" bgcolor="#FFFFFF"> <td>Systolic mm Hg</td> <td>:</td> <td><?php echo $row["systolic"]; ?> </td> …

Member Avatar for PsychicTide
0
284
Member Avatar for bestnone

this is my selection option database from "lecturer" table from subjects No. subject credit_hour capacity 1 (111) AAA 3 20 2 (222) BBB 4 10 3 (333) CCC 3 30 This is my option which is displaying the option using ajax which is testing1.php <?php $conn = mysql_connect('localhost','root','password'); mysql_select_db('lecturer'); if …

Member Avatar for diafol
0
210
Member Avatar for Izzah_1

hey guys so im doing a really simple sign up form but its not working. maybe im doing smtg wrong. form: <form method="post" action="PersonalDetails_Process.php"><!--link to DB--> <br> <h1><center>PERSONAL DETAILS</center></h1> <br> <br> <label>Name <span class="small">Add your name</span> </label> <input type="text" name="name" id="name" required /> <label>Phone <span class="small">Add your phone</span> </label> <input …

Member Avatar for zouhair.kasmi
0
236
Member Avatar for patk570

Hello everyone, I have a code to display images in a table for a specific ticket. I am needing the table to be 4 columns wide then repeat until there is no more images to show. Here is my code: <?php $folder = "images/ticket_images/".$_REQUEST['ticketid']."/"; $filetype = '*.*'; $files = glob($folder.$filetype); …

Member Avatar for patk570
0
180
Member Avatar for Giedrius_1

Hi, I've been recently trying to create a language change script. Everything goes smoooth but there are several complexed places inside the page that needs some advanced php code. So the main problem is: I do not know how to make a variable from main page work in array. $eng …

Member Avatar for broj1
0
217
Member Avatar for bestnone

this is my table subjects in lecturer database No subject credit_hour 1 (111) AAA 4 2 (222) BBB 3 3 (222) CCC 4 4 (333) DDD 3 this is my testing1.php <?php $conn = mysql_connect('localhost','root','password'); mysql_select_db('lecturer'); if (mysqli_connect_errno()) { echo "Failed to connect to MySQL: " . mysqli_connect_error(); } ?> …

Member Avatar for bestnone
0
132
Member Avatar for tony75

Hi I would like my markup look like this demo bu I got wrong!!! I will be grateful for your help http://puu.sh/5tYXV.jpg This is my php code. <div id="container" style="text-align: center"> <header style="text-align: center">Header</header> <nav>nav</nav> <aside>aside</aside> <section id="content"> section id="content" <br> <article >article</article> <br> <article>article</article> <br> <article>article</article> <br> </section> <footer>footer</footer> …

Member Avatar for ingolfsson
0
157
Member Avatar for Undefined123

Hi, I'm developing a social service and I have a question about how user info should be loaded. Let's assume a user clicks on an image, and I show him all of the comments. I need to know which comments the user liked. I was thinking that instead of loading …

Member Avatar for Dani
0
137
Member Avatar for PF2G

Hi, I have a list of news that i'm getting from the DataBase: do{ $content.='<div id="square_news">'; $content.='<div id="news_banner">'; $content.='<img src="'.$SelectAllNews['ImagemNoticia'].'" />'; $content.='</div>'; $content.='<div id="square_news_title">'; $content.='<div class="news_title_h2"> '; $content.='<h2>'; $content.='<a href="news.php?news='.$SelectAllNews['IdNoticia'].'">'.$SelectAllNews['TituloNoticia'].'</a>'; $content.='</h2>'; $content.='</div>'; /************SHARE FACEBOOK************/ $title=urlencode($news['TituloNoticia']); $url=urlencode('http://mywebsite.com/news.php?news='.$news['IdNoticia']); $summary=urlencode(strip_tags($news['TextoNoticia'])); $image=urlencode('http://mywebsite.com/'.$news['ImagemSmallNoticia']); ?> <a href="http://www.facebook.com/sharer/sharer.php?s=100&p%5Btitle%5D=<?php echo $title ?>&p%5Bsummary%5D=<?php echo $summary ?>.&p%5Burl%5D=<?php echo $url ?>&p%5Bimages%5D%5B0%5D=<?php …

Member Avatar for diafol
0
622
Member Avatar for nadiam

Hi, so im doing my final year project for college and im thinking off adding a function whereby if it has reached the end of the month the system will send an automated email to a user as a reminder. is that possible? i mean coz im just using xampp, …

Member Avatar for diafol
0
170
Member Avatar for davidjennings

Hi I am having a problem with the user ID being set, resulting in not deleting the chosen record. This is the data being passed in the url from view.php - delete.php http://localhost/crud/delete.php?91 . I have put in an if statement to check if the UserID is set and it …

Member Avatar for davidjennings
0
263
Member Avatar for adebayo.sas

1. Please how can select Assigned Court so that the Assigned Judge and his Court Location should be auto selected...What I was able to do is just for Assigned court and Assigned Judge..Please I need help to capture the three. This can be found on the Second ICON after login...Add …

Member Avatar for adebayo.sas
0
627
Member Avatar for adebayo.sas

1. Please how can select Assigned Court so that the Assigned Judge and his Court Location should be auto selected...What I was able to do is just for Assigned court and Assigned Judge..Please I need help to capture the three. This can be found on the Second ICON after login...Add …

Member Avatar for pritaeas
0
245
Member Avatar for TIM_M_91

OK so I have already created many pages with my paging all working correctly however I have just created a new paging page that allows the user to use a search criteria. With the paging and search when you click on page 2 it dosen't load and dosen't display any …

Member Avatar for diafol
0
227
Member Avatar for Iikeloa

Hi <form action="check.php" method="POST"> <input type="text" name="keywords" /><br /> <input type="submit" value="Save The Keywords" /> </form> I need the keywords to be links for example : when the member put : php,mysql it should turn like this in the database : <a href="#">php</a> <a href="#">mysql</a> so when I query the …

Member Avatar for diafol
0
253
Member Avatar for Gaetane

This started out as `I love PHP traits! I'm going to use them everywhere! ^_^` and now it has turned into a `Thought Exercise / Learning Experience >_<`. Consider the following example: trait TheErrorOfYourWays{ public function booboo(){ echo 'You had a booboo :('; } } trait SpectacularStuff1 { use TheErrorOfYourWays; …

Member Avatar for Gaetane
2
2K
Member Avatar for MaddTechwf

I'm writing my first Wordpress plugin and I'm trying to reference the root directory of my plugin. I'm trying to save a PDF file to a folder in my plugin folder. I did some googling and found getcwd() which returned my server path but it took me into the wp-admin …

Member Avatar for diafol
0
161
Member Avatar for mrhankey

hi, i need a way to allow my users to replace placeholders with data from my recordset in mysql. situation is: 1. the create a letter and have keywords defined from my recordset columns such as {Name}, {DOB}, {Email} and so on. 2. currently i can generate the ltter but …

Member Avatar for mrhankey
0
188
Member Avatar for mrhankey

Hi does any of you guys know a free way to sync outlook contacts, emails, tasks etc with my php mysql web application? Thanks

0
98
Member Avatar for danishbacker

can any one tell me how to change the maximum file upload size? upload_max_filesize i got `ini_set('max_upload_filesize', 8388608);` for setting it to 8M but i need to know where to change it, I mean where is the php.ini file is located in my remote folder! i also tried to edit …

Member Avatar for sftranna
0
180
Member Avatar for griselndria

Hello everybody. I need some help because i am new on php, I have this code below and i want smth to know: When a user create new account member on the code below,i want that this row of accont member will be added on database. give me sm help. …

Member Avatar for griselndria
0
166
Member Avatar for patk570

Hello everyone, I am looking for a banner/slider for both images and text. I want to be able to display 3 articles that are attached to the blog I am making and have them rotate, Here is an image of where the content will go. ![47dd24c076f663f88f6d78c35f640cc9](/attachments/small/3/47dd24c076f663f88f6d78c35f640cc9.PNG "align-left") I would like …

Member Avatar for patk570
0
394
Member Avatar for geremyh

I have a webpage using two drop down menus to select the inside color and the outside color of my product. link to site [Click Here](http://bit.ly/1blbbcU) When the inside color is chosen the correct image is displayed but when I choose from the outside color drop down the other image …

Member Avatar for diafol
0
150
Member Avatar for ITHope

so i decided to brush back up on my skills in html and i wanted to create website that has a login page for members and administrators or for new members to sign up i see php is the new thing. I have created the actual homepage and the links …

Member Avatar for baig123
0
928
Member Avatar for yavindu

How to disable showing e_notices in xampp.Which coding part I have to change in following code.I want to disable e notices only not all errors. error_reporting ;Default Value: E_ALL & ~E_NOTICE & ~E_STRICT & ~E_DEPRECATED ;Development Value: E_ALL ;Production Value: E_ALL & ~E_DEPRECATED & ~E_STRICT Thanks

Member Avatar for diafol
0
111
Member Avatar for GeeksPerHr.com

Hello Everyone This is Nitu from GeeksPerHr.com - we provide dedicated developers to web design companies in US, UK, Canada, Australia. Trial is for just 99 cents per hr :) - yes you read it right - ha ha Look forward to talking to you all guys Regards Nitu http://www.GeeksPerHr.com

Member Avatar for JorgeM
0
185
Member Avatar for diafol

Having just found 'traits' - see http://www.daniweb.com/web-development/php/threads/468928/php-trait-method-conflicts-trait-inheritance#post2043565 I was wondering whether they could be used to share a DB connection object across disparate classes, or would the old singleton or dependency injection methods still be the way to go? I'd value any views on this.

Member Avatar for diafol
2
720
Member Avatar for AAAA23

Hi , Using my search_page.php, I want to know how to search from diffrerent online libraries,databases and websites. How to creat a form to search from Online medical libraries,for example.I use Wordpress as CMS for my website. Any ideas or suggestions are appreciated.

Member Avatar for AAAA23
0
127

The End.