39,320 Topics

Member Avatar for
Member Avatar for Sanit

Hey guys, I'm trying to echo a link that has an onclick attribute attached to it, but when I click on the link on the page, just goes to the desired page, and doesn't preform the onclick action. Here's my code: [code=php]<?php if(session_is_registered("sesvar")){ echo ("<a href='../../admin/comment-delete.php?id=$id2' onclick='return(confirm('Are you SURE you …

Member Avatar for leo_gatmaytan
0
2K
Member Avatar for JBLDW

How would I go about altering every table in a MySQL database? I have read several posts on this subject, regarding altering a table for foreign character sets and the like, or altering specific tables, but can find nothing for what I am trying to do, which is to use …

Member Avatar for JBLDW
1
109
Member Avatar for ridzii

can we see the php codes of any website present online? for css there is a web developer tool in mozilla which shows the css codes is anything like that possible?

Member Avatar for ballchain
0
50
Member Avatar for lit108

I have a script that is parsing rss feeds and the xml to a webpage, this is part of a blog aggregator system. However there are areas throughout the web system where I would like to only display a set number of posts, 10 for example I have tried a …

Member Avatar for lit108
0
125
Member Avatar for Suzie999

Hi, I'm an absolute noob to php, I know a little, enough to get me by so far by learning from snippets and suchlike. Before I dive into a new area (sessions) I'd like to know if what I am intending is possible or silly. [U]What I have[/U] I dont …

Member Avatar for Suzie999
0
219
Member Avatar for ksquared

Is there some way I can loop through this code? using Ajax? Thanks for any recommendations. [CODE] <?php $paintingBack=$paintingNumber-1; $paintingNext=$paintingNumber+1; if ($paintingBack < 1) { $paintingBack = $paintingBack + 1;} ?> <a href="" id="link1" class='link'><img src='images/braceL.gif' alt='brace' width='20' height='11' valign='text-bottom'/></a> <script type="text/javascript"> var l = document.getElementById("link1"); l.onFocus = function() { …

Member Avatar for ksquared
0
100
Member Avatar for teambuilding

guys, I am adding [CODE]<?php static_footer_pages(); ?>[/CODE] to Footer of Wordpress to display their built in policies (WP plugin(, instead it shows me all the pages somewhere on the side of the page. Can anybody help?

Member Avatar for joban.ali
0
139
Member Avatar for UzuNarU

Hey everybody. So I am just trying to write a script to delete a row in a MySQL database. Unfortunately I seem to have something wrong...even though I don't get any errors. Here is a snippet of the code on the page to send the request: [CODE] echo "<tr><td width='138px' …

Member Avatar for UzuNarU
0
154
Member Avatar for Igorcats

I have this piece of code: <img src="<?php echo img('Background9.jpg'); ?>" /> I would like the image (Background9.jpg) to be linked to this page: [url]www.example.html[/url] I have looked through a lot of posts and solutions here, but try as I might I cannot figure out exactly how to accomplish that. …

Member Avatar for Igorcats
0
93
Member Avatar for tcollins412
Member Avatar for tcollins412
0
67
Member Avatar for y2kshane

i want to send Variable to a php function when a link clicked how to do that??? so far i got to here but it doesn't work. :( plz help mee echo " <A href=\"Carscript.php\" onMouseOver=\"SwapOut('$name')\" onMouseOut=\"SwapBack('$name')\" onclick=\"func($name);\" > ";

Member Avatar for UzuNarU
0
180
Member Avatar for panhwer

Hi.. I want to make following series.. I try a lot but i am having confusion in loops. so please help me. 1 212 32123 4321234 So any one have idea about this .

Member Avatar for diafol
0
90
Member Avatar for Acute

When we send ajax request to some php file via post, we get the variables in php file from $_POST['varName'], and then send response as a text or html or JSON or whatever with echo or print. So, what if a lot of such ajax requests come simultaneously? what server …

Member Avatar for pritaeas
0
97
Member Avatar for samsambm

Hello. I have a Javascript that generates 2 conditional select tags. If condition in 1st is being selected , the 2nd select shows different options. Here is an example : case "events" : document.formname.subcategory.options[0]=new Option("להקות והרכבים",""); document.formname.subcategory.options[1]=new Option("רביעיות כלי מיתר",""); document.formname.subcategory.options[2]=new Option("מעגלי מתופפים",""); document.formname.subcategory.options[3]=new Option("תקליטנים",""); document.formname.subcategory.options[4]=new Option("רקדנים ומופעי בידור",""); document.formname.subcategory.options[5]=new …

Member Avatar for diafol
0
122
Member Avatar for OpenBSD

Hi, I have any dropdown box(combobox) for retrieve data ! this dropdown box list user for each user id. now when i filter result my code not work! my database is : member : id | name | age | datanum products : id | uid | name | cat …

Member Avatar for OpenBSD
0
133
Member Avatar for holmiboii

Hallo daniweb!, Im new here *hehe* anyway I've been working on our companys website for a while now but I just cant get it to work... the error is @ the 26:th line. btw we're using: Cirtex hosting the defination "myusername" and "mypassword" is in the prev. .php file (main_login.php) …

Member Avatar for holmiboii
0
233
Member Avatar for newbiecoder

Hello everyone, I got an error from the code which I am copy-pasting from a textbook. Could you please tell me what I am doing wrong? Here are the codes: login.php: [CODE]<?php session_unset(); ?> <html> <head> <title>Please Log In</title> </head> <body> <form method"post" action="http://localhost/movie1.php"> <p>Enter your username: <input type="text" name="user"> …

Member Avatar for newbiecoder
0
202
Member Avatar for shobhit25

hey Guys,:) i m new to web development...n want to learn Drupal:-O :confused: ...so any one can help me:'( .. Thanx in advance:)

Member Avatar for HemantPHP
0
73
Member Avatar for arctushar

Hello I m a civil Engineer. I have little bit knowledge on php. I want to make a web application. Which will be easier. Drupal module creating or indivisual php application. Please Suggest me

Member Avatar for HemantPHP
0
103
Member Avatar for six_sic6

Hi, I can pass an array through jquery ajax. [CODE] var regSubCodeArray = new Array(); var temp = 9; var i; for(i=0;i<temp;i++) { subname = 'sub'+i; subcode = 'sub_code'+i; subcredit = 'sub_credit'+i; regSubCodeArray[i] = document.getElementById(subcode).innerText; } $.ajax({ url: "testArray.php", type: "GET", data: "page="+regSubCodeArray, cache: false, success: function (html) { $('#ttl').html(html); …

Member Avatar for pritaeas
0
2K
Member Avatar for Imratzio

Hi all. Im building a shopping cart using an online tutorial in youtube, but i have an error [CODE]<?php if(isset($_GET['action']) && $_GET['action'] == "add"){ $id = intval($_GET['id']); if(isset($_SESSION['cart'][$id])){ $_SESSION['cart'][$id]['quantity']++; } else{ $sql2 = "SELECT * FROM products WHERE id_products=$id"; $query2 = mysql_query($sql2); if(mysql_num_rows($query2) != 0){ $row2 = mysql_fetch_array($query2); $_SESSION['cart'][$row2['id_products']] = …

Member Avatar for Imratzio
0
244
Member Avatar for dragostone

Hello i have a contact form which sends the message as an entire line i have the following code to combat this problem but not working [CODE]$messageBody = $_POST["messageBody"]; $messageBody = str_replace("\r\n", "\n", $messageBody); $messageBody = str_replace("\n", "\r\n", $messageBody);[/CODE] anyone have any ideas? thanks

Member Avatar for blocblue
0
59
Member Avatar for captain.don

i am working on php and using mySQL with it. I have a table named "images" which contains 2 columns named "user_id" and "name". 5 rows are filled.Example of table is below: User_id ---Name 1 waterfall 1 mountain 2 wind 2 sunset 2 snowfall I am using the script which …

Member Avatar for caitlyndania
0
72
Member Avatar for yamot47

Below is my code can you debug it?? when i try to search on my search box it only show the data equal to the input box but when i clicked the pagination all the data in the database show i only want to show the data that been search …

Member Avatar for yamot47
0
137
Member Avatar for tcollins412

lets say im making a dating site. and i want people to be able to insert their own pictures. how would i do that? i have a mysql database. and i want this to happen in php. and then how would i make it display that persons image when someone …

Member Avatar for lyrico
0
123
Member Avatar for printman55

I am redesigning a site and I want to have it compatible with the IPad. Could someone show me the code in either JavaScript or PHP so that when someone comes to my site on an IPad they will be automatically redirected to a site that is narrower, contains no …

Member Avatar for smantscheff
0
145
Member Avatar for eddiekudzayi

I am looking for a script that can crawl specified sites at retrieve data, something sophisticated enough to parse and ignore unwanted tags. If it can do more that would be great but that is the foundation. Does anyone know where I can get such a script.

Member Avatar for smantscheff
0
62
Member Avatar for maofree

Hi to all I use a cms and I want to modify an its module. I need to pass a variable to a xml file (this xml is necessary for a flash slideshow), like the value of a folder like '/example' If I create a system variable in php and …

Member Avatar for maofree
0
324
Member Avatar for newn01

Hi. I've been looking for a code, and found something, edited it a little bit and came up with nothing, so here's the original version of it: [CODE] <?php $dbLink = new mysqli('localhost', 'usr', 'pwd', 'dbName'); if(mysqli_connect_errno()) { die('Failed to connect to MySQL: ' . mysqli_connect_error()); } $sql = "SELECT …

Member Avatar for newn01
0
175
Member Avatar for EricIskhakov

Hey guys, sorry i know it doesn't belong on PHP but there is no general discussion. i am having trouble to understand this licenses. I am building a website for public use. with profit included. can i use a jQuery lib for my site? (it's licensed by MIT or GPL …

Member Avatar for EricIskhakov
0
140

The End.