39,320 Topics

Member Avatar for
Member Avatar for mark103

Hi guys I'm using the script `add_address.php` to output a list of email addresses from the `message` box to allowed me to split the email addresses to add to each comma. I want to output the email addresses from the `message` box to the `text` box in the `send.php` script …

Member Avatar for DaveAmour
0
200
Member Avatar for Deidredup

I am looking for a script which will allow me to place a vbulletin login box on a non vbulletin page. There are couple of scripts, but they are for older versions. I am using v3.6.8 Does anyone know where to find one for 3.6.8? The closest I could find …

Member Avatar for Fadli_1
0
3K
Member Avatar for phoenix254
Member Avatar for phoenix254
0
100
Member Avatar for terryds

I have a PostMapper class like the one in http://www.sitepoint.com/integrating-the-data-mappers/ But, I modified the find method, so it can have more parameters (I want to paginate the data, so I added the limit parameter) public function find(array $columns = array('*'), array $where = array(), $offset=0, $limit=5, $orderBy=null) { $sql = …

0
78
Member Avatar for ramsiva

my index page <script type="text/javascript"> $(document).ready(function(){ $("#first_name").blur(function() { var first_name = $('#first_name').val(); var fathermobile = $('#fathermobile').val(); if(first_name=="") { $("#disp").html(""); } else { $.ajax({ type: "POST", url: "detail.php", data: 'first_name='+ first_name +'fathermobile='+fathermobile, success: function(html){ $("#disp").html(html); } }); return false; } }); }); and my detail.php <?php include("include/connect.php"); if(isset($_POST['first_name']) && isset($_POST['fathermobile']) ) …

Member Avatar for ramsiva
0
246
Member Avatar for raul2329

Warning: require_once(EzOptions.php): failed to open stream: No such file or directory in /home/u206897974/public_html/wp-content/plugins/easy-adsense-lite/easy-adsense-lite.php on line 38 Fatal error: require_once(): Failed opening required 'EzOptions.php' (include_path='.:/usr/lib/php') in /home/u206897974/public_html/wp-content/plugins/easy-adsense-lite/easy-adsense-lite.php on line 38

Member Avatar for edbr
0
140
Member Avatar for v1shwa

Hi, I don't know if there is some name for this but what I want to create a script in php which runs in the background and capable of sending and receiving messages. This is what I want to do exactly: 1. Listen to a URL http://site1.com through xmpp protocol. …

Member Avatar for jkon
0
366
Member Avatar for shashigowda

