Posts
 
Reputation
Joined
Last Seen
Ranked #254
Strength to Increase Rep
+10
Strength to Decrease Rep
-2
90% Quality Score
Upvotes Received
92
Posts with Upvotes
79
Upvoting Members
50
Downvotes Received
8
Posts with Downvotes
6
Downvoting Members
8
23 Commented Posts
6 Endorsements
Ranked #307
Ranked #174
~272.21K People Reached
Favorite Tags
Member Avatar for vindyauwu

I want to create a single login page for Admin and user.When admin lo it should go to seperate page and when user log it shoult go to seperate page.I want sample code for this.Thanks..

Member Avatar for VINITHAPRIYA R
0
36K
Member Avatar for Maideen

Hi. I am Sorry that I don't know how to ask question for my Scenario. Thats why I just used "How to update qty into table2 from table1? " This is the scenario of one of my customer Table-1 Subscription Master(News Paper) - Received Subscription CustCode Name Copies date Agent …

Member Avatar for simplypixie
0
208
Member Avatar for Poonam Jadav

hello i m a student & new to php i want to pass id from one page to another page using get & post method but the id can not be passed it shoes the variable in URL instead of value please can any one help me Here is the …

Member Avatar for pzuurveen
2
43K
Member Avatar for manc1976

Hi I am using the following code to give the user a choice of options in a drop down box: [CODE] <?php $query="SELECT location,id FROM area"; $result = mysql_query ($query); echo "<select name=location_id value=''>location</option>"; while($nt=mysql_fetch_array($result)){ echo "<option value=$nt[id]>$nt[location]</option>"; } echo "</select>"; ?> [/CODE] It retrieves all of the options from …

Member Avatar for Syed_2
0
3K
Member Avatar for simplypixie

Please look at my jsfiddle here - http://jsfiddle.net/ftuZ5/ . I know why the links won't work as the relative positioning I have used to create the link / menu backgrounds I want is covering the a element but I can't work out how to resolve the issue (having tried relative …

Member Avatar for simplypixie
0
194
Member Avatar for McLaren

hello, [CODE] <div> <div class="floatLeft"></div> <div class="center"></div> <div class="floatRight"></div> </div> [/CODE] The question is - how do I make the div with class "center" actually in the center. Those 3 divs doesn't take all the width available. Another divs are floated as class name says.Or should I use different technique?

Member Avatar for clintmannar
0
3K
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
266
Member Avatar for sql_1

$result123=mysql_query("select *from semdropdown"); <td><label for="textfield8">Semester </label></td> <td colspan="3"><select name="semester" value="<?php echo $semesterid; ?>"> <option value="">Select Semester</option> <?php while($row123 = mysql_fetch_array($result123)) { if($semesterid == $row123[semesterid]) { $selvar = "selected"; } echo "<option value='$row123[semesterid]' ". $selvar . ">$row123[semesterkey]</option>"; $selvar =""; } ?> </select> </p> <p></p></td> </tr> $result123=mysql_query("select *from semdropdown"); <tr> <td><label for="textfield8">Semester …

Member Avatar for sql_1
0
1K
Member Avatar for navneil

Below are 2 functions that will handle the Query and rending of the menu from MySQL Database. This function Loops through the array. Takes in 2 arguments. function loop_section($array, $parent_id = 0){ echo '<ul>'; foreach($array as $section){ echo '<li>'; echo $section->section_name; echo '</li>'; } echo '</ul>'; } This function handles …

Member Avatar for broj1
0
234
Member Avatar for mgn2683

We are having a problem where some pages that do not have much content have a lot of blank space above the footer. What is a way this can be removed on pages without messing up other pages that actually have a lot of content? It can be seen here: …

Member Avatar for mildred2013
0
134
Member Avatar for isaac.iji.5

hello guys am creating site were all users can post for there friends to see ans coment just like facebook where am having problem is how to make sure only a users friends can see there post not the whole site members i have table in my database called post …

Member Avatar for isaac.iji.5
0
269
Member Avatar for jacob21

