39,388 Topics

Member Avatar for
Member Avatar for aMOEBa

Hey guys I am scripting with PHP and I need to write a web page that has a print page link which when clicked prints out a print friendly page. Thanx in advance.

Member Avatar for geoamins2
0
221
Member Avatar for annyangel

# There is a code of crud operations in php using classes. plz help me to correct the error # Warning: mysql_query() expects parameter 1 to be string, resource given in C:\wamp\www\new\customers.php on line 44 <?php class Customers { private $name; private $id; private $desc; private $con; public function __construct($name,$desc) …

Member Avatar for annyangel
0
370
Member Avatar for Eagle.Avik

hi, i am building a cms, when a user(already logged in) post anything, the script will check if the user is already exist or not if not it will create a new account(only save username and useremail) for the cms, so i can keep track of users. ok, so i …

Member Avatar for simplypixie
0
915
Member Avatar for davy_yg

Hello, I basically trying to create a login form that works that will carry me to the admin page after login. This is what I did so far: models/admin/login_model.php <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); /* Author: Jorge Torres * Description: Login model class */ class …

Member Avatar for LastMitch
0
381
Member Avatar for rhodoscoder

I'm trying to create a simple blog and for some reason , it doesnt retrieve the dummy content from the mysql database. here is my entire code <?php $db_host = "host"; // Place the username for the MySQL database here $db_username = "root"; // Place the password for the MySQL …

Member Avatar for tpunt
0
160
Member Avatar for accra

Hi all, I have this ajax script that accepts only one value at a time. I want to send more than one value to mysql for processing... but am not so good with javascript, pls point me in the right way....thanks // auto select vehicle # and fleet # <script> …

Member Avatar for accra
0
407
Member Avatar for TIM_M_91

Ok so I've created a random captcha that uses integer numbers however I wish to only used char's. Therefore what must I do to this code: <?php session_start(); $code=rand(1000,9999); $_SESSION["code"]=$code; $im = imagecreatetruecolor(50, 24); $bg = imagecolorallocate($im, 22, 86, 165); $fg = imagecolorallocate($im, 255, 255, 255); imagefill($im, 0, 0, $bg); …

Member Avatar for techofunda
0
133
Member Avatar for bharathidass

how to create the dynamic page in online shop(eg:if i add the product detail and image then press sumit mean how to create the next page with image )

Member Avatar for LastMitch
0
108
Member Avatar for Rizi004

Hi there! I have a PHP code that post on timeline everthing is working perfectly fine only it show text two times i have attached the code and the image please tell me where is the issue. <?php $re4=mysql_query(" SELECT FBID FROM users WHERE U_ID='$U_ID' "); while ($ro4=mysql_fetch_assoc($re4)){ extract($ro4); } …

Member Avatar for LastMitch
0
729
Member Avatar for annyangel

** # plz help me to implement this code in php class # ** index.php <?php $connect=mysql_connect("localhost","root",""); mysql_select_db("crud",$connect); $username; $password; if(isset($_POST["insert"])){ if($_POST["insert"]=="yes"){ $username=$_POST["username"]; $password=$_POST["password"]; $query="insert into user(username, password) values('$username', '$password')"; if(mysql_query($query)) echo "<center>Record Inserted!</center><br>"; } } if(isset($_POST["update"])){ if($_POST["update"]=="yes"){ $username=$_POST["username"]; $password=$_POST["password"]; $query="update user set username='$username' , password='$password' where id=".$_POST['id']; if(mysql_query($query)) echo …

Member Avatar for LastMitch
0
136
Member Avatar for hemanshurpatel

Hello there, I have a script which logs in to imap email account and processed that script. Today that script suddenly stopped working. I may have done php upgrade on my system I'm using fedora 18 64 bit with php version PHP 5.4.20 (cli) (built: Sep 19 2013 09:03:36) Copyright …

Member Avatar for LastMitch
0
195
Member Avatar for accra

Am creating a registration form for my app. Am bit confused an to if i should use Phpmailer or Swiftmailer to send activation link to user email. What about the delivery time of emails? Also are there any examples of the two...

Member Avatar for LastMitch
0
111
Member Avatar for Priti_P

Hello, I have given name to node. But its question for my curiosity that how to know its node number now? any known drupal function for this? * if u parse $url then also it will give u name. * url('node/'.$node->nid); do not give expected answer so any opetion how …

Member Avatar for LastMitch
0
109
Member Avatar for rahul.pragma

The problem is that, Server doesn't not able to open this url: https://gw1.cardsaveonlinepayments.com:4430/ OR https://gw3.cardsaveonlinepayments.com:4430/?WSDL When you run this url from your browser then it would work and show you some kind of data like: "GetCardType CardDetailsTransaction CrossReferenceTransaction ThreeDSecureAuthentication" But when we try open the url using script then server …

Member Avatar for hag++
0
798
Member Avatar for shavezphp
Member Avatar for rv1990