<?php session_start(); <?php session_start(); require('connect.php'); if(isset($_SESSION['username'])) { $dir="image/"; $file_name=$dir.basename($_FILES['uploads']['name']); $fileUpload=1; $imageType=pathinfo($file_name,PATHINFO_EXTENSION); $image= addslashes(file_get_contents($_FILES['uploads']['tmp_name'])); $image_name = addslashes($_FILES['uploads']['name']); $image_size = getimagesize($_FILES['uploads']['tmp_name']); if(move_uploaded_file($_FILES['uploads']['tmp_name'], $file_name)) { echo "uploaded succesfully" ; echo "<img src='$file_name' width='50px' height='50px'>"; $querry="SELECT image FROM users WHERE username='$username'" or die(mysql_error()); $result=mysql_query($querry) or die(mysql_error()); $row=mysql_fetch_assoc($result) or die(mysql_error()); $oldimage=$row['image']; unlink('directory/image/'.$oldimage); /* $deleter = …

Member Avatar for shashigowda
1
9K
Member Avatar for Stephen_9

This is my code $result = msqli_query($this->db,$sql1) or die(mysqli_connect_errno()."Data cannot inserted"); this is the error message Parse error: syntax error, unexpected '$result' (T_VARIABLE) in C:\xampp\htdocs\project\class.user.php on line 25

Member Avatar for lps
0
73
Member Avatar for Pythogeek

Hi, I have problem , the same number of comments that appears in all items this is my code : <?php $requete = $bdd->query('SELECT COUNT(c.id_commentaire) AS total FROM commentaire c INNER JOIN pytho_blog a ON a.id = c.id_article '); while($data=$requete->fetch()) { echo $data['total']; } ?> Thank you for your help …

Member Avatar for Pythogeek
0
76
Member Avatar for anmol.raghuvanshi1

<?php $host = 'localhost'; $user = 'root'; $pass = '******'; $db = 'test'; $error = 'Error Connecting to database'; $error1 = 'Error Selecting to database'; $connect = mysql_connect($host,$user,$pass) or die($error); $select_db = mysql_select_db($db) or die($error1); ?> <table border="1px"> <tr> <div class="differentLine"> <th >&nbsp;</th> <th > 9:15 - 10:15 </th> <th …

Member Avatar for lps
0
244
Member Avatar for gangachana

I need to read the span value and insert into database in php <span class="GrandTotal">0.00</span>

Member Avatar for mattster
0
2K
Member Avatar for MarkDbro

Hey Im making an online store and cant figure out the section on inserting data into a table (in this case its inserting customer details into a customer table). Its the VALUES line that is displaying the error: mysql_query() expects parameter 1 to be string, resource given. I have looked …

Member Avatar for Szabi Zsoldos
0
988
Member Avatar for janicemurby

Hi im getting this error on inobox.php any ideas please Warning: implode(): Invalid arguments passed in /home/jktempla/public_html/SCRIPTS/DATINGSCRIPT/inbox.php on line 199 <?php // Fetch user random for display on bottom <THIS LINE>$idtopuid = implode(',', $topuid);<THIS LINE> <THIS> $userquery = mysql_query("select * from user where user_id != '".$_SESSION['userid']."' and user_id NOT IN …

Member Avatar for janicemurby
0
358
Member Avatar for spud91

Hi guys! I have a database which holds a table called users. in there i have a balance column which contains a numeric value. I have the following code and for some reason it doesnt work: <?php session_start(); include_once("config.php"); ?> <!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Search</title> …

Member Avatar for jj.dcruz
0
261
Member Avatar for bolfescu

hy im using this script but unf cant find the bug related to update the values, its keep telling succesuful update but dsnt update in db...[Click Here](http://www.script-tutorials.com/datatables-data-from-ajax-edit-in-place/)

Member Avatar for bolfescu
0
217
Member Avatar for Makara

Hello pals. I have a code here that is updating only the last column of my sql database table. how can I upgrade it to work for the rest upper rows please. my code is as follows <?php error_reporting (0); // Connect to server and select databse. $mysql_hostname = "localhost"; …

Member Avatar for Makara
0
2K
Member Avatar for AntonyRayan

Hi , In a form , I have a field for image , in edit page, i can display that image, when I am clicking update, without modifying image it shows error in image. How to save previous image if its not changed. Sample Code: <span><img src="profile/<?=$rows["upload"]; ?>" id="blah" style="height:25%; …

Member Avatar for alisajjad160
0
190
Member Avatar for chaitu11

My Model : admin_login_model.php Unable to view them in browser as shown in the image below http://i.stack.imgur.com/fychj.png i am working on CodeIgniter version 3 Can anyone tell me what is the issue if ($email === $admin_email && $password = $password) { echo 'credential match'; $this->load->helper('cookie'); if ($remember_me == '1') { …

Member Avatar for alisajjad160
0
296
Member Avatar for Venus_1

i have a query that retrieves let's say 10 records. the output should be 10 pdf files. so 1 pdf per records. it can be saved on user's computer. im using fpdf by the way. just wondering if i'm going to develop it through web using PHP will it be …

Member Avatar for Venus_1
0
259
Member Avatar for habib rahman
Member Avatar for phoenix254

i am trying to create a site, when user create his account then make automatic his directory with his name. when he wants to upload his photos, these photos go automatic in his folder or directory. im my register page i have added these lines: $addtothedb="INSERT INTO login (firstname,lastname,useremail,password,Gender,Dateofbirth) VALUES …

Member Avatar for phoenix254
0
528
Member Avatar for R0bb0b

Hello. Quick question. I have several thousand emails pulled in from several email boxes throuph php imap and I need to search each subject with an array of search terms which returns a bitmask, one bit for each index of the array. 1 = found, 0 = not found. So, …

Member Avatar for diafol
0
157
Member Avatar for Themby

I have managed to assign privileges to an administrator and customer. My problem now is how to assign another user the privilege of seeing administror's posts?

Member Avatar for diafol
0
99
Member Avatar for uchejava

I have a html select list where one can chose an option. <select name='price' id='price'> <option value='' >Select....</option> <option value='0-50,000'>0-50,000</option> <option value='50,000-100,000'>50,000-100,000</option> <option value='100,000-150,000'>100,000-150,000</option> <option value='150,000-200,000'>150,000-200,000</option> <option value='200,000 and above'>200,000 and above</option> <option value='see all'>See All</option> </select> When this list is submitted via a html submit button, this list shows …

Member Avatar for Szabi Zsoldos
0
266
Member Avatar for Heanre

how to check if the database is empty? my point is that the first person will be the administrator. here is my code $query="SELECT staffID,name,surname,email FROM stafftable"; $do=$con->prepare($query); $do->execute(); $record=$do->rowCount(); if($record>0): is there a much better option for this?. thanks

Member Avatar for almostbob
1
149
Member Avatar for Nimerion

Hey guys, I am trying to use the **Google Calendar API** within a **php webpage** to display personal calendar events for each user. I made it displaying the events, but I'm stuck on displaying the Event Colors for every event. I was looking around the internet for two days now, …

Member Avatar for Nimerion
0
2K
Member Avatar for sam230

http://api.ean.com/ean-services/rs/hotel/v3/list?minorRev=4&cid=55505&apiKey=5q4gzx43g6ukcrq798z2hz75&customerSessionId=&locale=en_US&currencyCode=USD&xml=<HotelListRequest><city>new%20delhi</city><RoomGroup><Room><numberOfAdults>2</numberOfAdults><numberOfResults></numberOfResults></Room></RoomGroup></HotelListRequest> when i call api directly to browser i got right data in xml format. but when i call it through curl.. sometime i get data in json format or sometimes no data.. [CODE] $ch = curl_init(); curl_setopt($ch, CURLOPT_URL,"http://api.ean.com/ean-services/rs/hotel/v3/list?minorRev=4&cid=55505&apiKey=5q4gzx43g6ukcrq798z2hz75&customerSessionId=&locale=en_US&currencyCode=USD&xml=<HotelListRequest><city>new%20delhi</city><RoomGroup><Room><numberOfAdults>2</numberOfAdults><numberOfResults></numberOfResults></Room></RoomGroup></HotelListRequest>"); curl_setopt($ch, CURLOPT_FAILONERROR,1); curl_setopt($ch, CURLOPT_FOLLOWLOCATION,1); curl_setopt($ch, CURLOPT_RETURNTRANSFER,1); curl_setopt($ch, CURLOPT_TIMEOUT, 15); $retValue = …

Member Avatar for Terrymol
0
919
Member Avatar for ramsiva

my firstvariable is and second variable is $one=07:54:PM; $two=07:55:AM; I am suffering from getting difference in munutes any body help me result in minutes.

Member Avatar for DaveAmour
0
155
Member Avatar for uchejava

I am trying to save 2 photos to my MySQL database. I can only see one of the 2 photos in the database (i.e. its name) but I see the 2 photos in the folder I store my photos. ( A picture of how the database looks like is attached.) …

Member Avatar for amith_ami
0
203

The End.