39,316 Topics

Member Avatar for
Member Avatar for DjFumon

Hello, i have this code for extract the categories of the movies in one site: <?php $jm_anime_genero = cut_str($pagina, '<tr> <td width="133" align="right" valign="top">Genero : </td> <td width="329" align="left" valign="top">', '</td> </tr>'); echo $jm_anime_genero; ?> this is the original source: <tr> <td width="133" align="right" valign="top">Genero : </td> <td width="329" align="left" …

Member Avatar for cereal
0
421
Member Avatar for marifard

Dear, I make a php page to upload the images, pdf, swf etc etc for specific orginisation entered in same form. In the form i made the input type files to upload a maximum of three files but i know how to upload one of them only. here i upload …

Member Avatar for nauticalmac
0
360
Member Avatar for onsponge

Hi. I am relatively new to PHP and Joomla. Basically I am building a website which allows registered users to login and use the online services that we provide. I would like to know if its possible to achieve the following: 1)Allow only one user at a time to access …

Member Avatar for nauticalmac
0
152
Member Avatar for hriti

hello i have a problem if anyone can solve it please help me... i have a page from which i get type on left side of page from refrence page...and when i click any one of the reference it shows list on same page regarding to that reference when i …

0
85
Member Avatar for Mohamed_26

Hello Temporary table is not being deleted once the connection is closed. I am not sure if the code is used correctly. Because when I run the code it just says table not found. SO, i had to create a table manually and then it worked. Thank you <?php $hostname …

Member Avatar for Mohamed_26
0
173
Member Avatar for nidhinmohanan

<?php ob_start(); require( 'fpdf.php' ); $pdf = new FPDF(); $pdf->AddPage(); $pdf->Open(); $con = mysqli_connect( "localhost", "root", "", "my_db" ); // Check connection if ( mysqli_connect_errno() ) { echo "Failed to connect to MySQL: " . mysqli_connect_error(); } $result = mysqli_query( $con, "SELECT * FROM Persons" ); while ( $row = …

Member Avatar for nauticalmac
0
156
Member Avatar for RascelleGrepo

Hello. I am having a hard time in figuring out how to view the pdf file after uploading it in your system. My plan is retrieved PDF files that is stored in mysql database and display them in the browser when the user click the view button. please help me. …

Member Avatar for nauticalmac
0
3K
Member Avatar for RascelleGrepo

I am having a problem on notifying the user when he/she submit a empty form. When I submit an empty form, the system doesn't notify or alert the user that the form is empty. And when I put a title and I leave the content textbox empty its still add …

Member Avatar for RascelleGrepo
0
260
Member Avatar for mattyd

*I apologize if this has already been asked/answered* I am have trouble with this, although I imagine the solution is rather simple: 1. User completes form and submits 2. Page either reloads displaying User-entered data *or* redirects to a *new* page displaying said data for User I have been trying …

Member Avatar for mattyd
0
277
Member Avatar for Mohamed_26

I am getting this error. This is my code Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in /studhome/0/1104107/public_html/mysql_connect.php on line 33 I HAVE NO IDEA WHAT I AM MISSING!!!!!!!!!!! <?php $hostname = "localhost"; $username = "1104107"; $password = "r940c1"; $database = "db1104107"; //echo '24'; //connection to the …

Member Avatar for cereal
0
4K
Member Avatar for noel9

hieee i want to develope email system for my project so which free email server and email client should i used it should be scalable please help.... thnkss in advance

Member Avatar for Pinaci
0
128
Member Avatar for Mits#
Member Avatar for dinhunzvi

how do i write a regular expression to validate user input to ensure that the user input contains 1 digit, a space and any number of letters.

Member Avatar for pritaeas
0
153
Member Avatar for FaheemSajid

Hi! I am facing a problem that i have redirected a website to the new one in htaccess but google webmaster is showing the "Links to Your Site" problem in webmaster and according to my knowledge this problem is very critical and serious. Is there any solution to get rid …

Member Avatar for FaheemSajid
0
330
Member Avatar for Mohamed_26

Hello Everyone, I have to create a temporary table for basket. I have to include certain fields from different table. Now I know the code to create a temporary table "CREATE TEMPORARY TABLE", is that right? But I dont know how to choose different fields from different table. Let me …

Member Avatar for Mohamed_26
0
306
Member Avatar for Nadeem_2

Hi folks I want to universal website crawler using PHP, so my crawler will work on any given site. By using my web application, user will input any site, will provide input, what he needs to get from given site and will click on Start button. Then my web application …

Member Avatar for cereal
0
408
Member Avatar for Abdul Waseem

