39,316 Topics

Member Avatar for
Member Avatar for davy_yg

Hello, I wonder if it is possible to run php in IIS ? Thanks before.

Member Avatar for JorgeM
0
81
Member Avatar for boney

I need help on building a mysql query. I have 2 tables : list and type. List : id_list, name Type : id_type, id_list, name The id_list column in table Type is a reference for id_list in the table List. My HTML [main.php] : <head> <script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script> <script type="text/javascript"> function …

Member Avatar for LastMitch
0
249
Member Avatar for Persi

I have two tables in one form and a button in another form. So the two tables must be displayed first and then the button. But for me the button is displayed between the two tables. Can anyone help me?? This is my code [CODE]<form action="choirEvedit.php5" method="post"> <?php $con = …

Member Avatar for whiteyoh
0
96
Member Avatar for hwoarang69

$count = 0; $Q = "SELECT (SELECT image_short_name FROM user WHERE username = '$user') as `image_short_name`" .",`image_id`,`image`" ." FROM `image`" ." ORDER BY RAND()" ." LIMIT 30"; $R = mysql_query($Q); echo " <div id ='bg'> <div id='context'> <table> <tr> "; while($row = mysql_fetch_assoc($R)) { echo "<td>"; $image_db = $row['image']; $src …

Member Avatar for whiteyoh
0
106
Member Avatar for patk570

Hello, I have a login script that I created and for some weird reason when it is in plaintext it works, but as soon as I put md5() it errors out and will not let me log in at all. <?php session_start(); error_reporting(E_ALL); ini_set("display_errors", 1); include("config.php"); if($_SERVER["REQUEST_METHOD"] == "POST") { …

Member Avatar for patk570
0
221
Member Avatar for dschuett

Hi, I am a complete newbie when it comes to php. I have been searching google for a way to upload multiple pictures to a directory at one time, and at the SAME time store each pictures path into a table in the database. I have found several examples of …

Member Avatar for Gloak
0
2K
Member Avatar for Dhiraj_1
Member Avatar for diafol
0
86
Member Avatar for dyea.marcello

I am trying to display a list of my book However I can't select the database: this is a piece of my code: <?php $mysql_hostname = "localhost"; $mysql_user = ""; $mysql_password = ""; $mysql_database = "mag_rocket"; $prefix = ""; $bd = mysql_connect($mysql_hostname) or die("Could not connect database"); mysql_select_db($mysql_database, $bd) or …

Member Avatar for diafol
0
455
Member Avatar for 68thorby68

I am very very confused about encrypting form values when posting a form to submit payment. Please don't turn off when I mention PayPal. I am genuinely confused. I have to submit form values via an HTTPS connection to PayPal and PayPal have advised me to encrypt my form fields …

Member Avatar for paulkd
0
199
Member Avatar for Szabi Zsoldos

Hey guys, I'm having difficulties with a problem. I iterate over an array of data with X rows And i have the positions of each row incremented, i would like that when i found an exception i shift all the position id's so after each exception the next ID has …

Member Avatar for Szabi Zsoldos
0
226
Member Avatar for asaidi

Hi i did an application for an office and i have copied all my source php files to their server of course i installed apache and mysql how i can compile them or corrupt my files that people in office cannot change them.. thx

Member Avatar for pritaeas
0
72
Member Avatar for saadi06

Hi, I am using html Mime Mail5 class to send emails from my system and I want the attachment files to be send as encrypted in smime format. Is there any way I can send the email with attachment made in smime encrypted format through the htmlmimemail5 class. Thanks in …

Member Avatar for pritaeas
0
185
Member Avatar for faisal6621

I'm working on a project where I've to display whether a certain domain name is available or not. If the domain name is unavailable, user may choose to view `WhoIs` information, which I've to show. How can I do this in PHP?

Member Avatar for cereal
0
87
Member Avatar for johndohmen1963

Hi hope someone can help me with the folowing i have a string with a few words i want to delete some words before the string and uppercase the first letter from the string that over. $achternaam = "van der hurk"; $common_words = array("van", "der", "de"); $achternaam = str_replace($common_words, "", …

Member Avatar for johndohmen1963
0
187
Member Avatar for winbala5

Hi all, How to check file exists in remote server. I am try to check in http path whether image is avaliable or not but not able to get.Please help me. http://www.domain.com/images/logo.jpg I need to check this path image is avaliable or not?

Member Avatar for broj1
0
159
Member Avatar for saravananosiz

I need to store stock market data and stock graph datas for my site . so i am selecting two db's mongo and cassandra and i finalize cassandra db, i am using windows 7 , Xampp and i need to use this in yii. i am installing data stack it …

Member Avatar for saravananosiz
0
684
Member Avatar for Siberian

Hi, I want a script that can automatically based on a schedule, run cPanel backup tool and backup cPanel and all directories on a server, hopefully one exists ?

Member Avatar for Siberian
0
93
Member Avatar for <M/>

I am trying to create a table that I can customize completely with php. I will admit, i have forgotten some of the materials due to lack of practice and "accidentally" deleting my original files that "should" answer my question. Well anyways, how do you create a table that (by …

Member Avatar for <M/>
0
659
Member Avatar for jayreis

I am hoping someone can help me fix the issue I am having with a php script that sends a email with a attachement. The script does generate a email that goes out. However when I recieve it the email has a attachment correctly named but when I open it, …

Member Avatar for LastMitch
0
221
Member Avatar for davy_yg

csolution.php public function netsolution(){ $data = array( 'networklarge' => base_url().'assets/images/network-large.jpg', 'productcss' => base_url().'assets/images/product.css ); $this->load->view('netsolution', $data); } public function systemsolution(){ $data = array( 'systemsolution'=>'Type your connection content here', 'productcss' => base_url().'assets/images/product.css ); $this->load->view('systemsolution', $data); } Hi, I receive error in this line: Parse error: syntax error, unexpected 'netsolution' (T_STRING), expecting …

Member Avatar for LastMitch
0
107
Member Avatar for cussel

hi all, how to do multiplication matrix with iteration and stop iteration if value >= 5? $data = array( array(1,-0.52836), array(-0.52836,1,), ); for ($i=0;$i<count($data);$i++) { for ($j=0;$j<count($data[$i]);$j++) { $R2[$i][$j] = (($data[$i][0]*$data[0][$j])+($data[$i][1]*$data[1][$j])); } } echo "<pre>"; print_r($R2); echo "</pre>"; result: 1.279164732 -1.056721269 -1.056721269 1.318545629 how to do nested loop from process …

Member Avatar for LastMitch
0
227
Member Avatar for dyea.marcello

I am trying to display a list of the book which category but is not running. this is a piece of my code: <?php require_once('auth.php'); $con=mysqli_connect("localhost","mag_install","mag123","mag_rocket"); // Check connection if (mysqli_connect_errno()) { echo "Failed to connect to MySQL: " . mysqli_connect_error(); } $result = mysqli_query($con,"SELECT * FROM category"); ?> <!DOCTYPE …

Member Avatar for dyea.marcello
0
144
Member Avatar for lewashby

$userEmail = $db->query("SELECT email FROM users WHERE email='$email'"); $userPsswd = $db->query("SELECT password FROM users WHERE email='$email'"); Can someone tell me what I've done wrong in teh two lines above? I'm getting the following errors. PHP Warning: SQLite3::query(): Unable to prepare statement: 1, near &quot;@hotmail&quot;: syntax error in /var/www/ET/password/accounts.php on line …

Member Avatar for Atli
0
2K
Member Avatar for mmcdonald

Hi all, the following PHP MysSQLi query works in XAMPP but not in WAMP: <?php include('../../inc/config.php'); $mysqli = mysqli_connect($config['host'], $config['user'], $config['pass'], $config['db']); $responseQuery = "SELECT tr.id as trid,tr.topicid,tr.usersid,DATE_FORMAT(tr.date_added,'%b %d, %Y %H:%i') AS format_date_added,tr.date_added,tr.response,tr.status, t.id, t.usersid as creatorid, u.id, u.authuser, u.memtype, u.fn,u.ln,u.avatar FROM topic_response tr LEFT OUTER JOIN topic t ON …

Member Avatar for Atli
0
888
Member Avatar for patk570

Hello everyone, I am trying to update a database as well as insert information into the database and this is what I created to do so. Only, I am getting the email and its not updateding the database...any ideas? <?php if ($_POST['submit']) //if the Submit button pressed { $con = …

Member Avatar for patk570
0
138
Member Avatar for Sandra_1

Hello, How can I pass a root directory to variables? I am working between two servers (dev, and live) and would like an dynamic solution. I tried several flavors of this (below), but keep getting errors (unexpected T_VAR...). class myClass { var $currentDir = __DIR__; var $my_xml_file = $currentDir."data/my.xml"; . …

Member Avatar for diafol
0
127
Member Avatar for logicslab

Dear friends, I am using Wordpress 3.6 for my current development . But my client need a system which has independent layers i.e 3 layers such as * Service Layer * DB Layer * View Layer from my analysis I can found that Wordpress has a **Theme ---- View+DB layer …

Member Avatar for gusano79
0
419
Member Avatar for lewashby

PHP Parse error: syntax error, unexpected end of file in /var/www/ET/password/changepassword.php on line 27 Can someone please tell me what I'm doing wrong in the following code to get the error above? <?php $db = new SQLite3('./users.db', SQLITE3_OPEN_READWRITE); if(!$db) { echo "Could not open/access DB"; } else { $userPsswd1 = …

Member Avatar for lewashby
0
517
Member Avatar for kenleycapps

Ever feel the default session handling is insecure? Or do you just want some originality to show off? Well, here you are. A custom, MySQL-based session handler. It supports base64_encoding and MySQL storage. Note: I haven't tested this thing in months so I don't know how well it'll work : …

Member Avatar for pritaeas
0
433
Member Avatar for mmcdonald

Hey hey! I'm about 70% into completing a web application that will allow our clients to white label our service. They can then in turn resell the service to their audiences without any involvement from me or my colleagues. Now, something I need to figure out is how to allow …

Member Avatar for JorgeM
0
236

The End.