This is the code I made for my facebook application but it is not giving the result. This code generate friends name, id and gender and I simply want to display in my apps. Please help me in solving the problem? <section> <?php $friends = idx($facebook->api('/me?fields=friends.limit(10).fields(gender,name)'),'data', array('access token' =>$accessToken)); ?> …

Member Avatar for talibhassan3211
0
561
Member Avatar for Synestic

So I'm making a wishlist but am stuck at joining 2 MySQL tables together. At the moment I'm doing this by using following code: if ($stmt = $mysqli->prepare("SELECT ItemID FROM wishlist WHERE WishlistID = ?")) { $stmt->bind_param("s", $this->ID); $stmt->execute(); $stmt->bind_result($id); while ($product = $stmt->fetch()) { if ($stmt2 = $mysqli2->prepare("SELECT products.name …

Member Avatar for diafol
0
148
Member Avatar for simplypixie

This is driving me insane - I have certain links that are re-written on a site that work perfectly fine (and I am not new to re-wring urls) but have just found that some others aren't and I cannot fathom out why. What works: // The link <a href="/shop/<?php echo …

Member Avatar for simplypixie
0
267
Member Avatar for mmcdonald

I'm having difficulty opening message content for each unique message because I'm struggling to get the PHP variable `$message['id']` to a url defined in a javascript file. My foreach loop that echos out all of the messages for the user: foreach($mess_data as $message){ echo' <tr '.(($message["read"] == '0') ? 'class="unread"' …

Member Avatar for htmlearner
0
2K
Member Avatar for beachy82

hi there i'm currently trying to create a form for a site and this has been done succesfully however on sending the form it goes to a new page saying either "Thanks! Our Team will get in touch in next 24 hours" or "Oops! something went wrong, please try to …

Member Avatar for Tpojka
0
231
Member Avatar for mitchell.schols

I want to have ONE picture on my home page (a poster) and when the date is done I want the new one to replace it and the old to go to a list of all the previous posters. if anyone has a snippet of code that would be amazing. …

Member Avatar for mitchell.schols
0
318
Member Avatar for Hans B

Hi guys i'm in the process of writing an API and is stuck. I get this error: **Parse error: syntax error, unexpected T_STRING in /var/www/xxxxxxx.xxx/public_html/api/uentry.php on line 35** Here's the code: <?php include '../../cfg/xmlhttpheader.inc'; // ---- Form l: // ---- 1) Rense parameter streng // ---- 2) Omdirigere forspørgsler til …

Member Avatar for Hans B
0
552
Member Avatar for davy_yg

Hello, I am trying to understand the CI code that somebody made. I saw there are two folders: site & admin folders in CI application folder. I wonder why? Is it to separate the site and admin page? Is that possible?

Member Avatar for GliderPilot
0
581
Member Avatar for jacob21

Hi, I need suggestions regarding getting rank of website from search engine.For example: I search php tutorial in google w3school get 1st rank,php.net get 3rd rank How i can get above rank Need help!!! Thanks

Member Avatar for ericnboler
0
91
Member Avatar for rhodoscoder

I'm working on a php blog , i created a database and it has several fields, i performed an sql command retrieving the id , performed a $query then a mysqli_fetch_array on the $query i retrieved the id and stored it ina variable as follows `$pid=$row['id']; so that the link …

Member Avatar for JorgeM
0
180
Member Avatar for kyleo92

I'm creating a table with PHP/MySql to enter local election results from my newspaper, I'm not a professional developer, more of just a hobbiest hack (who hasn't worked with PHP for a few years either), so feel free to correct existing code if you so please. What I want to …

Member Avatar for diafol
0
340
Member Avatar for Eagle.Avik

hi i am building a cms system for my website, i am able to put data into a mysql database with the following code(look below). i also have a login system for accessing the cms, everything worked so far. I am facing a problem now. Ok so user signup info …

Member Avatar for broj1
0
288
Member Avatar for cwarn23

PHP is a nice language with features a wide range of automated features for memory but when it comes to mass processing for things like calculating pi or processing a database that's a couple dozen Gigabytes then you may run into a few troubles if things aren't done correctly. This …

Member Avatar for Gaetane
4
676
Member Avatar for johndohmen1963

Hi i have a problem with the output to show the images horizontal in have the folowing code [CODE] $connn1 = mysql_connect(SQL_HOST, SQL_USER, SQL_PASS) or die('Could not connect to MySQL database. ' . mysql_error()); mysql_select_db(SQL_DB,$connn1); $image=mysql_query("SELECT * FROM $weinachtfeier"); if (mysql_num_rows($image)<=0) echo "<br>Album does not exist or you are not …

Member Avatar for aymix
0
710
Member Avatar for garyjohnson

I have a query that collects multple ID numbers and stores them into a php Array. I then want to make a mysql query for every result in the php Array. I believe I am on the right track but am getting an error saying the `join()` method has invalid …

Member Avatar for broj1
0
435

The End.