$newtypeid=$_REQUEST['newstype']; $action = (isset($_REQUEST['action'])&& $_REQUEST['action'] !=NULL)?$_REQUEST['action']:''; if($action == 'ajax'){ echo "newtypeid is".$newtypeid; -------------- //some stuff here } How to get $newtypeid value inside if statement.

Member Avatar for diafol
0
257
Member Avatar for vbdotnetlover

Dear Sir, I have modified your codes once again as <?php if (isset($_POST['button1'])){ $name=$_POST['text1']; }else{ $name=""; } if ($name) { echo 'My name is ' . $name; }else{ echo 'No name entered'; } ?> <html> <head> <title> First form </title> </head> <body> <form name="aa" method="POST"> Name <input type="text" name="text1" value=""> …

Member Avatar for vbdotnetlover
0
136
Member Avatar for Linddha

i want to get the result of my count query in 2 table my table : $userfans=mysql_query("select *from fans where id_userfans='$_SESSION[id_user]' and level='umum' limit 1"); while($oinf=mysql_fetch_array($userfans)){ $coinp=mysql_query("select * from fans_news where id_userf='$_SESSION[id_user]' and id_fans='$oinf[id_fans]' and status='Y'"); $koinp=mysql_num_rows($coinp); while($oinp=mysql_fetch_array($coinp)){ $comentar=mysql_query("select * from fans_comment,user where fans_comment.id_newsfans='$oinp[id_newsfans]' and fans_comment.id_usercf!='$_SESSION[id_user]' and fans_comment.id_usercf=user.id_user "); $comme=mysql_num_rows($comentar); …

Member Avatar for urtrivedi
0
200
Member Avatar for karen.frias0316

Hi! my first time to post here. I have a program which asks for user input(img upload and text) then process it using imagecreatefromjpeg. I my uploader, it checks for an array of errors, including if there is no file upload. i want to change it and allow the process …

Member Avatar for karen.frias0316
0
852
Member Avatar for simplypixie

I am using tinymce on a cms and I want to be able to have a dropdown menu of all pages on the site (stored in a db) to choose from when adding a link but all I am getting is an emtpy set of values. I am using the …

Member Avatar for simplypixie
0
884
Member Avatar for tqmd1

Dear Experts I have following codes <?php if(isset($_get['submit'])) { // Connection variables $host="localhost"; $username="root"; $password=""; $db_name="asia"; // Connect to database $con=mysqli_connect("$host", "$username", "$password"); // Connect result if(!$con){ die('Error Connecting to Database: ' . mysqli_error()); //die '<script type="text/javascript">alert("Error Connecting to Database"). mysqli_error($con);</script>'; } else { echo "<script type=\"text/javascript\">alert(\"Connected\")" . mysqli_error($con) . …

Member Avatar for Bachu
0
184
Member Avatar for WebCat999

Hello I been very grateful if someone could help me. I try to make a 3 columns structure but can not get it. It must be header, top navigation, left navigation, main content, banners, and footer. Can anyone help please?

Member Avatar for simplypixie
0
128
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
903
Member Avatar for chrisschristou

i try make my site compatible with all stadanrt devices and when i litle work but my proble is images is still large small screen how can i do it automatical resize in small screen, such they are in diferent class diferent div ... here is my css @media only …

Member Avatar for simplypixie
0
114
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
262
Member Avatar for davy_yg

Hi, I would like to center two images. These two images must be next to each other and located in the center of the screen harizontally. This is what I've tried. header.php [CODE] <div id="banner"> <img src="<?php echo get_stylesheet_directory_uri(); ?>/images/banner.png" class="center"/> <img src="<?php echo get_stylesheet_directory_uri(); ?>/images/bannerside.png" class="center"/> </div> [/CODE] style.css …

Member Avatar for aaaaabeecd
0
135
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
347
Member Avatar for PixelatedKarma

G'day, As many of you viewing this may know there is always a right way to do something and a wrong way to do something. So I've come here to see if I could maybe seek some guidance. What I have done is create a dynamic set of form fields …

Member Avatar for PixelatedKarma
0
283
Member Avatar for johmny

Can anyone tell, what is the disadvantages of making website in wordpress

Member Avatar for ACRDepos
0
126
Member Avatar for gogs85

I need help for my code when i login successfly i have error this is my code: <?php session_start(); $host="localhost"; // Host name $username="root"; // Mysql username $password=""; // Mysql password $db_name="portfolio_baza"; // Database name $tbl_name="skole_login"; // Table name // Connect to server and select databse. mysql_connect("$host", "$username", "$password")or die("cannot …

Member Avatar for gogs85
0
332
Member Avatar for chrisschristou

hello Dear friend of Daniweb i'm new in this site i just discovered yesterday, i find here fine. i create my website in Dreamweaver i created shopping cart and on local server in wamp it work fine but when i upluad on my hosting server i get this error: <?php …

Member Avatar for chrisschristou
0
195
Member Avatar for robin.aditta1

I am getting following error when trying to click the next or previous button on following site: http://bdworld.co/newest.php?categoryId=35 > Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in /home/content/69/9332569/html/imagewar/newest.php on line 30 Newest Pictures! ( Others ) SQL query failed. Check your query. Error Returned: You have an …

Member Avatar for simplypixie
0
656
Member Avatar for simplypixie

As usual I am having a love hate relationship with jQuery and Ajax :) I have a PHP file that uploads and resizes and image and stores the data in the database, which on its own works fine. I am now trying to do this through a jquery modal/dialog box …

Member Avatar for simplypixie
0
325
Member Avatar for NoMansLand_MFGC

Hello Daniweb, I hae built a time/date counter for a private ticketing/support system, but I have run into a bug. After submitting a ticket it's fine, the counter starts counting, Perfect. Update the ticket to Closed/Answered/Anything else that changes the Status of the ticket, it "resets" the counter. It pulls …

Member Avatar for diafol
0
291