39,323 Topics

Member Avatar for
Member Avatar for jhbalaji

I am trying to pass values for Array through PHP but i cant get to make work! Some one please help here is the code i tried [CODE]<?php $masterkeylist11 = file_get_contents('http://domain.com.com/full/forbidden/finalkeys.txt'); $myvar = array($masterkeylist11); echo $myvar[3]; ?> [/CODE] The in file contents of finalkeys.txt [CODE]googlecom,yahoocom,bingcom,rediffcom,ebaycom,googleus,googleca,[/CODE] Some one please tell me …

Member Avatar for diafol
0
163
Member Avatar for deecoup

Hii Respected Forum members can anyone solve my problem what i want content restriction based on user role and sidebar category based on user Role i have three type of user role Beginner,Intermediate and Advance... Beginner Role: Can Read only seff Blog Intermediate: can Read self and Beginner Blog Advance …

Member Avatar for deecoup
0
224
Member Avatar for sidra 100

hi m using php n mysql m trying to merge two tables of same database and then print them but somehow it is not working it gives me the error my code is [CODE]<?php session_start(); print_r($_POST); $con=mysql_connect("localhost","root",""); mysql_select_db("pras2",$con); $date= $_POST['date']; $shift_num=$_POST['num']; $query="SELECT shift_id FROM shift WHERE shift_no='$shift_num' AND date='$date'"; $result=mysql_query($query); …

Member Avatar for cereal
0
110
Member Avatar for sacarias40

Hey Guys, I'm looking for the best way to model my noSql Database to allow for user notifications and activity stream. what would the flow to something like this be? I don't want to annoy the user with 1000 notifications if they don't need that. Activities and Notifications will include, …

Member Avatar for sacarias40
0
128
Member Avatar for mohamedasif18

Hello Every One ! How to show md5() password from MySql table in PHP, I have saved my user's password as , [CODE]$password = md5($_POST['password']); $save = mysql_query("INSERT into users(password) VALUES ($password)");[/CODE] Its encrypting nice and works fine when user logs in , that's not a problem, my question is …

Member Avatar for diafol
0
461
Member Avatar for FakeTales

Hey I currently have a demo shopping cart , it works great . the user can add whatever items they want to it. However now i want to add just the bookId's , quantity and price to my sql table to simulate an order taking place. the shopping cart code …

Member Avatar for FakeTales
0
422
Member Avatar for clerisy
Member Avatar for sidra 100

hi m facing same problem from 2,3 days i m too confused now. i m making an application. when i take data from from dont know why it doesnot reach the other page as print_r($_POST) is empty my code of both files are" [CODE]<?php $con=mysql_connect("localhost","root",""); mysql_select_db("pras2"); ?> <!DOCTYPE html PUBLIC …

Member Avatar for sidra 100
0
145
Member Avatar for dyan_naluis
Member Avatar for rad1964

Hello, On my way down a long road to develop a web form for a local sports league. Upon form submission, on my process.php page, I am trying to tally up each of the player's highlights throughout the match form. [URL="http://radmedia.org/EWMSa.jpg"]http://radmedia.org/EWMSa.jpg[/URL] Right now I have code which works, but I …

Member Avatar for rad1964
0
125
Member Avatar for freakunleash

I'm running the following code in PHP to generate the random list of movies from the database but since value of genere is an array it is just capturing the first value of the array. How can I modify the query so that I can get all the values of …

Member Avatar for freakunleash
0
149
Member Avatar for prasanna123

haii... I have written the code for a social networking site like orkut in php but due to guidelines given by my project guide i need to convert this code to j2EE is it possible??? i am new to j2EE can some one plzz tell me a site to learn …

Member Avatar for dmanw100
0
231
Member Avatar for asif49

Currently I'm reading XML attributes in the following way, this is the feed.php file that is called by the index page. [CODE]<?php for ($start < $end) { $xml=$_POST['q']; $xmlDoc = new DOMDocument(); $xmlDoc->load($xml); $i = $xmlDoc->getElementsByTagNameNS('http://search.yahoo.com/mrss/','thumbnail'); $image = $i->item($start)->getAttribute('url'); echo "<img src='$image'></img>"; $start++; } ?> [/CODE] Where $start and $end …

Member Avatar for Ezzaral
0
453
Member Avatar for doctorphp

Hey everyone. I am working on a website for a friend and I have finished designing the website and have now started developing it. What I am trying to do but am having problems with is making a menu that uses two tables in the database. [b]menu[/b] and [b]menuPerms[/b]. Below …

Member Avatar for diafol
0
231
Member Avatar for breakforce

