-
Posts
151 -
Joined
-
Last visited
Never
Posts posted by dewey_witt
-
-
OK there are 10,000 cards total....... 10% are rare, another 30% are uncommon and The remaining 60% are common.
-
Please help? I let you go out with my granny
-
So i have some cards i want to be able to predict the odds to the draw. there are 3 diferent variable "Rare, Uncommon, and common."..... the draw will be a random three cards....... I need the chances of pulling 1 Rare, 2 Rares, and 3 Rares...... how?
-
Comeon peeps, Noone Knows? O.o
-
<?php $sql1="SELECT * FROM ".$tbl_name." WHERE confirm_code='".$passkey."'"; ?>
Maybe thats the issue, Im not sure but that the only part looks wrong.
-
<?php $id=$row["id"]; $gender=$row["gender"]; $race=$row["race"]; ?>
change the " character to the ' character in all these elements.
-
Anyone know how i can ping from a linux server to a remote machine then echo the results to the screen? ty in advance.
-
Habit I guess toonie. A LONG time ago durring the age of webTV thats how I learned about forms etc....... So I just do it now days without thinking about it. I dunno call me lame w/e lol
-
Well yeah theres a folder there.... but pear is a big extention...... I dunno Im tryna figure it out.
-
Whole new error now.
Fatal error: Class 'DB' not found in C:\webs\test\test pear.php on line 12 -
.;c:\PHP\includes;C:\PHP\PEAR
-
The error I received.
Fatal error: Class 'PEAR' not found in C:\webs\test\test pear.php on line 4 -
OK so look I installed right I used this as a test script
<?php require_once 'DB.php'; PEAR::setErrorHandling(PEAR_ERROR_DIE); $db_host = 'localhost'; $db_user = 'root'; $db_pass = 'password'; $db_name = 'dataBase_name'; $dsn = "mysql://$db_user:$db_pass@unix+$db_host/$db_name"; $db = DB::connect($dsn); $db->setFetchMode(DB_FETCHMODE_OBJECT); ?>
-
Noone can help still huh?
-
Good eyeballs man lol
-
You forgot to close off your function indication @ line 288
// ***** Separate Links ******************************************************** function separate($roots, $urls, <===RIGHT THERE &$int_pages = Array(), &$int_loads = Array(), &$ext_pages = Array(), &$ext_loads = Array(), $extensions = Array('', 'asp', 'aspx', 'cgi', 'htm', 'html', 'php')) {
//it should look like this // ***** Separate Links ******************************************************** function separate($roots, $urls,) //<===this &$int_pages = Array(), &$int_loads = Array(), &$ext_pages = Array(), &$ext_loads = Array(), $extensions = Array('', 'asp', 'aspx', 'cgi', 'htm', 'html', 'php')) {
-
<? $con = mysql_connect("localhost","*****","*****") or die(mysql_error()); ?>
Try that instead of the long check you have hoing on there.
$con = mysql_connect("localhost","*****","*****");if (!$con)
die('Could not connect: ' . mysql_error());
-
<?php foreach ($imgURL as $value) { echo '<img src=\"".$value."\"><br />'; echo 'Copy & Paste the Code Below to your Profile or Comment Box<br />'; echo '<input type=\"text\" name=\"Avatar ".$int."\" class=\"\" onclick=\"\" value=\"<center><a href=\"".$siteURL."\"><img src=\"".$value."\"></a><br />".$siteDescription."<center><br /><br />"; $int++; } echo '</center>'; ?>
Try this I changed it a lil.
-
<? include("db.php"); $sql = "SELECT package FROM clients WHERE clientid = $_SESSION[client_id]"; $result= mysql_query($sql, $connection) or die (mysql_error()); if (mysql_num_rows($result) > 0) { while ($row = mysql_fetch_array($result)) { $package = $row['$Package']; if($package = "1") { $package ="Starter"; } else if($package = "2") { $package ="Basic Package"; } else if($package = "3") { $package ="Advanced"; } } } echo "$package"; ?>
Try to use and if statment something like this for this query.
-
Looks like a good solve to me Neon. I used it and it produced as well. So did my way
Either way good fix. lol
-
That is alot of code to look threw for one error do you mind at least putting the line # where the error is occuring?
-
value="<a href=\"$siteURL\"><center> <===opps add a slash after value= like: value=\
Also do the same for img src=\"$value" after $value before the " character
-
<?php echo "<img src=\"$value\"><br />"; echo "Copy & Paste the Code Below to your Profile or Comment Box<br />"; echo '<input type=\"text\" name=\"Avatar $int\" class=\"\" onclick=\"\" value="<a href=\"$siteURL\"><center><img src=\"$value" alt=\"$siteDescription\"></center><br /><br />'; $int++; ?>
Hey try this........ Dont be scared to test this stuff useing the html tags... I know I know there is a standard but ehe
-
OK I wasnt clear before...... the pear seemed to set up fine... yet I still get the above error...... am I in the wrong place for this?
How did they do this?
in PHP Coding Help
Posted
This looks as if they were stored in a database and when a cetain group was clicked on it loads all the data from the database where a feild like `company_type` was the clicked link. Hope this helps.