Read first row from csv file and create table automatically according to it(csv file fields) in mysql. Looking for PHP script? I have tried this. <?php $arr = array(array(),array()); $num = 0; $row = 0; $handle = fopen("./contacts.csv", "r"); while($data = fgetcsv($handle,1000,",")){ $num = count($data); for ($c=0; $c < $num; …

Member Avatar for Bachu
0
5K
Member Avatar for Iikeloa

Hi I have this code and the code is working very well but I have an error : Notice: Undefined index: id in /var/www/core/myaccount.php on line 9 Here is my code: <?php session_start(); require_once('inc/config.php'); require_once('inc/header.php'); require_once('inc/functions.php'); login(); if(!$_GET['id']) { header("Location: index.php");} switch($_SESSION['id']) { case $_GET['id']: $id = $_GET['id']; $query = …

Member Avatar for broj1
0
315
Member Avatar for judah.raine

Hi there, totally confused and hoping someone can help. I have an existing article template which suddenly developed this error when viewing the article: Parse error: syntax error, unexpected $end in /home/classicr/public_html/components/com_cobalt/views/record/tmpl/default_record_library.php on line 324 My confusion is because I was previously using the template without errors, and to the …

Member Avatar for Dani
0
269
Member Avatar for momonq1990

hi sir! little bit lost here in php. Pls help! how can I add css file for may xml created from php? <?php bla bla bla..... ---------<?xml-stylesheet type="text/css" href="markers.css"?>-------how can i add this line? echo '<markers>'; while ($row = @mysql_fetch_assoc($result)){ echo '<marker '; echo 'name ="' . parseToXML($row['name']) . '" …

Member Avatar for Bachu
0
269
Member Avatar for Aamit

Hi, I want to do like: 1> [COLOR="Red"]browse file and upload .xls file only[/COLOR] (Not csv or other format) 2> save into mysql database. Any sample demo example?? Or link please?

Member Avatar for Abdul Waseem
0
131
Member Avatar for João_5

Hello guys, i have been working on a new script that will import data from a TXT file to mysql. Using this code works ok: $sql = 'LOAD DATA LOCAL INFILE 'logons-16-12-2013.txt' INTO TABLE pcvsuser COLUMNS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '"' LINES TERMINATED BY '\\r\\n''; But if i …

Member Avatar for Abdul Waseem
0
4K
Member Avatar for Iikeloa

Hi when I run my code the loop doesn't stop! which force the browser to freez.I don't know what is wrong with the loop I have around 4 users only ! and my query select only one of them here is my code : $id = $_GET['id']; $sql = "SELECT …

Member Avatar for cereal
0
193
Member Avatar for The_Thorn

To begin, I adore PHP. Wow. The "problems" with PHP is not PHP, it's me, honestly. I am having issues coding at times and a tad of frustration. But, I am receiving great results with reseach, help and hard work. My current issue is rather simple I believe but I …

Member Avatar for cereal
0
284
Member Avatar for sk4nyk

Please check my PHP mail attachment program. its only sending the attachment not the mail body. I have tried to open the attachment but the attached files is corrupted. Full Code with JQuery http://pastebin.com/T0WtnxbT PHP mail Attachment Script <?php error_reporting(E_ALL ^ E_NOTICE); // hide all basic notices from PHP //If …

Member Avatar for sk4nyk
0
211
Member Avatar for chaitu11
Member Avatar for Bachu
0
42
Member Avatar for Iikeloa

Hi I'm working on a function and it was working good until I had an error that tells me I should swich from mysql to mysqli so I did swich but I'm having a lot of errors ! (the function is working fine but I have a lot of errors!). …

Member Avatar for pardeepkk
0
240
Member Avatar for Stefce

i can not understand why is showing "Wrong Username or password" even i dont click the button always is there and dissapearing after user enter true username and password. if($count == 1) { session_register("myusername"); session_register("mypassword"); session_start(); if(session_is_registered(myusername)){ echo "<a id='user_login_info'><br>Welcome <font color='#00FF00'>$user</font></a>"; echo "<a id='user_login_info'><br>Username and Password Accepted</a>"; } } …

Member Avatar for cereal
0
147
Member Avatar for Iikeloa

Hi I'm facing this error : Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /var/www/core/inc/config.php on line 7 I've tried to replace mysql with mysqli but I faced some errors.So I decided to return to mysql but my …

Member Avatar for Iikeloa
0
203
Member Avatar for ned_1

This was part of the DB config i downloaded. $odb = new PDO('mysql: host=' . DB_HOST . ';dbname=' . DB_NAME, DB_USER, DB_PASS); When i try and add my stuff i get > Parse error: syntax error, unexpected T_STRING in /home/a4455684/public_html/config.php on line 7 This is what it looks like when …

Member Avatar for cereal
0
111

The End.