Hello, since i am new to the forum please excuse me if the topic is not in the correct section. I would like to ask how to do the next thing i mean when you have a limit on who is online and who does not say 30 users are …

Member Avatar for diafol
0
313
Member Avatar for kalaban

good day; please spare some of your precious time with me, i'm really having a hard time to analyze this. my problem is how to evaluate two dates if it is not the same date. the first date is the actualdate [CODE]$actualTime = date ('d M Y @ H:i:s', $time+28800);[/CODE] …

Member Avatar for diafol
0
181
Member Avatar for jpknoob

Hi all, i have a piece of code that selects some data from a database and displays the results in a table. I am trying to edit the code to allow me to email the table to a an address entered, but am having difficulties, can anyone offer any advice? …

Member Avatar for fobos
0
82
Member Avatar for RazorRamon

Hello I'm looking to allow users upload pictures onto my site and have it displayed and linked to their site.. This process is for Ad purposes. Ive looked into php mysql uploading images but ive ran into a lot of threads condemning the practice and suggesting saving the images to …

Member Avatar for diafol
0
170
Member Avatar for PF2G

Hi, i'm doing an app to manage a music school and i'm inserting instruments and i have to create the program (what do you learn) of the instrument. I'm doing a RichTextBox. Now i have some problems: 1st - is to save what i write in the richtextbox in a …

Member Avatar for Oxiegen
0
237
Member Avatar for robo-romeski

Hello all; I need a hand. this forum has solved a bunch of my issues and I have another doosie on my hand. I have some ajax code that I query information from database in table form. I am trying to add an image link into the table, once it …

Member Avatar for fobos
0
193
Member Avatar for gvsb92
Member Avatar for jonnyboy12

Hello all . I use this code roughly to call some php code then run it in an html container. [CODE] function getVote(int) { if (window.XMLHttpRequest) {// code for IE7+, Firefox, Chrome, Opera, Safari xmlhttp=new XMLHttpRequest(); } else {// code for IE6, IE5 xmlhttp=new ActiveXObject("Microsoft.XMLHTTP"); } xmlhttp.onreadystatechange=function() { if (xmlhttp.readyState==4 …

Member Avatar for fobos
0
121
Member Avatar for concrete

I have been asked to develop a Reporting System for an English Class as part of an assignment for Uni. I have two tables [LIST] [*]Students [*]English [/LIST] the data going into the grading system are [LIST] [*]Exam Mark [*]Exam Comment [*]Coursework Mark [*]Coursework Comment [*]Poetry [*]Creative Writing [*]English Literature …

Member Avatar for simplypixie
0
159
Member Avatar for glut

Hey, I don't know if this is the right section, but there's no HTAccess section, so I'll just put it here. Anyways, I'd like to make one of those signatures that gets the IP of the person and then makes and image out of it with the IP. I think …

Member Avatar for cereal
0
165
Member Avatar for saybabs

I really need someone to help me on the scenario below. I fetch all the rows in a database table with the mysql_fetch_array() and it was successful. I placed a button on each row in order to click and take the user to another page. On click of the button, …

Member Avatar for broj1
0
177
Member Avatar for clerisy
Member Avatar for vijayram

Hi every one. I make it the following code for profile page.but i click edit profile display onle personal description.dont display . `<?php if($sf_user->hasFlash("notice_change_password")): ?>` this area. plz tell me how to change. <?php use_javascript("location") ?> <?php use_javascript("editProfile") ?> <?php slot("js") ?> <script type="text/javascript"> $(document).ready(function(){ $("#personal_country_id").change(); }); </script> <?php end_slot() …

Member Avatar for diafol
0
97
Member Avatar for geneh23

Hey everyone! So I have a log in script (that someone on here gave me for testing purposes) that logs in based on user_level and I also have a quick login area instead of going to the log in page..on the log in page..when the user doesn't enter any inputs …

Member Avatar for pritaeas
0
109
Member Avatar for sidra 100

hi i m writing a program it is workng fine but doesnot update my database it gives me error since there are 4 query how can i know which one is wrong my part of program is: [CODE] $query2="SELECT * FROM rpms WHERE product_name='$raw_material1'"; $result2=mysql_query($query2) or die(mysql_error()); if ($result2) { …

Member Avatar for baruchM
0
89
Member Avatar for issaru07

been stuck this for the whole day.. need to seek advice from u guys.. it dont seems to work if i login as normal user... but if i log in as admin, it will redirect me to admin-index.php correctly. [CODE] <?php // Array for recording errors: $login_errors = array(); // …

Member Avatar for simplypixie
0
139

The End.