- Upvotes Received
- 0
- Posts with Upvotes
- 0
- Upvoting Members
- 0
- Downvotes Received
- 1
- Posts with Downvotes
- 1
- Downvoting Members
- 1
30 Posted Topics
I am trying to write a querry to pull just one playername out of a database by random, can anyone see what I am missing please ? open base< $sql="select playername from tablejollys where (ID % 1000) = floor(rand() * 1000) order by rand() limit 1"; $result=mysql_query($sql); echo ['playername'] ; … | |
hi I am having trouble on echoing a sum from a table, The mysqul works and give me the wantted result and looks like SELECT sum(brick) FROM `goodship` this is the code i am trying to get to show it on the site, <html> <head> <?php $con=mysqli_connect("hostwiththemost.com","bulderbob","superscreatpassword","shipstable"); if (mysqli_connect_errno()) { … | |
Hi All, Am trying to send the same e-mail to 2 addys with one click with out using the cc or bcc , this is the line i am syuck on $email = '$_REQUEST['email'],$_REQUEST['email2']' ; it works if i do not add the 2nd email request to i am guessing … | |
hi can anyone see why this is not working please ? `mysqli_query($con,"UPDATE goodship SET brick=brick+1 WHERE id= $_COOKIE['id']");` all i am trying to do is add one to the sessions id col brick, thanks. | |
Hi all this should be an easy one, Trying to move an input from text box1 to text box2 and return back to page1. page 1 reads, <HTML><HEAD><TITLE>php scenario move text </TITLE><META content="text/html; charset=utf-8" http-equiv=Content-Type><META name=GENERATOR content="MSHTML 9.00.8112.16457"><STYLE type=text/css>BODY { FONT-FAMILY: verdana, arial, sans-serif }</STYLE></HEAD><BODY><P> </P><P><FORM method=post action=2.php> <TABLE border=1 … | |
Hi, I have a base that accepts data in and I can display all the data in a table :) How do I make the database echo out to read only text box on a form one string at a time ? do i have to do some .php before … | |
Hi , I am trying to get a photo type base to work and have got stuck , I have 3 files , 1- the html - that takes the input called door.html 2- the connect.php to open the base. 3- the php to insert insert.php. 1= <FORM method=post action=insert.php><P> … | |
Re: i am looking for products to promote on a few sites including FREE This Super Car dot com, | |
HelloWorld Start(); *// every line of codes ends with A ";" *//\/\\ from ";" you can xmap your game to the best "YOU WIN" screen.jpg you can make be it of a T-shirt you maybe selling a compleated levalin a game, a holiday vacation, a Free beer token or even … | |
Can anyone see where i am messing up please ? I am trying to play a sound from my imported library and it wont play import flash.media.Sound; button.addEventListener(MouseEvent.CLICK, playSound); function playSound(e:Event) { trace("1234567"); var s:Sound = new Sound(new Sound("1.wav")); s.play(); trace("987654321"); } i think i have got it down to … | |
HI, how do i change tis code so when the php is done it gos to page running.php insted of the " echo "1 record added"; " line ? <?php $con = mysql_connect("localhost","peter","abc123"); if (!$con) { die('Could not connect: ' . mysql_error()); } mysql_select_db("my_db", $con); $sql="INSERT INTO Persons (FirstName, LastName, … | |
Hi , I have a gif of a moving ball (ball.gif) that plays once on loading, and when clicked it playsthe sound file (ping.mp3),but duz not move the ball. 1.How duz one get the ball.gif not to play on page loading ? and 2.How can you make ball.gif play with … | |
Hi I have managed to set up a players database log-in with name number e-mail and am trying to get a buton on the players home page that when clicked adds one to thier total, Do I have to set up a new database for this or a new table … | |
Re: i think you may need to set up a box to put the img in , echo '<td><img width="300" src="',$row['pic'],'"/></a></td>'; thats how i keep mine to 300 wide, the hight is var. however you could add hight="300" i think ![]() | |
Hi have confussed myself, can you see why i cant get a new pic to be displayed in the box on click please ? <HTML><HEAD><TITLE></TITLE><META content="text/html; charset=utf-8" http-equiv=Content-Type><META name=GENERATOR content="MSHTML 10.00.8400.0"><STYLE type=text/css>BODY { FONT-FAMILY: verdana, arial, sans-serif }</STYLE> </HEAD><BODY> <FORM style="BORDER-TOP-COLOR: ; BORDER-BOTTOM-COLOR: ; BORDER-RIGHT-COLOR: ; BORDER-LEFT-COLOR: " method=post action=refresh> … | |
``this code keeps kicking out the error Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/a2595218/public_html/login.php on line 49 with the out-put " The username you enterted was not found " I should be seeing the error " You must active your acount to play. $form";" … | |
Hi All, Can anyone see why this line dos not produce real links if they have "http://" add to them when added to the data base ? //---------------------------------------------- $result = mysql_query("SELECT * FROM track ORDER BY rand()");while($row = mysql_fetch_array($result)) { echo '<td> <a class="mylink" target=_parent href="http://', $row['car'],'">',$row['tag'] . "<br>"; } … | |
HI, Could you please explian this code so it will work, { "display **all** from **tablename** **colloum_id** in a **random order** " } I am trying to get all the data echoed into a random string ie. echo = "3,4,5,6,7,3,2,6,3,22,43,132,ect. not in a table. thanks. | |
Can anyone see why this dos not work please [CODE]<HTML><HEAD><script type="text/javascript"> function x() { <IFRAME( src="inputstringA" name = "bob1" ></IFRAME> ); } </script><TITLE></TITLE><META name=GENERATOR content="MSHTML 8.00.7600.16722"></HEAD><BODY> <INPUT value=www.website2.com name=inputstringA> <INPUT onclick="x()" value=" Press Input A$" type="button" name="loadb"></TD> <IFRAME src="www.website1.com" name = "bob1" ></IFRAME></TD><TD align="center" width="556" vAlign="top" height="23"> ></BODY></HTML>[/CODE] | |
Hello , I am stuck on this line of code [CODE]echo $hits[0];[/CODE] i am trying to get it to echo into a text box as an integar. at the moment the code [CODE]<?php $count_my_page = ("hitcounter.txt"); $hits = file($count_my_page); $hits[0] ++; $fp = fopen($count_my_page , "w"); fputs($fp , "$hits[0]"); fclose($fp); … | |
[CODE]<HTML><HEAD> <?php $ids = ("number.txt"); $id = file($ids); echo $id[0] ?> <INPUT value=("$id[0]") name="number"> </HEAD><BODY> </BODY></HTML>[/CODE] How come <INPUT value=("$id[0]") dos not = the out put 5 or what ever ("number.txt") is ? it should be in a read only text box id = number. | |
Morning,afternoon,evening and av a great night to all, solution needed plaese. secnario. players eneter log on screen and enter name ,password, (id is index on base) then go to check_logon.php if happy end up at logon_success.php this run ok :) am now trying to display players id number on logon_success.php. … | |
[CODE]<?php include ("counter.php"); ?><HTML><HEAD><?php function sidney() { global $id; include 'counter.php'; } sidney(); echo "$id"; ?><META name=GENERATOR content="MSHTML 8.00.7600.16722"> </HEAD><BODY><INPUT value='[$id]' name="player number"></BODY></HTML>[/CODE] please can you explain why [$id] dos not echo a number ? thanks. | |
why dos the hit number not show up at $A ? [CODE]hitcounter.txt<HTML><HEAD> <META name=GENERATOR content="MSHTML 8.00.7600.16722"></HEAD> <BODY>0 0</BODY></HTML>[/CODE][CODE]<HTML><HEAD><TITLE>hitcounter.php</TITLE><META content="text/html; charset=utf-8" http-equiv=Content-Type><META name=GENERATOR content="MSHTML 8.00.7600.16722"><STYLE type=text/css>BODY { FONT-FAMILY: verdana, arial, sans-serif }</STYLE><?php $count_my_page = ("hitcounter.txt"); $hits = file($count_my_page); $hits[0] ++; $fp = fopen($count_my_page , "w"); fputs($fp , "$hits[0]"); fclose($fp); echo $hits[0]; … | |
can anyone see where i am not reciving the results I am looking for ? please, [CODE] ?><META name=GENERATOR content="MSHTML 8.00.7600.16722"><?session_start();if(!session_is_registered(myusername)){header("location:main_login.php"); } ?> <P> <? echo "PLAYER:" .'($myusername)';?>[/CODE] this code is spose to echo out the players login name from the check_login.php page from before. thanks. | |
anyone know how to make the colour text box w2 change to a random colour when button clicked please ? [CODE] </html> <FORM NAME = frmOne> StartA X: <INPUT TYPE = Text NAME = x SIZE = 5 value ="0"> Two B Y: <INPUT TYPE = Text NAME = y … | |
`[CODE]<form action="ScoreCardAlpha.php" method="post"> A: <input type="text" name="$X" /> B: <input type="text" name="$Z" /> C: <input type="text" name="$W" /> // read input data on $W , $X and check to see if (it or they{1,2,3 and byond}) has http// if so save after // // check all data for hacks. <input … | |
I have this code working, I would like to change the fuction message to display a pic by its url insteed of the message popup. --------------- else if(k >= 6) { alert("It's tough ") --------------------- I am thinking along the lines of an else if (k >= 6{ echo <img … | |
I am trying to get a text box to show a number and then add it to another number,[CODE]<html> <body> Field1: <input type="int" id="field1" value="1" /> <br /> Field2: <input type="int" id="field2" /> <br /><br /> Click the button to add the content of Field1 to Field2. <br /> <button … | |
[CODE]<?php // open base $con = mysql_connect("xxxxxxxxxxx", "xxxxxxxxxxx", "xxxxxxxxxxxxxxxxxx"); if (!$con) { die('Could not connect: ' . mysql_error()); } mysql_select_db("xxxxxxxxxxx", $con); // open table $result = mysql_query("SELECT * FROM leader"); // print table & column headders echo "<table border='1'> <tr> <th>id</th> <th>Club</th> <th>Website</th> <th>Club Badge Url</th> </tr>"; // get data … |
The End.